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:
Erin Teo 2018-05-05 17:24:39 -07:00 committed by Yangshun Tay
parent dbc597bfd7
commit 5771549e75
5 changed files with 12 additions and 8 deletions

View file

@ -84,6 +84,9 @@ customDocsPath: 'docs/site'
```js
customDocsPath: 'website-docs'
```
`defaultVersionShown` - The default version for the site to be shown. If this is not set, the latest version will be shown.
`disableHeaderTitle` - An option to disable showing the title in the header next to the header icon. Exclude this field to keep the header as normal, otherwise set to `true`.
`disableTitleTagline` - An option to disable showing the tagline in the title of main pages. Exclude this field to keep page titles as `Title • Tagline`. Set to `true` to make page titles just `Title`.
@ -181,6 +184,7 @@ const siteConfig = {
// For github.io type URLS, you would combine the url and baseUrl like:
// url: 'https://reasonml.github.io',
// baseUrl: '/reason-react/',
defaultVersionShown: '1.0.0',
organizationName: 'facebook',
projectName: 'docusaurus',
noIndex: false,