In the top-level directory of your repository, create a LucyBot.yml file. This will tell LucyBot how to build your documentation.
You must provide either the specifications field or the routes
field in LucyBot.yml (or both).
This LucyBot.yml generates a single page that uses Markdown.
routes:
/home:
ui: markdown
markdown: |
# Hello World!
See UIs and Routing for a list of available UIs.
This LucyBot.yml uses an OpenAPI specification to auto-generate documentation and console pages.
specifications:
acme_api:
- openapi: ./openapi.yml
The following fields are available in LucyBot.yml:
specifications - A list of different API specifications to generate docs for. See Specificationsroutes - Controls URL structure, navigation, and SEO. See Routingjavascript - An array of JavaScript files or URLs to includecss - An array of CSS files or URLs to includediscussionURL - Will be included as an iframe in documentation pages. See Discussion Pagessitemap - Options for generating sitemap.xmlsitemap.hostnamefavicon - URL for <link rel="icon">prismjsTheme - A theme name for the PrismJS
syntax highlighter (one of coy, dark, funky, okaidia, solarizedlight, tomorrow, or twilight)basePath - If the generated LucyBot site is not mounted on your server's root, you'll need to set this or useHashuseHash (default false) - Use hashes instead of paths for navigation (example.com/#/foo instead of example.com/foo)uiOptionsuiOptions.embedConsoleInDocumentation - The 'Try It' link will expand an embedded console instead of navigating to a new pageuiOptions.discussionTitle - The title to show above the discussion iframeuiOptions.optionalizeHost - Set to true to allow users to set an alternative host, e.g. localhost:3000uiOptions.messages - Language for error messages etc.uiOptions.messages.deprecated - Message to show for operations marked deprecated (default: 'This operation has been deprecated.')workflowDirectory - directory containing workflow markdowngithub - Options for GitHub authentication (to enable community edits)github.repo - The name of the repository LucyBot.yml is ingithub.redirect_urigithub.client_idloadOpenAPISynchronous - A performance improvement if you're using the --prerender optionIf you want to build your configuration dynamically, you can create LucyBot.js instead of LucyBot.yml:
module.exports = {
specifications: {
acme_api: {
openapi: "./openapi.yml"
}
}
}