Enable documentation versioning in Booyaka to maintain and serve multiple versions of your documentation site simultaneously. This is particularly useful for projects that have different releases or versions that require separate documentation.
🔗Enabling Versioning in Configuration
To enable versioning, add the following configuration to your booyaka.config.yaml (or booyaka.config.json) file:
git:
# By enabling versioning, Booyaka will use Git tags
# to manage different versions of your documentation.
#
# A dropdown will be added to the navigation bar
# allowing users to switch between versions.
enable_versioning: trueRestart your Booyaka server or rebuild your static site.
🔗Git tagging
To create a Git tag for a specific version of your documentation, use the following command:
git tag -a v1.0.0 -m "Version 1.0.0"
git push origin v1.0.0🔗Default branch
By default, Booyaka will use the main/master branch as the working version of your documentation.