Documentation Setup Guide
This guide will help you set up the local development environment for building and testing the DataDialogue documentation.
Prerequisites
- Python 3.8 or higher
- pip (Python package installer)
- Git
Installation
-
Clone the repository:
-
Create a virtual environment (recommended):
-
Install documentation dependencies:
Building Documentation
-
Navigate to the project root:
-
Build the documentation:
-
Serve the documentation locally:
-
Access the documentation at
http://127.0.0.1:8000
Testing Documentation
- Live Preview
- Run
mkdocs serve
- Open
http://127.0.0.1:8000
in your browser -
Changes will automatically reload
-
Build Testing
- Run
mkdocs build
- Check the
site
directory for the built documentation -
Verify all pages render correctly
-
Link Checking
- Install link checking tool:
- Run link checker:
Common Issues
- Missing Dependencies
-
Solution: Run
pip install -r docs/documentation/requirements.py
-
Build Errors
- Check for syntax errors in markdown files
- Verify all referenced files exist
-
Check mkdocs.yml configuration
-
Theme Issues
- Clear browser cache
- Restart mkdocs serve
- Verify theme configuration in mkdocs.yml
Best Practices
- Writing Documentation
- Use clear, concise language
- Follow the established structure
- Include code examples where relevant
-
Add screenshots for UI-related content
-
Version Control
- Create a new branch for documentation changes
- Use descriptive commit messages
-
Test changes locally before pushing
-
Maintenance
- Keep dependencies up to date
- Regularly check for broken links
- Update screenshots when UI changes