Skip to content
This repository has been archived by the owner on Sep 9, 2024. It is now read-only.

Commit

Permalink
docs: make current docs version message dynamic
Browse files Browse the repository at this point in the history
  • Loading branch information
KaneFreeman committed Feb 8, 2024
1 parent c2982e2 commit 9379d3c
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions packages/docs/src/pages/releases.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,14 @@ const Releases = ({ docsGroups, searchablePages }: DocsMenuProps) => {
<strong>Note</strong>
</AlertTitle>
<Typography variant="subtitle1" component="div" color="inherit">
<span>The current docs are for Static CMS v3. For Static CMS v2, see&nbsp;</span>
<StyledLink href="https://v2.staticcms.org">https://v2.staticcms.org</StyledLink>.
<span>
The current docs are for Static CMS v{latestMajorVersionNumber}. For Static CMS v
{latestMajorVersionNumber - 1}, see&nbsp;
</span>
<StyledLink href={`https://v${latestMajorVersionNumber - 1}.staticcms.org`}>
https://v{latestMajorVersionNumber - 1}.staticcms.org
</StyledLink>
.
</Typography>
</Alert>
</Container>
Expand Down

0 comments on commit 9379d3c

Please sign in to comment.