Topnav

topnavProcessor is a processor for manually handling the top navigation. It allows you to specify the order and which items should appear.

Usage

const docs = new Generator(import.meta.url, {
    processors: [topnavProcessor("./docs/topnav.json", "My Awesome Site!")],
});

The JSON file should a list of navigation items:

[
    { "path": "./foo", "title": "Foo" },
    { "path": "./bar", "title": "bar" }
]

Esc to close Arrow up/down to navigate Enter to select