Skip to content

feat(learn): pin sync to gemmology-knowledge v1.2.0#34

Merged
Bissbert merged 1 commit into
mainfrom
feature/knowledge-v1.2.0
May 12, 2026
Merged

feat(learn): pin sync to gemmology-knowledge v1.2.0#34
Bissbert merged 1 commit into
mainfrom
feature/knowledge-v1.2.0

Conversation

@Bissbert

Copy link
Copy Markdown
Contributor

Pins the website to a specific gemmology-knowledge release instead of tracking origin/main.

Why

Without a pin, every deploy could ship slightly different content depending on when the knowledge repo was last touched. Tagging the v1.2.0 release (citation infrastructure across all 138 articles, release notes) gives us a stable, reproducible build.

Changes

  • src/lib/knowledge-version.ts (new) — single source of truth:
    • KNOWLEDGE_VERSION = 'v1.2.0'
    • KNOWLEDGE_REPO_URL and KNOWLEDGE_RELEASE_URL helpers
  • scripts/sync-knowledge.ts — imports KNOWLEDGE_VERSION and hard-checks out tags/${KNOWLEDGE_VERSION} after git fetch --tags --force. Replaces the prior git pull origin main.
  • src/pages/about/sources/index.astro — displays "Content version gemmology-knowledge v1.2.0" beneath the <h1>, linking to the GitHub release.

Verification

  • npm run sync — checks out v1.2.0 (verified via git describe --tags in .cache/gemmology-knowledge)
  • npm run validate:citations — 0 errors, 45 unused-reference warnings (non-blocking)
  • npm run build — 913 pages in 9.12s
  • /about/sources/ page renders the version string and release link

Bumping later

Edit one constant in src/lib/knowledge-version.ts and rerun npm run sync.

Replaces the moving git pull from `origin/main` in sync-knowledge.ts
with a hard checkout of tag `v1.2.0`, so the deployed site is
reproducible from a single content version.

The version constant lives in `src/lib/knowledge-version.ts` as the
single source of truth, consumed by both the sync script (to drive
the checkout) and the /about/sources/ page (to display the version
with a link to the corresponding GitHub release).

To bump content, update the constant in one place and rerun
`npm run sync`.
@Bissbert Bissbert merged commit 34f1c62 into main May 12, 2026
3 of 4 checks passed
@github-actions

Copy link
Copy Markdown

🚀 Preview deployed to: https://d0adb223.gemmology-dev.pages.dev

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