Repository navigation
refactor(content): extract content to dedicated repository - #324
Merged
Merged
Conversation
…word layout with slug
… revision tracking and sync logic
… revision tracking and out-of-order deployment handling
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
…tore update workflow
babblebey
marked this pull request as ready for review
November 20, 2026 13:48
… developer literacy platform
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This pull request makes major improvements to how content is managed, indexed, and contributed to the jargons.dev platform. It restructures the documentation and environment configuration to reflect the move to a dedicated content repository, and significantly refactors the vector store update workflow for reliability and maintainability. Additionally, it introduces new code quality checks and updates code identifiers for clarity.
Content Management and Contribution Process:
README.md,CONTRIBUTING.md) to clarify that all content (dictionary entries and learning resources) is now maintained in the separatejargonsdev/contentrepository, with the Jargons Editor and direct contributions both targeting that repo. The application repository is now focused on the website and platform code..env.exampleto reference the new content repository for content collections and editor pull requests.Vector Store Update Workflow Refactor:
.github/workflows/update-vector-store.ymlto:Developer Experience and Code Quality:
actionlintjob to the code quality workflow to lint GitHub Actions, catching workflow errors early.PROJECT_REPO_DETAILStoCONTENT_REPO_DETAILSinconstants.jsfor clarity and alignment with new content structure.How we load Content from the Remote Repository
The content repository following jargonsdev/content#1 is the source of truth for jargons.dev learning content. Before Astro starts,
dev/sync-content.jsfetches the configured repository so the app can load dictionary entries through Astro’s content layer.The sync runs automatically before
npm run dev,npm run start, andnpm run build. To run it manually:node --env-file-if-exists=.env `sync-content.js`On the first run, the script shallow-clones the configured branch into
.content/. On later runs, it checks that the directory is the expected Git checkout and has no local changes, fetches the configured branch, and updates to its latest commit. It stops if the repository configuration is missing or invalid, the checkout has local changes, or the repository does not containdictionary/.Astro loads MDX entries from
.content/dictionary/. The sync also writespublic/content-revision.jsonwith the repository, branch, and full commit SHA used for the build. This lets deployments and downstream automation identify the exact content revision they contain.The
.content/checkout and generated revision manifest are build artifacts; so they have been added to git-ignored and should neither be directly edited nor committed. Content changes will hence be made in the content repository and merged through its normal contribution process.A deployment hook will be configured on the content repository which triggers a vercel build and redeployment to fetch/build new content when a content change is pushed to the content repository. This was selected as preferred option having considered using action, in order to avoid adding the
workflowscope to the OAuth app required to contribute via the Jargons Editor; this is because when whenever action files are modified theworkflowpermission is needed to simply sync forks remotely.Related Issue
Screenshots/Screencasts
NA
Notes to Reviewer
PUBLIC_PROJECT_REPOandPUBLIC_PROJECT_REPO_BRANCH_REFreplacing it with the new ones belowpushevents with vercel deployment hook