Merge pull request #510 from nrocco/sourcegen

New source file .text generator
This commit is contained in:
Alexis Metaireau 2012-10-12 13:57:18 -07:00
commit 48625964f1
6 changed files with 34 additions and 11 deletions

View file

@ -53,14 +53,10 @@ List of signals
Here is the list of currently implemented signals:
========================= ============================ ===========================================================================
========================= ============================ =========================================
Signal Arguments Description
========================= ============================ ===========================================================================
========================= ============================ =========================================
initialized pelican object
finalized pelican object invoked after all the generators are executed and just before pelican exits
usefull for custom post processing actions, such as:
- minifying js/css assets.
- notify/ping search engines with an updated sitemap.
article_generate_context article_generator, metadata
article_generator_init article_generator invoked in the ArticlesGenerator.__init__
get_generators generators invoked in Pelican.get_generator_classes,
@ -68,7 +64,7 @@ get_generators generators invoked in Pelican.ge
generator in a tuple or in a list.
pages_generate_context pages_generator, metadata
pages_generator_init pages_generator invoked in the PagesGenerator.__init__
========================= ============================ ===========================================================================
========================= ============================ =========================================
The list is currently small, don't hesitate to add signals and make a pull
request if you need them!

View file

@ -69,6 +69,12 @@ Setting name (default value) What doe
`PDF_GENERATOR` (``False``) Set to True if you want to have PDF versions
of your documents. You will need to install
`rst2pdf`.
`OUTPUT_SOURCES` (``False``) Set to True if you want to copy the articles and pages in their
original format (e.g. Markdown or ReStructeredText) to the
specified OUTPUT_PATH.
`OUTPUT_SOURCES_EXTENSION` (``.text``) Controls the extension that will be used by the SourcesGenerator.
Defaults to ``.text``. If not a valid string the default value
will be used.
`RELATIVE_URLS` (``True``) Defines whether Pelican should use document-relative URLs or
not. If set to ``False``, Pelican will use the SITEURL
setting to construct absolute URLs.