mirror of
https://github.com/readur/readur.git
synced 2026-01-05 22:10:31 -06:00
feat(mkdocs): try mkdocs again feat(mkdocs): try mkdocs again feat(mkdocs): try mkdocs again feat(mkdocs): try mkdocs again feat(mkdocs): try mkdocs again feat(mkdocs): try mkdocs again feat(mkdocs): try mkdocs again feat(mkdocs): try mkdocs again feat(mkdocs): try mkdocs again
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 configurationrequirements.txt- Python dependenciesoverrides/- Theme customizationsstylesheets/- Custom CSSjavascripts/- 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