Building the DocumentationΒΆ
As long as you have followed the procedure in compass conda environment, compilers and system modules for setting up your conda environment, you will already have the packages available that you need to build the documentation.
Then, run the following script to build the docs:
export DOCS_VERSION="test"
cd docs
rm -rf developers_guide/generated/ developers_guide/*/generated/ _build/
make html
You may need to re-source your compass load script in the root of the compass branch for the api docs to build successfully if you have added new modules since the load script was last sourced. The load script will reinstall compass into the conda environment when it is sourced in the root of the compass branch.
You can view the documentation by opening _build/html/index.html
.
From any machine, you can scp the html
directory to your local computer for
viewing.
On NERSC, you can conveniently make use of their
web Science Gateway
to avoid transferring data. By copying your compiled documentation to
an appropriately named subdirectory at
/global/cfs/cdirs/<myproj>/www/
and then running chmod -R ugo+rX .
on that directory
(and perhaps its parent directories), it can then be viewed from a browser at
https://portal.nersc.gov/cfs/<myproj>/
.
LCRC also has a web portal. You can copy the compiled documentation to a subdirectory in
/lcrc/group/e3sm/public_html/diagnostic_output/<username>/
. Then, you can
view it at https://web.lcrc.anl.gov/public/e3sm/diagnostic_output/<username>/