Skip to content

Commit

Permalink
Move APIs under new API top level category
Browse files Browse the repository at this point in the history
  • Loading branch information
gidjin committed Oct 25, 2021
1 parent c79195e commit e59a154
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 15 deletions.
15 changes: 0 additions & 15 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,21 +44,6 @@ module.exports = {
position: 'left',
label: 'Docs',
},
{
type: 'dropdown',
position: 'left',
label: 'APIs',
items: [
{
label: 'Prime',
to: '/api/prime',
},
{
label: 'Support',
to: '/api/support',
},
],
},
{
type: 'doc',
docId: 'help/index',
Expand Down
16 changes: 16 additions & 0 deletions sidebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,22 @@ module.exports = {
}],
apiSidebar: [
'api/index',
{
type: 'category',
label: 'APIs',
items: [
{
type: 'link',
label: 'Prime',
href: '/api/prime',
},
{
type: 'link',
label: 'Support',
href: '/api/support',
},
],
},
{
type: 'category',
label: 'Docs',
Expand Down

1 comment on commit e59a154

@rogeruiz
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a historical reason why these pages need to be added manually to the sidebar and why we have automatic sidebars turned off. The API URIs need to be added manually because they’re Redocusaurus pages and not regular Markdown pages.

Please sign in to comment.