Contributing to the documentation#
This documentation is a Sphinx project hosted out of the docs
directory of the phalanx repository on GitHub.
You can contribute to this documentation by editing the source files in a clone of this repository and submitting a pull request on GitHub.
This page provides the basic steps.
Set up for documentation development#
Follow the steps at Setting up a Phalanx development environment to set up a Phalanx development environment. This installs tox, the tooling for builds with isolated Python environments, and pre-commit, a tool for linting and formatting files.
Compiling the documentation#
Use the tox docs
environment for compiling the documentation:
tox run -e docs
The built documentation is located in the docs/_build/html
directory.
Sphinx caches build products and in some cases you may need to delete the build to get a consistent result:
make clean
Checking links#
Links in the documentation are validated in the GitHub Actions workflow, but you can also run this validation on your local clone:
tox run -e docs-linkcheck
Submitting a pull request and sharing documentation drafts#
Members of the `lsst-sqre/phalanx`_ repository should submit pull requests following the Data Management workflow guide. Note that GitHub Actions builds the documentation and uploads a draft edition of the documentation to the web. You can find your branch’s development edition at the list of available versions.
If you are submitting a GitHub pull request from a fork, the documentation will build as a check, but the draft won’t upload for public staging.
More information on writing documentation#
When writing documentation for Rubin Observatory, refer to our Documentation Style Guide, based on the Google Documentation Style Guide, for guidelines on writing effective documentation content.
For technical tips on writing Sphinx documentation, see the reStructuredText Style Guide and Documenteer’s documentation for User guides.