mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2025-01-19 01:14:06 +01:00
Documentation
This commit is contained in:
parent
6e87dba163
commit
921a6302ae
@ -27,6 +27,12 @@
|
|||||||
"type": "string",
|
"type": "string",
|
||||||
"default": "blog"
|
"default": "blog"
|
||||||
},
|
},
|
||||||
|
"blog_toc": {
|
||||||
|
"title": "Blog table of contents",
|
||||||
|
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/setting-up-a-blog/#+blog.blog_toc",
|
||||||
|
"type": "boolean",
|
||||||
|
"default": false
|
||||||
|
},
|
||||||
"post_date_format": {
|
"post_date_format": {
|
||||||
"title": "Format string for post dates",
|
"title": "Format string for post dates",
|
||||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/setting-up-a-blog/#+blog.post_date_format",
|
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/setting-up-a-blog/#+blog.post_date_format",
|
||||||
@ -203,6 +209,12 @@
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
"archive_toc": {
|
||||||
|
"title": "Archive table of contents",
|
||||||
|
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/setting-up-a-blog/#+blog.archive_toc",
|
||||||
|
"type": "boolean",
|
||||||
|
"default": false
|
||||||
|
},
|
||||||
"categories": {
|
"categories": {
|
||||||
"title": "Categories",
|
"title": "Categories",
|
||||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/setting-up-a-blog/#+blog.categories",
|
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/setting-up-a-blog/#+blog.categories",
|
||||||
@ -241,12 +253,6 @@
|
|||||||
"type": "string",
|
"type": "string",
|
||||||
"default": "\"-\""
|
"default": "\"-\""
|
||||||
},
|
},
|
||||||
"categories_toc": {
|
|
||||||
"title": "Category index table of contents",
|
|
||||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/setting-up-a-blog/#+blog.categories_toc",
|
|
||||||
"type": "boolean",
|
|
||||||
"default": false
|
|
||||||
},
|
|
||||||
"categories_allowed": {
|
"categories_allowed": {
|
||||||
"title": "Categories allowed",
|
"title": "Categories allowed",
|
||||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/setting-up-a-blog/#+blog.categories_allowed",
|
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/setting-up-a-blog/#+blog.categories_allowed",
|
||||||
@ -257,6 +263,12 @@
|
|||||||
"uniqueItems": true,
|
"uniqueItems": true,
|
||||||
"default": []
|
"default": []
|
||||||
},
|
},
|
||||||
|
"categories_toc": {
|
||||||
|
"title": "Categories table of contents",
|
||||||
|
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/setting-up-a-blog/#+blog.categories_toc",
|
||||||
|
"type": "boolean",
|
||||||
|
"default": false
|
||||||
|
},
|
||||||
"pagination": {
|
"pagination": {
|
||||||
"title": "Pagination",
|
"title": "Pagination",
|
||||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/setting-up-a-blog/#+blog.pagination",
|
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/setting-up-a-blog/#+blog.pagination",
|
||||||
|
@ -106,6 +106,21 @@ The following configuration options are available:
|
|||||||
|
|
||||||
The path must be defined relative to [`docs_dir`][docs_dir].
|
The path must be defined relative to [`docs_dir`][docs_dir].
|
||||||
|
|
||||||
|
[`blog_toc`](#+blog.blog_toc){ #+blog.blog_toc }
|
||||||
|
|
||||||
|
: :octicons-milestone-24: Default: `false` – This option specifies whether
|
||||||
|
indexes include a table of contents with all post titles on the
|
||||||
|
right side as an overview:
|
||||||
|
|
||||||
|
``` yaml
|
||||||
|
plugins:
|
||||||
|
- blog:
|
||||||
|
blog_toc: true
|
||||||
|
```
|
||||||
|
|
||||||
|
Note that this setting is also used as the default value for `archive_toc`
|
||||||
|
and `categories_toc`, unless those settings are explicitly defined.
|
||||||
|
|
||||||
__The built-in blog plugin has dozens of options that allow for advanced
|
__The built-in blog plugin has dozens of options that allow for advanced
|
||||||
configuration. It's a good idea to [start writing your first post], and come
|
configuration. It's a good idea to [start writing your first post], and come
|
||||||
back here later for fine-tuning the output.__
|
back here later for fine-tuning the output.__
|
||||||
@ -493,6 +508,18 @@ The following configuration options are available for archive index generation:
|
|||||||
archive_url_format: "{date}"
|
archive_url_format: "{date}"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
[`archive_toc`](#+blog.archive_toc){ #+blog.archive_toc }
|
||||||
|
|
||||||
|
: :octicons-milestone-24: Default: `false` – This option specifies whether an
|
||||||
|
archive index includes a table of contents with all post titles on the
|
||||||
|
right side as an overview:
|
||||||
|
|
||||||
|
``` yaml
|
||||||
|
plugins:
|
||||||
|
- blog:
|
||||||
|
archive_toc: true
|
||||||
|
```
|
||||||
|
|
||||||
#### Categories
|
#### Categories
|
||||||
|
|
||||||
The following configuration options are available for category index generation:
|
The following configuration options are available for category index generation:
|
||||||
@ -582,18 +609,6 @@ The following configuration options are available for category index generation:
|
|||||||
categories_slugify_separator: "-"
|
categories_slugify_separator: "-"
|
||||||
```
|
```
|
||||||
|
|
||||||
[`categories_toc`](#+blog.categories_toc){ #+blog.categories_toc }
|
|
||||||
|
|
||||||
: :octicons-milestone-24: Default: `false` – This option specifies whether a
|
|
||||||
category index includes a table of contents with all post titles on the
|
|
||||||
right side as an overview:
|
|
||||||
|
|
||||||
``` yaml
|
|
||||||
plugins:
|
|
||||||
- blog:
|
|
||||||
categories_toc: true
|
|
||||||
```
|
|
||||||
|
|
||||||
[`categories_allowed`](#+blog.categories_allowed){ #+blog.categories_allowed }
|
[`categories_allowed`](#+blog.categories_allowed){ #+blog.categories_allowed }
|
||||||
|
|
||||||
: :octicons-milestone-24: Default: _none_ – This option specifies the
|
: :octicons-milestone-24: Default: _none_ – This option specifies the
|
||||||
@ -610,6 +625,18 @@ The following configuration options are available for category index generation:
|
|||||||
- Performance
|
- Performance
|
||||||
```
|
```
|
||||||
|
|
||||||
|
[`categories_toc`](#+blog.categories_toc){ #+blog.categories_toc }
|
||||||
|
|
||||||
|
: :octicons-milestone-24: Default: `false` – This option specifies whether a
|
||||||
|
category index includes a table of contents with all post titles on the
|
||||||
|
right side as an overview:
|
||||||
|
|
||||||
|
``` yaml
|
||||||
|
plugins:
|
||||||
|
- blog:
|
||||||
|
categories_toc: true
|
||||||
|
```
|
||||||
|
|
||||||
#### Pagination
|
#### Pagination
|
||||||
|
|
||||||
The following configuration options are available for index pagination:
|
The following configuration options are available for index pagination:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user