mirror of
https://github.com/facebook/docusaurus.git
synced 2025-08-02 16:29:47 +02:00
docs(v2): Add documentation for docs multi-instance support (#3978)
* Add documentation for docs multi-instance support * Add documentation for docs multi-instance support
This commit is contained in:
parent
cf086abe20
commit
d5d6e2fba2
4 changed files with 236 additions and 8 deletions
|
@ -273,10 +273,13 @@ module.exports = {
|
|||
// highlight-start
|
||||
{
|
||||
type: 'doc',
|
||||
position: 'left',
|
||||
docId: 'introduction',
|
||||
|
||||
//// Optional
|
||||
position: 'left',
|
||||
label: 'Docs',
|
||||
activeSidebarClassName: 'navbar__link--active',
|
||||
docsPluginId: 'default',
|
||||
},
|
||||
// highlight-end
|
||||
],
|
||||
|
@ -296,14 +299,15 @@ module.exports = {
|
|||
items: [
|
||||
{
|
||||
type: 'docsVersionDropdown',
|
||||
position: 'left',
|
||||
|
||||
//// Optional
|
||||
position: 'left',
|
||||
// Add additional dropdown items at the beginning/end of the dropdown.
|
||||
dropdownItemsBefore: [],
|
||||
dropdownItemsAfter: [{to: '/versions', label: 'All versions'}],
|
||||
|
||||
// Do not add the link active class when browsing docs.
|
||||
dropdownActiveClassDisabled: true,
|
||||
docsPluginId: 'default',
|
||||
},
|
||||
],
|
||||
},
|
||||
|
@ -323,9 +327,12 @@ module.exports = {
|
|||
// highlight-start
|
||||
{
|
||||
type: 'docsVersion',
|
||||
|
||||
//// Optional
|
||||
position: 'left',
|
||||
// to: "/path // by default, link to active/latest version
|
||||
// label: "label" // by default, show active/latest version label
|
||||
to: '/path', // by default, link to active/latest version
|
||||
label: 'label', // by default, show active/latest version label
|
||||
docsPluginId: 'default',
|
||||
},
|
||||
// highlight-end
|
||||
],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue