mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-19 20:17:06 +02:00
feat(theme-classic, plugin-docs): sidebar item level-specific className + allow customization (#5642)
* Initial work * Complete function * Avoid duplication * More dedupe * Make everything constants * Change casing & docs
This commit is contained in:
parent
f6ec757aa0
commit
eaacb0e98a
14 changed files with 79 additions and 11 deletions
|
@ -10,6 +10,7 @@ module.exports = {
|
|||
{
|
||||
type: 'doc',
|
||||
id: 'index',
|
||||
className: 'red',
|
||||
label: 'Index',
|
||||
},
|
||||
{
|
||||
|
@ -23,9 +24,16 @@ module.exports = {
|
|||
label: 'Huge sidebar category',
|
||||
items: generateHugeSidebarItems(4),
|
||||
},
|
||||
{
|
||||
type: 'link',
|
||||
label: 'External link',
|
||||
href: 'https://github.com/facebook/docusaurus',
|
||||
className: 'red',
|
||||
},
|
||||
{
|
||||
type: 'category',
|
||||
label: 'TOC tests',
|
||||
className: 'red',
|
||||
items: [
|
||||
{
|
||||
type: 'autogenerated',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue