Project Configuration Reference
This document explains the available configuration options in the doctave.yaml
file.
Configuration Example
An example doctave.yaml demonstrating the available configuration options.
---
title: Doctave Docs
logo:
src: _assets/doctave-logo.svg
src_dark: _assets/doctave-logo-dark.svg
colors:
main: "#7B8FFE"
color_mode: auto
favicon:
src: _assets/favicon.ico
open_api:
- spec_file: http-spec.json
uri_prefix: /api
user_preferences:
tier:
label: Tier
default: Starter
values:
- Starter
- Growth
- Enterprise
header:
cta:
external: https://dashboard.doctave.com/users/register
label: Sign Up
links:
- external: https://doctave.com
label: What's Doctave?
styles:
- _assets/style.css
redirects:
- from: /docs/old/path
to: /docs/new/pathReference
Below are explanations of all the objects and their fields in the project configuration.
Your doctave.yaml should contain a list of these objects.
Title
The title property is a string which defines the project title.
Logo
The logo property is a map that specifies the logo for the project.
Favicon
The favicon property is a map that specifies the favicon for the project.
OpenApi
The open_api property is a list of Source definitions.
Source
Colors
The colors object can be used to update the color scheme of your documentation.
Variables
The following color variables are available:
You can use the -dark prefix to specify their dark mode versions:
Section specifier
The above colors can be given a header-, nav-, or content- prefix to scope them to only a specific part of the page.
Color Mode
The color_mode property is used to control which color schemes are available for your site. By default it's set to auto.
When color mode is
light: your site will use the light theme and it can't be toggleddark: your site will use the dark theme and it can't be toggledauto: your site will use system theme and it can be toggled
User Preferences
The user_preferences property is a map of preference definitions.
Preference
User Preference Option
Styles
The styles property is a list of paths to stylesheets in the _assets directory.
Header
Header contains settings for your header bar at the top of your site.
Header Link
Header Call-To-Action
Redirects
The redirects property is a list of Redirect objects.
Redirect
The redirect object contains the source and destination urls of a single redirect.
Was this page helpful?