This repository contains the documentation for the TrueVAULT project, built using MkDocs and the Material for MkDocs theme.
- Python 3.7+
pip(Python package manager)
-
Clone the repository:
git clone <repo-url> cd <repo-folder>/__DOCS__/v1.0.0
-
Install dependencies:
pip install -r requirements-docs.txt pip install mkdocs-material
To build the static site locally:
mkdocs buildThe output will be in the site/ directory.
To preview the documentation locally:
mkdocs serveThen open http://localhost:8000 in your browser.
To deploy the site, upload the contents of the site/ directory to your web server or hosting platform.
For GitHub Pages deployment:
mkdocs gh-deployThis will publish the site to the gh-pages branch.
docs/— Markdown source filesmkdocs.yml— MkDocs configurationrequirements-docs.txt— Python dependenciessite/— Generated static site (after build)
See docs/troubleshooting/ for common issues and solutions.
For more information, visit the MkDocs documentation and Material for MkDocs.
Use mike to publish and manage versioned documentation on the gh-pages branch, with a version switcher in Material for MkDocs.
PowerShell:
pip install mikeUpdate mkdocs.yml to enable mike integration and the version switcher:
plugins:
- search
- mike
extra:
version:
provider: mikeNotes:
- Keep your working directory at
__DOCS__/v1.0.0when running commands below. - Ensure your remote is named
originand you have permission to push togh-pages.
If you haven't published with mike before, deploy your current docs as the first version and set a default alias:
# Replace 1.0.0 with the real version label you want to publish
mike deploy 1.0.0 latest --push --update-aliases
mike set-default latest --pushThis creates/updates the gh-pages branch with a versioned build and sets latest as the default served version.
To publish a new docs version and update the latest alias to point to it:
# Example: releasing 1.1.0 and making it the new "latest"
mike deploy 1.1.0 latest --push --update-aliasesOptionally retitle how the version appears in the switcher:
mike retitle 1.1.0 "v1.1.0" --push# Serves the versioned site as it would appear from gh-pages,
# overlaying your current working changes
mike serve# List published versions (from gh-pages)
mike list
# Create or move an alias (e.g., point "stable" to 1.1.0)
mike alias 1.1.0 stable --push
# Remove a version
mike delete 1.0.0 --pushTips:
- Use consistent semantic version tags (e.g.,
1.0.0,1.1.0) for clarity. - Prefer
--update-aliasesso existing aliases likelatestfollow your newest release automatically. - You can continue to use
mkdocs servefor simple local authoring; usemike servewhen you want to preview the version switcher as it will appear after publishing.