Skip to content

Commit

Permalink
Documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
squidfunk committed Feb 18, 2023
1 parent 6e87dba commit 921a630
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 18 deletions.
24 changes: 18 additions & 6 deletions docs/schema/plugins/blog.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@
"type": "string",
"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": {
"title": "Format string for post dates",
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/setting-up-a-blog/#+blog.post_date_format",
Expand Down Expand Up @@ -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": {
"title": "Categories",
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/setting-up-a-blog/#+blog.categories",
Expand Down Expand Up @@ -241,12 +253,6 @@
"type": "string",
"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": {
"title": "Categories allowed",
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/setting-up-a-blog/#+blog.categories_allowed",
Expand All @@ -257,6 +263,12 @@
"uniqueItems": true,
"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": {
"title": "Pagination",
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/setting-up-a-blog/#+blog.pagination",
Expand Down
51 changes: 39 additions & 12 deletions docs/setup/setting-up-a-blog.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,21 @@ The following configuration options are available:

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
configuration. It's a good idea to [start writing your first post], and come
back here later for fine-tuning the output.__
Expand Down Expand Up @@ -493,6 +508,18 @@ The following configuration options are available for archive index generation:
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

The following configuration options are available for category index generation:
Expand Down Expand Up @@ -582,18 +609,6 @@ The following configuration options are available for category index generation:
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 }

: :octicons-milestone-24: Default: _none_ – This option specifies the
Expand All @@ -610,6 +625,18 @@ The following configuration options are available for category index generation:
- 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

The following configuration options are available for index pagination:
Expand Down

0 comments on commit 921a630

Please sign in to comment.