Documentation Tools¶
This project provides a comprehensive documentation toolchain to ensure consistent, high-quality documentation. We use MkDocs with the Material theme as our documentation system, along with various validation tools.
The docs-tools.sh Script¶
Our docs-tools.sh
script serves as the unified entry point for all documentation tasks, ensuring all contributors use consistent tooling and validation processes.
Getting Started¶
To start working on documentation:
- Clone the repository
- Navigate to the project root directory
- Run initial setup to install dependencies:
- Start the preview server:
The documentation will be available at http://localhost:8000.
Documentation Workflow¶
When working on documentation, follow this recommended workflow:
1. Start Your Session¶
2. Make Your Changes¶
Edit markdown files in the docs/
directory. The preview server automatically refreshes to show your changes.
3. Validate Your Work¶
Before committing, always run the validation tools:
4. Address Any Issues¶
For linting issues:
For spelling issues:
5. Finish Your Session¶
Documentation Standards¶
When contributing to documentation, adhere to these standards:
- Consistent Terminology:
- Use "CINC Auditor" (not InSpec) consistently
-
Use standardized approach names:
- Kubernetes API Approach (recommended for enterprise)
- Debug Container Approach (interim solution)
- Sidecar Container Approach (interim solution)
-
Strategic Emphasis:
- Emphasize the Kubernetes API Approach as the enterprise-recommended solution
-
Clearly communicate that enhancing the train-k8s-container plugin is the highest strategic priority
-
Links and References:
- Use relative paths for links (e.g.,
../overview/workflows.md
) -
Ensure all external links are valid
-
Code Snippets and Examples:
- Use the Material for MkDocs snippet inclusion feature for code examples
- Place reusable code snippets in the
includes/
directory -
Reference existing example files rather than duplicating them
-
Validation Requirements:
- All documentation must pass linting checks
- All spelling must be correct (with project-specific terms added to the dictionary)
- All links must be valid
Troubleshooting¶
Preview Server Issues¶
If the preview server is unresponsive:
Dependency Issues¶
If you encounter dependency problems:
CI/CD Integration¶
The documentation is automatically built and validated in CI/CD pipelines using the same tools provided by the docs-tools.sh
script. Any pull request with documentation changes will be checked for:
- Markdown style compliance
- Spelling correctness
- Link validity
- Successful build
Finding Help¶
If you need assistance with documentation:
- Check the output of
./docs-tools.sh help
- Review the comments in the
mkdocs.yml
file - Consult the MkDocs documentation
- Review the Material for MkDocs documentation