Sample of multiple Mkdocs versionned documentation build With Structor (https://mmatur.github.io/structor-sample/).
Mesor Structor is a tool to manage multiple documentation versions with Mkdocs.
- GitHub release used
requirements.txtneed to be present in repository root level on each branchesmkdocs.ymlneed to be present in repository root level on each branches
sudo ./structor --owner mmatur --repo-name="structor-sample" \
--dockerfile-url="https://raw.githubusercontent.com/mmatur/structor-sample/master/docs.Dockerfile" \
--menu.js-url="https://raw.githubusercontent.com/mmatur/structor-sample/master/traefik-menu.js.gotmpl" \
--exp-branch=master --debugWith this command Structor will :
- Download Dockerfile used to build documentation
- Fetch latest release on GitHub to generate documentation tag mark as
latest - List remote branches matching the pattern
origin/v*. All of those branches will have their documentation generated --exp-branch=masterwill generate experimental documentation mark as experimental- For each branches
- Build the version selector
- Build documentation
Versionned documentation will be available in site directory