mirror of
https://github.com/mkdocs/mkdocs.git
synced 2026-03-27 09:58:31 +07:00
Improved theme config docs.
This commit is contained in:
@@ -468,7 +468,7 @@ directory is a package.
|
||||
### Theme Configuration
|
||||
|
||||
A packaged theme is required to include a configuration file named
|
||||
`mkdocs.theme.yml` which is placed in the root of your template files. The file
|
||||
`mkdocs_theme.yml` which is placed in the root of your template files. The file
|
||||
should contain default configuration options for the theme. However, if the
|
||||
theme offers no configuration options, the file is still required and can be
|
||||
left blank.
|
||||
@@ -476,7 +476,7 @@ left blank.
|
||||
The theme author is free to define any arbitrary options deemed necessary and
|
||||
those options will be made available in the templates to control behavior.
|
||||
For example, a theme might want to make a sidebar optional and include the
|
||||
following in the `mkdocs-theme.yml` file:
|
||||
following in the `mkdocs_theme.yml` file:
|
||||
|
||||
```yaml
|
||||
show_sidebar: true
|
||||
|
||||
@@ -25,10 +25,18 @@ the [Customizing a Theme][customize] section below.
|
||||
|
||||
### mkdocs
|
||||
|
||||
The default theme, which was built as a custom [Bootstrap] theme, supports most
|
||||
every feature of MkDocs. It only supports the default
|
||||
[theme configuration options].
|
||||
|
||||

|
||||
|
||||
### readthedocs
|
||||
|
||||
A clone of the default theme used by the [Read the Docs] service. This theme
|
||||
only supports features in its parent theme and does not support any MkDocs
|
||||
[theme configuration options] in addition to the defaults.
|
||||
|
||||

|
||||
|
||||
### Third Party Themes
|
||||
@@ -252,6 +260,9 @@ any additional CSS files included in the `custom_dir`.
|
||||
|
||||
[browse source]: https://github.com/mkdocs/mkdocs/tree/master/mkdocs/themes/mkdocs
|
||||
[built-in themes]: #built-in-themes
|
||||
[Bootstrap]: http://getbootstrap.com/
|
||||
[theme configuration options]: configuration.md#theme
|
||||
[Read the Docs]: https://readthedocs.org/
|
||||
[community wiki]: https://github.com/mkdocs/mkdocs/wiki/MkDocs-Themes
|
||||
[custom theme]: ./custom-themes.md
|
||||
[customize]: #customizing-a-theme
|
||||
|
||||
Reference in New Issue
Block a user