Versions
In addition to the product variants, the docs site also supports multiple versions of the documentation. The version selector is located at the top of the page, next to the variant selector. Versions and variants are independent of each other, with the version being “above” the variant in the URL hierarchy.
The URL for version v1 of the current page (the one you are one right now) in the Flyte variant is:
https://www.union.ai/docs/v1/flyte/community/contributing-docs/versions
while the URL for version v2 of the same page is:
https://www.union.ai/docs/v2/flyte/community/contributing-docs/versions
Versions are branches
The versioning system is based on long-lived Git branches in the unionai/unionai-docs GitHub repository:
- The
mainbranch contains the latest version of the documentation. Currently,v2. - Other versions of the docs are contained in branches named
vX, whereXis the major version number. Currently, there is one other version,v1.
How to create an archive version
An “archive version” is a static snapshot of the site at a given point in time.
It is meant to freeze a specific version of the site for historical purposes, such as preserving the content and structure of the site at a specific point in time.
How to create an archive version
- Create a new branch from
mainnamedvX, e.g.v3. - Add the version to the
VERSIONfield in themakefile.incfile, e.g.VERSION := v3. - Add the version to the
versionsfield in thehugo.ver.tomlfile, e.g.versions = [ "v1", "v2", "v3" ].
Important: You must update the versions field in ALL published and archived versions of the site.
Publishing an archive version
This step can only be done by a Union employee.
- Update the
docs_archive_versionsin thedocs_archive_locals.tfTerraform file - Create a PR for the changes
- Once the PR is merged, run the production pipeline to activate the new version