Skip to content

docs: resolve artifact version using existing version metadata - #122

Merged
hdcodedev merged 3 commits into
mainfrom
docs/artifact-version-substitution
Nov 2, 2026
Merged

hdcodedev merged 3 commits into
mainfrom
docs/artifact-version-substitution

Conversation

@hdcodedev

@hdcodedev hdcodedev commented Nov 2, 2026 •

Copy link
Copy Markdown
Member

What changed

Wiki Markdown now resolves the exact {{artifactVersion}} token in the existing content-loading flow:

  • Snapshot documentation uses charts_version from the existing snapshot manifest; missing or invalid metadata leaves the token unchanged.
  • Release documentation uses the selected documentation version (for example, 3.0.0).
  • Existing {{version}} and {{versionLabel}} substitutions remain unchanged. No separate version resolver infrastructure or manifest changes were introduced.

Updated published dependency examples across 2.0.0–3.0.0 to use {{artifactVersion}} instead of the legacy <version> placeholder:

  • getting-started.md for 2.0.0, 2.0.1, 2.1.0, 2.2.0, 2.3.0, 2.4.0, and 3.0.0
  • The 2.2.0 wiki index dependency examples
  • The 3.0.0 Ring Gauge dependency example

Historical Maven coordinates and artifact names remain version-specific: 2.x keeps io.github.dautovicharis, while 3.0.0 uses io.github.hdcharts. Umbrella, modular, platform-specific (where documented), and BOM dependency examples now display their selected release version. Separate <snapshot-version> examples are intentionally unchanged. No unrelated historical documentation was migrated.

Testing

  • npm --prefix docs-app test (24 passed)
  • cd docs-app && npx tsc --noEmit
  • npm run build
  • git diff --check

The tests read the expected snapshot version from the manifest instead of hardcoding a version and use injected manifest text to cover missing/invalid metadata without modifying the real manifest. They also cover release substitution and historical coordinates.

Manual verification

  1. Run npm run dev from the repository root.
  2. Open /snapshot/wiki/bar-chart and /snapshot/wiki/getting-started. Confirm dependency examples use charts_version from docs-app/public/snapshot-manifest.json, including the rendered code and Copy text.
  3. Open /3.0.0/wiki/getting-started and /3.0.0/wiki/ring-gauge-chart. Confirm dependencies display 3.0.0, the separate snapshot example keeps <snapshot-version>, and asset links retain the 3.0.0 route.
  4. Open /2.4.0/wiki/getting-started and /2.0.0/wiki/getting-started. Confirm dependency placeholders display their selected versions while preserving historical io.github.dautovicharis coordinates and any release-specific artifact names.

@vercel

vercel Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
charts.hdcode.dev Ready Ready Preview Nov 2, 2026 9:51am UTC

…allation snippets

Replace hardcoded `<version>` placeholders with the `{{artifactVersion}}`
template variable across multiple documentation versions (2.0.0 to 3.0.0).
This allows the documentation engine to dynamically inject the correct
artifact version based on the selected documentation version.

- Update `getting-started.md` and `index.md` for versions 2.0.0, 2.0.1,
  2.1.0, 2.2.0, 2.3.0, 2.4.0, and 3.0.0.
- Update `content-artifact-version.test.mjs` to reflect changes in
  content structure and verify correct version substitution for older
  releases.
@hdcodedev
hdcodedev merged commit 39476d6 into main Nov 2, 2026
3 checks passed
@hdcodedev
hdcodedev deleted the docs/artifact-version-substitution branch November 2, 2026 10:05

This branch was successfully deployed

1 active deployment
Preview — 47da3797 Deployed Nov 2, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant