feat: inject latest QuickFIX/J release version dynamically at build time#51
Open
Copilot wants to merge 3 commits into
Open
feat: inject latest QuickFIX/J release version dynamically at build time#51Copilot wants to merge 3 commits into
Copilot wants to merge 3 commits into
Conversation
Agent-Logs-Url: https://github.com/quickfix-j/quickfixj-pages/sessions/329396b6-0dea-4ef0-824d-8b6ec208d36f Co-authored-by: chrjohn <6644028+chrjohn@users.noreply.github.com>
Agent-Logs-Url: https://github.com/quickfix-j/quickfixj-pages/sessions/56b37b77-8804-4b8b-9c60-bd57df8fb78b Co-authored-by: chrjohn <6644028+chrjohn@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
chrjohn
May 13, 2026 08:52
View session
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.
Version strings (
3.0.0) were hardcoded across the homepage and docs, requiring manual updates on every release.How it works
docusaurus.config.ts— converted toasync function createConfig(). Fetcheshttps://api.github.com/repos/quickfix-j/quickfixj/releases/latestat build time, strips thevprefix, falls back to3.0.0on any network/API failure. Exposed viacustomFields.quickfixjVersionand passed into a remark plugin.Remark plugin (inline in config) — walks the markdown AST at build time and replaces
{{QUICKFIXJ_VERSION}}intext,inlineCode, andcodenodes. No new dependencies.src/pages/index.tsx—QuickStartSectionreadssiteConfig.customFields.quickfixjVersionviauseDocusaurusContext().docs/overview.md,docs/examples.md— hardcoded versions replaced with the{{QUICKFIXJ_VERSION}}placeholder.Placeholder usage
Editors write the version naturally in markdown:
The remark plugin resolves it to the current release at build time.