-
Notifications
You must be signed in to change notification settings - Fork 904
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support versioning #114
Comments
Oh interesting. I know @RichieEscarez has been exploring stuff in this area for his site, maybe he can investigate further. |
Right now, the easiest path is to deploy separate sites per release/branch. That said, going solely from my experience with getting the Knative site to work (and not actually creating nor fully testing a simple site), I can provide the following details as another optional path to creating a single site with multiple versions. What I've done for Knative in order to create multiple versions within a single site, is to put "versioned" content in multiple peer folders along side the Example of site structure: Given the basic directory structure: ├── archetypes You can add additional versioned content in different folders within the content Keep in mind that is is definitely not an easy route and has other downsides (search includes all versions, or all versions must be built each time, even if only one of those versioned "folders" includes a change). Other requirements that need to be addressed:
Im going from memory here so I'm certain that I've likely missed something but I think ive highlighted the main points. Note: I've intentionally not linked to any of specific Knative file since that site includes several other modifications and uses multiple repos. Therefore its more complicated and does not clearly reflect the model described above. |
need this feature |
In case it helps the https://github.com/jimporter/mike We are one day into Hugo so we can't offer any insight into how applicable this approach is to hugo. |
Does this solve your use case? https://www.docsy.dev/docs/adding-content/versioning/ |
No it does not because it requires multiple full versions of the website to be deployed. What the OP would like to achieve is to have versioning without the need to replicate everything, including parts of the website not even belonging to the versioned docs. |
As others have said, versioning doesn't work out of the box as it does with some other documentation systems, but with some effort you can make it work. Admittedly, depending on your requirements, needs, and environments, it might be difficult to do so. For the https://kube-logging.dev/ site we have implemented a method that doesn't need to rebuild everything, but it has some tricks and builds on GitHub Actions and the site being hosted on GitHub Pages. The main points I remember are:
IIRC, these are the basics of the setup, you can check the details in the github repo (I think there is still a github workflow called publish.yaml that we don't actually use anymore, publish-main and the publish-.yamls are the real ones). There are some problems that the stuff I've written so far doesn't address, like:
|
need this feature |
It would be great to support document versioning without having to deploy separate sites per tagged release or branch.
Additional context
The text was updated successfully, but these errors were encountered: