mirror of
https://github.com/holos-run/holos.git
synced 2026-03-20 09:15:02 +00:00
Previously, each document needed to be manually included in the sidebars to show up. In addition, index paths like /docs/ and /docs/guides/ were not found. This patch addresses both problems by switching sidebars to automatically generate from filesystem directories. Important documents like the getting started guide and introduction are expected to add a `slug: /foo` front matter item to create a permalink. The result is the sidebar reflects the filesystem while the URL bar is more of a permalink. Files should be able to be moved around the file system and the sidebar tree without affecting their URL. This patch also consolidates the API and Docs sidebars into one.
75 B
75 B
import DocCardList from '@theme/DocCardList';