pelican/docs
Forest 48f4f0850d Make StaticGenerator skip content sources. Refs #1019.
This change partially addresses issue #1019, by teaching Pelican to distinguish
between static files and content source files. A user can now safely add the
same directory to both STATIC_PATHS and PAGE_PATHS (or ARTICLE_PATHS). Pelican
will then process the content source files in that directory normally, and
treat the remaining files as static, without copying the raw content source
files to the output directory. (The OUTPUT_SOURCES setting still works.)

In other words, images and markdown/reST files can now safely live together.

To keep those files together in the generated site, STATIC_SAVE_AS and
PAGE_SAVE_AS (or ARTICLE_SAVE_AS) should point to the same output directory.

There are two new configuration settings:

STATIC_EXCLUDES=[]  # This works just like PAGE_EXCLUDES and ARTICLE_EXCLUDES.
STATIC_EXCLUDE_SOURCES=True  # Set this to False to get the old behavior.

Two small but noteworthy internal changes:

StaticGenerator now runs after all the other generators. This allows it to see
which files are meant to be processed by other generators, and avoid them.

Generators now include files that they fail to process (e.g. those with missing
mandatory metadata) along with all the other paths in context['filenames'].
This allows such files to be excluded from StaticGenerator's file list, so they
won't end up accidentally published. Since these files have no Content object,
their value in context['filenames'] is None. The code that uses that dict has
been updated accordingly.
2014-10-31 16:46:01 -07:00
..
_static Really fix #1311 by declaring CSS overrides as !important 2014-04-28 22:08:34 +02:00
changelog.rst Bump version 3.4.0 2014-07-01 13:34:47 -07:00
conf.py Fix #1311 wide tables in RTD theme, remove old theme files 2014-04-28 20:37:49 +02:00
content.rst Remove AsciiDocReader from core. Fixes #1355 2014-06-14 02:17:43 -04:00
contribute.rst Refactor logging handling 2014-07-22 12:39:39 -04:00
faq.rst Update faq.rst 2014-09-22 16:36:34 +02:00
importer.rst Split Getting Started docs into separate sections 2014-05-12 07:48:37 -07:00
index.rst Enhance feedback and contributing guidelines 2014-06-30 18:34:18 -07:00
install.rst Remove AsciiDocReader from core. Fixes #1355 2014-06-14 02:17:43 -04:00
internals.rst Remove AsciiDocReader from core. Fixes #1355 2014-06-14 02:17:43 -04:00
Makefile Add the docs 2010-10-13 23:08:08 +01:00
pelican-themes.rst Split Getting Started docs into separate sections 2014-05-12 07:48:37 -07:00
plugins.rst Spelling correction in docs: usefull -> useful. 2014-10-01 02:05:49 -07:00
publish.rst Split Getting Started docs into separate sections 2014-05-12 07:48:37 -07:00
quickstart.rst Corrected typo to improve readability 2014-07-27 07:33:05 -07:00
report.rst Eliminate extraneous whitespace 2012-10-12 23:01:50 +02:00
settings.rst Make StaticGenerator skip content sources. Refs #1019. 2014-10-31 16:46:01 -07:00
themes.rst Docs update for *_{previous|next}_page variables 2014-05-27 12:30:42 -04:00
tips.rst For creating a CNAME, directory name should be extra 2013-11-19 16:49:37 +05:30