docs: make current docs version message dynamic
This commit is contained in:
parent
c2982e23d9
commit
9379d3c43e
@ -145,8 +145,14 @@ const Releases = ({ docsGroups, searchablePages }: DocsMenuProps) => {
|
|||||||
<strong>Note</strong>
|
<strong>Note</strong>
|
||||||
</AlertTitle>
|
</AlertTitle>
|
||||||
<Typography variant="subtitle1" component="div" color="inherit">
|
<Typography variant="subtitle1" component="div" color="inherit">
|
||||||
<span>The current docs are for Static CMS v3. For Static CMS v2, see </span>
|
<span>
|
||||||
<StyledLink href="https://v2.staticcms.org">https://v2.staticcms.org</StyledLink>.
|
The current docs are for Static CMS v{latestMajorVersionNumber}. For Static CMS v
|
||||||
|
{latestMajorVersionNumber - 1}, see
|
||||||
|
</span>
|
||||||
|
<StyledLink href={`https://v${latestMajorVersionNumber - 1}.staticcms.org`}>
|
||||||
|
https://v{latestMajorVersionNumber - 1}.staticcms.org
|
||||||
|
</StyledLink>
|
||||||
|
.
|
||||||
</Typography>
|
</Typography>
|
||||||
</Alert>
|
</Alert>
|
||||||
</Container>
|
</Container>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user