Documentation Guidelines¶
Overview¶
This guide covers the documentation structure and maintenance procedures for Rivusio.
Documentation Structure¶
docs/
├── index.md # Main landing page
├── getting-started/ # Getting started guides
├── user-guide/ # User documentation
├── maintainer/ # Maintainer documentation
├── api/ # API documentation
└── examples/ # Code examples
Writing Documentation¶
Style Guidelines¶
- Clear and Concise
- Use active voice
- Keep sentences short
-
Avoid jargon
-
Code Examples
- Include type hints
- Add comments for complex logic
-
Use realistic examples
-
Formatting
- Use proper Markdown syntax
- Include section headers
- Add internal links
API Documentation¶
- Document all public APIs
- Include type information
- Provide usage examples
- Note deprecations
Building Documentation¶
# Install documentation dependencies
poetry install --with docs
# Build documentation
make docs
# Serve locally
make docs-serve
Updating Documentation¶
- For New Features
- Add API documentation
- Update relevant guides
-
Include examples
-
For Changes
- Update affected docs
- Review related sections
-
Update version notes
-
For Deprecations
- Mark as deprecated
- Add migration guides
- Update examples