Versioning of sub-folders #206
-
My main documentation site has multiple sub folders, each describing a separate product/app. For e.g the main folder is mkdocs/docs and there are multiple products defined at mkdocs/docs/product1, mkdocs/docs/product2 etc. THe need is to setup versioning for one of the products ie. product2 and not the entire set. Is this possible? If not directly possible is there any other way to achieve it? |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 4 replies
-
Use |
Beta Was this translation helpful? Give feedback.
-
Apologies .. but I am just getting started so not sure i am getting this right. Is the solution to have a single mkdocs project but in the subfolder have an additional mkdocs.yml and use deploy-prefix in the sub-folder and version it? Or is the recommendation to have two projects and then merge deploy the final output? |
Beta Was this translation helpful? Give feedback.
-
The latter. You'll want to use multiple independent MkDocs projects (probably in subdirectories of your repository). Then you can deploy them individually, and with |
Beta Was this translation helpful? Give feedback.
-
@jimporter what should be the approach when docs are not independently-versioned? Let's say I just want |
Beta Was this translation helpful? Give feedback.
-
I too have need for a documentation site with multiple products, each with its own versioning. Followed the above answer, works locally using
Result: No website found at root of domain. Redeploy home project with |
Beta Was this translation helpful? Give feedback.
Use
deploy_prefix
and configure a few independent collections of docs (with their ownmkdocs.yml
files) and deploy them individually as needed.