siteConfig.js
changes
siteConfig.js
renamed todocusaurus.config.js
.- Remove the following config options:
docsUrl
. Use the plugin option ondocusaurus-plugin-content-docs
instead.customDocsPath
. Use the plugin option ondocusaurus-plugin-content-docs
instead.sidebars.json
now has to be explicitly loaded by users and passed into the plugin option ondocusaurus-plugin-content-docs
.headerLinks
doc, page, blog is deprecated and has been to moved intothemeConfig
under the namenavbar
. The syntax is now:
themeConfig: {
navbar: {
title: 'Docusaurus',
logo: {
alt: 'Docusaurus Logo',
src: 'img/docusaurus.svg',
},
links: [
{to: 'docs/introduction', label: 'Docs', position: 'left'},
{to: 'blog', label: 'Blog', position: 'left'},
{to: 'feedback', label: 'Feedback', position: 'left'},
{
href: 'https://github.com/facebook/docusaurus',
label: 'GitHub',
position: 'right',
},
],
},
}
Migration Guide
Work in Progress
Presets
- Add presets for plugins that follow the Babel preset convention.