You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I have cloned this repository and started the docs by running yarn start without making any modifications to the code.
I noticed that the Petsore API docs are present in the Petstore API tab, which is ok (as marked in green rectangle below), but these are also present in the Tutorial tab under petstore item, which shouldn't be there (as marked in red rectangle below).
Please let me know how to remove the petstore item under the Tutorial tab.
Thanks.
EDIT:
I removed this duplicate item by setting the sidebars.ts file content manually, instead of generating it automatically from the docs folder.
The text was updated successfully, but these errors were encountered:
The solution seems to be to not autogenerate the sidebar. But autogeneration is what we want. So we wanna skip the api folder for autogeneration.
A few things I tried unsuccessfully.
Pull the petstore folder out of the docs folder and trying to make the petstore API sidebar point to that folder, but docs seems to be required to be in the docs folder.
Put API docs and other docs in separate folders. docs/petstore docs/tutorial and point the autogen dirname to tutorial, should work in theory, but doesn´t.
Hi @programm-ingovals, I recommend consulting docusaurus.io docs for guidance as there are several supported methods/strategies for handling this situation. The generated sidebar.js is intended as a helper but you're correct in that it is not intended to be used alongside autogenerated.
Hello,
I have cloned this repository and started the docs by running
yarn start
without making any modifications to the code.I noticed that the Petsore API docs are present in the
Petstore API
tab, which is ok (as marked in green rectangle below), but these are also present in theTutorial
tab underpetstore
item, which shouldn't be there (as marked in red rectangle below).Please let me know how to remove the
petstore
item under theTutorial
tab.Thanks.
EDIT:
I removed this duplicate item by setting the sidebars.ts file content manually, instead of generating it automatically from the docs folder.
The text was updated successfully, but these errors were encountered: