useCurrentVersion's 'latestReleased' branch had no remaining caller
after the previous commit, and InstallationSnippet was calling
useActiveVersion twice (once directly, once through the hook) to
re-run the same check. Build the manifest URL straight from the
active version and drop hooks/versions.ts entirely.
Signed-off-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com>
The unversioned "current" docs describe unreleased functionality, so
a tagged release manifest doesn't make sense there. Install from the
manifest built off main instead.
Signed-off-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com>
The install snippet always linked to the manifest of the latest
released version, regardless of which versioned docs page it was
rendered on. Viewing the 0.13.0 installation page therefore pointed
at the 0.14.0 manifest.
Fall back to the latest released version only when there is no
active version, or the active version is the unreleased "current"
docs.
Signed-off-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com>
Define functions that can be used in mdx pages to dinamically choose the
correct version according to the documentation page viewed.
Closes#343
Signed-off-by: Francesco Canovai <francesco.canovai@enterprisedb.com>
Signed-off-by: Leonardo Cecchi <leonardo.cecchi@enterprisedb.com>
Signed-off-by: Armando Ruocco <armando.ruocco@enterprisedb.com>
Co-authored-by: Leonardo Cecchi <leonardo.cecchi@enterprisedb.com>
Co-authored-by: Armando Ruocco <armando.ruocco@enterprisedb.com>