mirror of
https://github.com/facebook/docusaurus.git
synced 2025-07-23 11:38:48 +02:00
feat(plugin-docs): docs sidebar item link: support "autoAddBaseUrl" attribute (#7949)
This commit is contained in:
parent
53bb0307dd
commit
de526e1ab2
4 changed files with 24 additions and 4 deletions
|
@ -71,10 +71,27 @@ const sidebars = {
|
|||
],
|
||||
},
|
||||
{
|
||||
type: 'link',
|
||||
label: 'External link',
|
||||
href: 'https://github.com/facebook/docusaurus',
|
||||
type: 'category',
|
||||
label: 'Link tests',
|
||||
className: 'red',
|
||||
items: [
|
||||
{
|
||||
type: 'link',
|
||||
label: 'External link absolute',
|
||||
href: 'https://github.com/facebook/docusaurus',
|
||||
},
|
||||
{
|
||||
type: 'link',
|
||||
label: 'pathname:/// link',
|
||||
href: 'pathname:///some/local/path',
|
||||
},
|
||||
{
|
||||
type: 'link',
|
||||
label: 'pathname:/// link (no baseUrl)',
|
||||
href: 'pathname:///some/local/path',
|
||||
autoAddBaseUrl: false,
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
type: 'category',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue