wevm / vocs

Minimal Documentation Framework, powered by React + Vite.
https://vocs.dev
Other
1.15k stars 55 forks source link

Nested `link` make navigation behave unexpectedly #172

Open carlosala opened 4 months ago

carlosala commented 4 months ago

Hi!

We have a minor issue with vocs. We have two nested link structures (that is, the section title has a page as well) and the parent one is not shown in the navigation. We appreciate that in two situations:

  1. While being on the "parent" one (in our example /typed) there's no "next" and "previous" buttons down the page.
  2. The "next" button from the previous jump directly to the "child" link (in our example /typed/constants.

Not sure if this is the expected behaviour, or maybe I'm doing something wrong. This is the repo of the project and this is the vocs config.

Thank you for the great project, we love it!

seunlanlege commented 4 months ago

Experiencing this same issue as well