Skip to content

Commit f5f3cd2

Browse files
committedSep 15, 2015
added note mentioned in #915
1 parent acd7b15 commit f5f3cd2

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed
 

‎docs/manual.txt

+8
Original file line numberDiff line numberDiff line change
@@ -454,6 +454,14 @@ and ``PAGES`` configuration options:
454454
("stories/*.rst", "stories", "story.tmpl"),
455455
)
456456

457+
.. note:: POSTS and PAGES are not flat!
458+
459+
Even if the syntax may suggest you can't, you can create any directory structure you want
460+
inside ``posts/`` or ``stories/`` and it will be reflected in the output. For example,
461+
``posts/foo/bar.txt`` would produce ``output/posts/foo/bar.html``, assuming the slug is also ``bar``.
462+
463+
If you have ``PRETTY_URLS`` enabled, that would be ``output/posts/foo/bar/index.html``.
464+
457465
``new_post`` will use the *first* path in ``POSTS`` (or ``PAGES`` if ``-p`` is
458466
supplied) that ends with the extension of your desired markup format (as
459467
defined in ``COMPILERS`` in ``conf.py``) as the directory that the new post will be

0 commit comments

Comments
 (0)
Please sign in to comment.