Replies: 2 comments 3 replies
-
Hi, I think this largely depends on what is your exact use case. The doc versioning you've linked was designed to provide links to versioned urls, and that's about it - it doesn't provide a way to actually deploy those versioned docs. Depending on your needs, you might have different options:
|
Beta Was this translation helpful? Give feedback.
-
I think that lots of projects just make the old docs available somehow (either as a separate site with a subdomain, or just dump the contents into a versioned folder) and forget about it. If you actually want to maintain multiple versions and be able to port/cherry-pick patches between them, then the "one-subdomain-for-each-version" is the usual way to go. Other solutions can be done as well with some customizations and tricks in your build process (and/or the well-aimed use of hugo modules), but that's not straightforward and requires some considerations - also, it's easy to overengineer it ;). But hugo (plus github workflows or other similar things you might be using) are really flexible, so all sorts of things can be done. (An example of slight overengineering is https://kube-logging.dev/ , here we didn't use subdomains, and every version comes from a separate branch and a separate workflow, so when you modify something in an older version, you don't have to rebuild and redeploy everything, just the specific version, and even that's done automatically.) |
Beta Was this translation helpful? Give feedback.
-
I was reading through the doc versioning section here https://www.docsy.dev/docs/adding-content/versioning/. For my use case, I only want to version a portion of my docs. For example, configs and API reference. Is this possible? Or must the whole site be versioned and separately deployed?
Beta Was this translation helpful? Give feedback.
All reactions