This commit is contained in:
Fernando Serboncini 2013-06-20 03:11:43 -07:00
commit 1fcbaff870
2 changed files with 3 additions and 1 deletions

View file

@ -149,6 +149,7 @@ Setting name (default value) What doe
These templates need to use ``DIRECT_TEMPLATES`` setting.
`ASCIIDOC_OPTIONS` (``[]``) A list of options to pass to AsciiDoc. See the `manpage
<http://www.methods.co.nz/asciidoc/manpage.html>`_
`DRAFT_PATH` (``drafts``) Path where drafts will be saved.
===================================================================== =====================================================================
.. [#] Default is the system locale.

View file

@ -353,7 +353,8 @@ class ArticlesGenerator(Generator):
def generate_drafts(self, write):
"""Generate drafts pages."""
for article in self.drafts:
write(os.path.join('drafts', '%s.html' % article.slug),
write(os.path.join(self.settings.get('DRAFT_PATH', 'drafts'),
'%s.html' % article.slug),
self.get_template(article.template), self.context,
article=article, category=article.category,
all_articles=self.articles)