Readur Documentation
This directory contains the source files for the Readur documentation site, built with MkDocs and Material for MkDocs.
Local Development
Prerequisites
- Python 3.8+
- pip
Setup
- Install dependencies:
pip install -r ../requirements.txt
- Start the development server:
mkdocs serve
The documentation will be available at http://localhost:8000.
Building
To build the static site:
mkdocs build
The built site will be in the site/ directory.
Deployment
The documentation is automatically deployed to readur.app via GitHub Actions when changes are pushed to the main branch.
Manual Deployment
If you need to deploy manually:
- Build the site:
mkdocs build
- Deploy to Cloudflare Pages:
wrangler pages deploy site --project-name=readur-docs
Structure
-
docs/
Documentation source files (Markdown) -
mkdocs.yml
MkDocs configuration -
requirements.txt
Python dependencies -
overrides/
Theme customizations -
stylesheets/
Custom CSS -
javascripts/
Custom JavaScript
Writing Documentation
Adding New Pages
- Create a new
.mdfile in the appropriate directory - Add the page to the navigation in
mkdocs.yml - Use Material for MkDocs features for rich content
Markdown Extensions
We use several markdown extensions for enhanced functionality:
-
Admonitions
For notes, warnings, tips -
Code blocks
With syntax highlighting -
Tabs
For grouped content -
Tables
For structured data -
Emoji
For visual elements
Example:
!!! note "Important"
This is an important note.
=== "Tab 1"
Content for tab 1
=== "Tab 2"
Content for tab 2
Contributing
Please follow these guidelines when contributing to the documentation:
- Use clear, concise language
- Include code examples where appropriate
- Test all links and code samples
- Run
mkdocs build --strictbefore submitting - Update the navigation in
mkdocs.ymlfor new pages