File tree Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Original file line number Diff line number Diff line change @@ -181,6 +181,36 @@ For further information, see the [documentation].
181
181
[theme extension] : ../customization.md
182
182
[documentation] : https://guts.github.io/mkdocs-rss-plugin/configuration/
183
183
184
+ # ## Blog only
185
+
186
+ You might need to build a pure blog without any documentation.
187
+ In this case, you can create a folder tree like this :
188
+
189
+ ` ` ` { .sh .no-copy }
190
+ .
191
+ ├─ docs/
192
+ │ ├─ posts/ # (1)!
193
+ │ ├─ .authors.yml
194
+ │ └─ index.md
195
+ └─ mkdocs.yml
196
+ ` ` `
197
+
198
+ 1. Notice that the `posts` directory is in the root of `docs` without
199
+ intermediate `blog` directory.
200
+
201
+ And add the following lines to `mkdocs.yml` :
202
+
203
+ ` ` ` yaml
204
+ plugins:
205
+ - blog:
206
+ blog_dir: . # (1)!
207
+ ` ` `
208
+
209
+ 1. More info about [blog_dir](../plugins/blog.md#config.blog_dir)
210
+
211
+ With this configuration, the url of the blog post will be `/<post_slug>`
212
+ instead of `/blog/<post_slug>`.
213
+
184
214
# # Usage
185
215
186
216
# ## Writing your first post
You can’t perform that action at this time.
0 commit comments