By default, LucyBot will use your API specification to build the left-hand navigation
in the console
and documentation
UIs. You can also set this manually to
add new sections and customize the grouping/order of items in the menu.
routes:
/docs:
ui: documentation
navigation:
- title: Introduction
markdown: |
# ACME Documentation
Welcome to the documentation for the ACME API.
- title: Getting Started
markdownFile: ./GettingStarted.md
This will create pages at:
/docs/Introduction
/docs/Getting_Started
/docs (redirects to /docs/Introduction)
The following fields are available on each navigation item:
title
- The title of the itempath
- The URL used for this navigation item, relative to the routemeta
- Controls <meta>
and <title>
tagsmeta.title
- By default, will be the title abovemeta.description
meta.keywords
autoselect
- Automatically redirect to the first child of this itemhide
- Hide the item from being shown in the UIexpand
- Always show this item's childrenchildren
- Any sub-items to be nested under this itemIf you want to reuse a navigation menu for multiple routes, you can reference it by its field name:
routes:
/docs:
ui: documentation
for: acme_api
navigation: acme_navigation
/console:
ui: console
for: acme_api
navigation: acme_navigation
acme_navigation:
- markdownFile: ./Introduction
- operation: "GET /widget"
- operation: "POST /widget"