From 619da0f7ecbd308446dafd7b6c97962066f9df5e Mon Sep 17 00:00:00 2001 From: James Elliott Date: Mon, 12 Apr 2021 13:21:19 +1000 Subject: [PATCH] docs: misc fixes to documentation after overhaul (#1906) --- docs/configuration/index.md | 16 ++++++++++++++++ docs/configuration/miscellaneous.md | 2 +- docs/configuration/server.md | 2 +- docs/configuration/storage/index.md | 12 +++--------- docs/configuration/theme.md | 22 +++++++++++++++++----- 5 files changed, 38 insertions(+), 16 deletions(-) diff --git a/docs/configuration/index.md b/docs/configuration/index.md index c4807132..b8063ea4 100644 --- a/docs/configuration/index.md +++ b/docs/configuration/index.md @@ -16,6 +16,22 @@ When running **Authelia**, you can specify your configuration by passing the fil $ authelia --config config.custom.yml ``` +## Documentation + +We document the configuration in two ways: + +1. The configuration yaml default has comments documenting it. All documentation lines start with `##`. Lines starting + with a single `#` are yaml configuration options which are commented to disable them or as examples. + +2. This documentation site. Generally each section of the configuration is in its own section of the documentation + site. Each configuration option is listed in its relevant section as a heading, under that heading generally are two + or three colored labels. + - The `type` label is purple and indicates the yaml value type of the variable. It optionally includes some + additional information in parentheses. + - The `default` label is blue and indicates the default value if you don't define the option at all. This is not the + same value as you will see in the examples in all instances, it is the value set when blank or undefined. + - The `required` label changes color. When required it will be red, when not required it will be green, when the + required state depends on another configuration value it is yellow. ## Validation diff --git a/docs/configuration/miscellaneous.md b/docs/configuration/miscellaneous.md index 9b69e21c..82abaeae 100644 --- a/docs/configuration/miscellaneous.md +++ b/docs/configuration/miscellaneous.md @@ -117,7 +117,7 @@ log_level: debug
type: string {: .label .label-config .label-purple } -default: "" +default: text {: .label .label-config .label-blue } required: no {: .label .label-config .label-green } diff --git a/docs/configuration/server.md b/docs/configuration/server.md index ff753fb0..4c096529 100644 --- a/docs/configuration/server.md +++ b/docs/configuration/server.md @@ -27,7 +27,7 @@ type: integer default: 4096 {: .label .label-config .label-blue } required: no -{: .label .label-config .label-red } +{: .label .label-config .label-green }
Configures the maximum request size. The default of 4096 is generally sufficient for most use cases. diff --git a/docs/configuration/storage/index.md b/docs/configuration/storage/index.md index 03b8d274..c77cd0e3 100644 --- a/docs/configuration/storage/index.md +++ b/docs/configuration/storage/index.md @@ -8,13 +8,7 @@ has_children: true # Storage backends -**Authelia** supports multiple storage backends. The backend is used -to store user preferences, 2FA device handles and secrets, authentication -logs, etc... +**Authelia** supports multiple storage backends. The backend is used to store user preferences, 2FA device handles and +secrets, authentication logs, etc... -The available options are: - -* [MariaDB](./mariadb.md) -* [MySQL](./mysql.md) -* [Postgres](./postgres.md) -* [SQLite](./sqlite.md) +The available storage backends are listed in the table of contents below. diff --git a/docs/configuration/theme.md b/docs/configuration/theme.md index 47dc707b..312b9ca4 100644 --- a/docs/configuration/theme.md +++ b/docs/configuration/theme.md @@ -9,13 +9,25 @@ nav_order: 11 The theme section configures the theme and style Authelia uses. -There are currently 3 available themes for Authelia: -* light (default) -* dark -* grey - ## Configuration ```yaml theme: light ``` + +## Options + +### theme +
+type: string +{: .label .label-config .label-purple } +default: light +{: .label .label-config .label-blue } +required: no +{: .label .label-config .label-green } +
+ +There are currently 3 available themes for Authelia: +* light (default) +* dark +* grey