This repository contains the documentation for Subscrio, built with MkDocs and the Material for MkDocs theme.
.
├── docs/ # Source documentation files (markdown)
│ ├── assets/ # Images, favicons, and other static assets
│ ├── blog/ # Blog posts
│ └── reference/ # API reference documentation
├── material/ # Custom Material theme extensions and plugins
├── overrides/ # Theme customization (templates, CSS, JS)
├── includes/ # Included markdown snippets
├── site/ # Generated site output (gitignored)
├── mkdocs.yml # MkDocs configuration file
├── requirements.txt # Python dependencies
└── CNAME # Custom domain for GitHub Pages (docs.subscrio.com)
docs/- Contains all source documentation files written in Markdownmaterial/- Custom extensions and plugins for the Material themeoverrides/- Theme customizations including custom templates, CSS, and JavaScriptsite/- Generated HTML output (created when you runpython -m mkdocs build, not committed to git)includes/- Reusable markdown snippets included in documentation
- Python 3.x
- pip
- Install dependencies:
pip install -r requirements.txt- Preview locally:
python -m mkdocs serveVisit http://127.0.0.1:8000 to view the documentation.
The easiest way to publish is using MkDocs' built-in GitHub Pages deployment:
python -m mkdocs gh-deployThis command will:
- Build the documentation site
- Commit the generated
site/directory to thegh-pagesbranch - Push it to GitHub
Note: Make sure you have write access to the repository and your GitHub Pages settings are configured to serve from the gh-pages branch.
- Build the site:
python -m mkdocs build- Copy the
CNAMEfile to thesite/directory (if using a custom domain):
cp CNAME site/- Push the
site/directory to thegh-pagesbranch:
cd site
git init
git add -A
git commit -m "Deploy documentation"
git push -f git@github.com:subscrio/docs.git main:gh-pagesThe repository includes a workflow that automatically builds and deploys the docs when you push to main. The workflow is at .github/workflows/documentation.yml.
The site is configured to use the custom domain docs.subscrio.com. The CNAME file in the root directory contains this domain and will be included in deployments. Make sure your DNS is configured to point to GitHub Pages.
Documentation content is MIT licensed. See LICENSE.