This document goes through all the different configuration options available.
First, let's look at the options available in the doctave.yaml
file.
⚠️ Remember to restart
Any changes you make to this file will only come into effect when you restart the preview server, or rebuild your site.
This sets the name of your project. It serves two purposes:
This is a required setting.
Example:
---
title: Authentication service
Sets the port the development server will listen on when running the serve
command.
This is an optional setting.
This setting must be a positive integer.
Example:
---
port: 5432
Tells Doctave to generate all URLs based on a subpath. Use this if you are deploying your site under
a subdirectory, such as https://example.com/docs
.
You won't have to change any URLs inside your docs when this value is changed. You can stil
construct paths to other pages and assets as if the site was served from the root of the URL. E.g.
if you have a page docs/deployment/workflow.md
, you can link to it with /deployment/workflow
,
without worrying about the base_path.
This is an optional setting.
This setting must be an absolute path.
Example:
---
base_path: /docs
Tells Doctave to use the specified path as the base path for generating documentation.
This option should be used if you wish to store your documentation in a directory that is not docs/
.
This is an optional setting.
Example:
---
docs_dir: custom_documentation_directory/
---
This sets the main color for your site. You can read more about this in the look-and-feel section. Currently this is the only color you can customize.
This is an optional setting.
This setting must be a valid hex value.
Example:
---
colors:
main: #FF78E4
The name of the file to serve as your logo. You can read more about this in the look-and-feel section.
This is an optional setting.
---
logo: logo.png
Customizes your site navigation on the left side of the page.
You can read more about this under custom navigation.
This is an optional setting.
navigation:
- path: docs/installing.md
- path: docs/tutorial.md
- path: docs/features
children: "*"
All commands support the following option.
Disable terminal colors.
This is an optional argument.
Example:
$ doctave serve --no-color
Currently the serve
command takes only one optional argument.
Sets the port the development server will listen on when running the serve
command.
This is an optional argument.
Example:
$ doctave serve --port 5432
Currently the build
command takes only one optional argument.
This flag will build the site without development dependencies. Currently this means stripping out livereload.js from the bundle, but can be extended in the future to include other actions.
This is an optional argument.
Example:
$ doctave build --release
Powered by Doctave