| name | cime-documentation-writer |
| description | Use when writing CIME documentation |
CIME documentation writer
Overview
Use this skill to write documentation.
The goal is to write clear and complete documentation.
- Explain when and how to use tools.
- Provide working examples.
- Note any preconditions that must be met.
- Note any side effects.
- Group related topics in common directories.
When to use
Use this skill when:
- Writing documentation under
doc/.
- Writing docstrings under
CIME/.
Formats
- Documentation format:
Sphinx ReStructuredText.
- Docstring format:
Google Style Python Docstrings.
Documentation placement rules
- Place Control Case System documentation under
doc/source/ccs/.
- Place System Testing documentation under
doc/source/system_testing.rst.
- Place tool documentation under
doc/source/tools/.
- Place developer documentation under
doc/source/contributing-guide.rst.
Naming rules
- File use kebab-case where filename is short description or tool name e.g.
query-configuration.rst.
- Group similar docuemntations under parent directories e.g. everything under
doc/source/ccs related to the Case Control System.
Docuemntation Workflow
- Identify the topic being documented.
- Locate where to place file under
doc/source.
- Add documentation and examples.
- Find areas that should link to new documentation.
- Ask user to review.
- Apply feedback and loop until user is satisfied with documentation.
Docstring Workflow
- Identify the method/function being documented.
- Review the code.
- Create the docstring, provide examples and explainations, note side effects.
- Ask user to review.
- Apply feedback and loop until user is satisfied with documentation.
Commands
Build the documentation:
make -C doc/ html