Updating Documentation
This guide explains how to update the Awesome-Virome documentation.
Prerequisites
- Python 3.7+ installed
- Git installed
- Clone of the repository
Setting Up the Environment
# Navigate to the mkdocs directory
cd mkdocs
# Create a virtual environment
python -m venv venv
# Activate the virtual environment
source venv/bin/activate # On Windows: venv\Scripts\activate
# Install dependencies
pip install -r requirements.txt
Making Documentation Changes
- Edit Markdown files in the
docs/
directory - Add new files as needed (remember to update navigation in
mkdocs.yml
) - Test your changes locally:
- View your changes at http://127.0.0.1:8000/
Creating New Versions
We use mike for versioning:
# Deploy a new version (e.g., 1.1.0)
mike deploy 1.1.0
# Update the 'latest' alias
mike alias 1.1.0 latest
# Set the default version
mike set-default 1.1.0
Submitting Changes
- Commit your changes:
- Push to your fork:
- Create a pull request
Documentation Structure
docs/index.md
- Home pagedocs/intro/
- Introduction and getting starteddocs/tools/
- Tool documentationdocs/api/
- API documentationdocs/contributing/
- Contribution guidelines
Style Guidelines
- Use Markdown headers appropriately (# for title, ## for sections)
- Include code examples when relevant
- Use relative links when linking to other documentation pages
- Use tables for presenting comparative information
- Include screenshots when helpful