docsversions

command
v0.99.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 10, 2026 License: BSD-3-Clause Imports: 18 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Command docsversions builds every published version of a versioned Hugo documentation site with ONE look, and puts the builds in a GitLab package registry:

docsversions build   --url https://example.org/docs --out versions
docsversions publish --dir versions --package example-docs --archive example-docs.tar.gz

A version of the documentation is its CONTENT. Everything else -- the theme submodule, hugo.yaml, layouts, CSS, i18n, static files, the logos -- is the site's look, and it comes from the DEFAULT BRANCH for every version: `build` checks the default branch out once (a detached worktree, submodules included), then for each version replaces its content directory with the one the version's ref holds, and runs Hugo with that version's baseURL. Versions are "development" (the default branch) and every strict semantic version tag vX.Y.Z.

⛔ It exists because the look was frozen into each release. GT-Cloud's /docs/ served v1.0.3, built from a release branch that predated the logo menu, the language icon and the theme combo: three patch releases made only to carry a favicon, a logo and a colour to the default page each re-published the OLD interface around them, and the user saw a RESINFO link in the wrong place. "The look should not depend on the version."

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL