I want to use docusaurus-openapi to generate a docs only website from a swagger file, but navigation does not work.
Steps to reproduce
Bootstrap a new project with npx create-docusaurus-openapi my-website
Remove the src/pages/index.js file.
Change the preset block in docusaurus.config.js to the code below:
Summary
I want to use docusaurus-openapi to generate a docs only website from a swagger file, but navigation does not work.
Steps to reproduce
Bootstrap a new project with
npx create-docusaurus-openapi my-website
Remove thesrc/pages/index.js
file. Change the preset block indocusaurus.config.js
to the code below:Observation
Clicking on links in the sidebar changes the url routes in the browser address bar but not the content on the page.
Root cause
I noticed that in
.docusaurus/routes,js
, we have the code below:If the above is changed to
Then the navigation works again.
From my short investigation the root cause seems to be here.
Thanks.