Skip to content

NCAR/CAM

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

291 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Welcome to the CAM Development Repository

This is the repository for CAM documentation. The latest released version of the docs is v6.3.

For CAM release code and public (AMWG) development, see the ESCOMP/CAM repository.

Modifying the CAM documentation

Setup

  1. If you have not already done so, create a fork of this repository (note that you will likely need to rename the fork because CAM will probably be taken by your fork of ESCOMP/CAM)
  2. Clone your forked repository.
  3. Either sync your fork to the latest from NCAR (you'll want the latest for the guide/branch you're updating!), or add NCAR as a remote.
  4. Branch off of the guide you are updating. The source branch will most likely be main (if you're updating the latest development guide), but will be cam6-users-guide for CAM6, for example.

If you've synced your fork and wish to create a branch off of main (latest development) called doc-updates, the commands are below:

git branch doc-updates main
git checkout doc-updates
git submodule update --init (initializes the doc-builder submodule)

Make & commit changes

  1. Modify the files you wish to modify (all source files live in doc/source/users_guide)
  2. Commit the changes to your fork.
git add <file changed>
git commit -m '<commit message>'
git push origin doc-updates

Confirm that the docs build

There are several options for building and viewing the docs that you have modified. You can find those options here, though building on casper is recommended.

Make a PR

Open a PR to the branch/version you are updating.

Additional notes and tools

Reviewing a PR

To ease the review process, it is recommended to view the rendered docs rather than reviewing the raw .rst and .md files. To do so, run the following commands in a clone of this repo or or your fork:

cd doc/doc-builder/tools
./preview-docs-pr <PR URL>

The script will clone the PR repo in your scratch directory (or you can specify a directory elsewhere with the --dir flag). Additionally, the script will log information about what files were modified by the PR!

Follow the instructions from the documentation documentation to view the built docs.

Bringing in updated doc-builder

When a new tag is made in the doc-builder repository, follow the steps above to make changes to the documentation (checking out a branch of your fork, etc), and then:

git submodule update --remote
git add doc/doc-builder
git commit -m 'update doc-builder submodule'
git push origin <branch name>

Then create a PR to the branch in question.

About

Community Atmosphere Model

Resources

Code of conduct

Stars

Watchers

Forks

Packages

 
 
 

Contributors