mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-09 23:27:28 +02:00
Rename latestVersion to defaultVersion (#639)
* Rename lastVersion to defaultVersion * Added defaultVersionShown to site-config doc * Remove defaultVersionShown from siteConfig * Update api-site-config.md
This commit is contained in:
parent
dbc597bfd7
commit
5771549e75
5 changed files with 12 additions and 8 deletions
|
@ -144,7 +144,7 @@ class HeaderNav extends React.Component {
|
|||
const versionPart =
|
||||
env.versioning.enabled && this.props.version !== 'next'
|
||||
? 'version-' +
|
||||
(this.props.version || env.versioning.latestVersion) +
|
||||
(this.props.version || env.versioning.defaultVersion) +
|
||||
'-'
|
||||
: '';
|
||||
const id = langPart + versionPart + link.doc;
|
||||
|
@ -243,7 +243,7 @@ class HeaderNav extends React.Component {
|
|||
</a>
|
||||
{env.versioning.enabled && (
|
||||
<a href={versionsLink}>
|
||||
<h3>{this.props.version || env.versioning.latestVersion}</h3>
|
||||
<h3>{this.props.version || env.versioning.defaultVersion}</h3>
|
||||
</a>
|
||||
)}
|
||||
{this.renderResponsiveNav()}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue