Commit graph

575 commits

Author SHA1 Message Date
Deniz Turgut
49d5c1c782 Fix test errors on OSX
On OSX, if LC_TIME and LC_CTYPE differs the output of strftime is not properly decoded
in Python 3. This makes sure that the 'utils.DateFormatter' and the related Jinja filter
'strftime' set the same value for LC_TIME and LC_CTYPE while formatting.

Also, '%a' is removed from DEFAULT_DATE_FORMAT in 'custom_locale' tests. OSX and *nix have
different conversions for '%a' ('Jeu' vs 'jeu.') and there is not a feasible way to handle
the difference for tests.
2014-06-28 16:18:47 -07:00
Ondrej Grover
21b7007a8d Fix #1198, enable custom locale in template rendering, fixes links
reverts getpelican/pelican@ddcccfeaa9

If one used a locale that made use of unicode characters (like fr_FR.UTF-8)
the files on disk would be in correct locale while links would be to C.

Uses a SafeDatetime class that works with unicode format strigns
by using custom strftime to prevent ascii decoding errors with Python2.

Also added unicode decoding for the calendar module to fix period
archives.
2014-06-28 16:18:47 -07:00
Deniz Turgut
24aca13b3e Remove AsciiDocReader from core. Fixes #1355 2014-06-28 16:18:47 -07:00
Deniz Turgut
fdfa738be3 Docs update for *_{previous|next}_page variables 2014-06-28 16:18:47 -07:00
Ondrej Grover
5b68a3e633 Add {PAGE,ARTICLE}_PATHS to {ARTICLE,PAGE}_EXCLUDES automatically
This makes it easier for someone to change PAGE_PATHS without the
need to change ARTICLE_EXCLUDES accordingly.
2014-06-28 16:18:47 -07:00
Ondrej Grover
fe10d58aa4 Fix #1344 move PLUGIN_PATH -> PLUGIN_PATHS
Pelican uses *_PATHS names for settings that represent a list of paths.
2014-06-28 16:18:46 -07:00
Ondrej Grover
0d0ee07a27 move {ARTICLE,PAGE}_DIR -> {ARTICLE,PAGE}_PATHS
Instead of one path a list can be given. This is due to popular request.
Should help people not wanting to use Pelican for blogging.
Maintain backward compatibility though.
Thanks to @ingwinlu for pointing out the change in StaticGenerator.
2014-06-28 16:18:46 -07:00
Justin Mayer
cb55efd998 If PATH is undefined, Pelican uses PWD as content 2014-06-28 16:18:46 -07:00
Justin Mayer
bb38f66e4a Split Getting Started docs into separate sections
The "Getting Started" docs became overly long and unwieldy over time.
This splits it into separate sections, including:

* Quickstart
* Installation
* Writing content
* Publish your site
2014-06-28 16:18:46 -07:00
Justin Mayer
3b78e15252 Prepare for splitting up Getting Started docs 2014-06-28 16:18:46 -07:00
Ondrej Grover
faa5f4763a Fix #1335 remove old and unmaintained French docs
Unfortunately nobody keeps them up to date, they would just spread
confusion.
2014-06-28 16:18:46 -07:00
Ondrej Grover
4fc448ac0d rename CACHE_DIR -> CACHE_PATH to unify with rest of Pelican
CACHE_PATH can now be relative to settings file like OUTPUT_PATH.
Also add --cache-path commandline option.
Change cache loading warning to a less scary and more helpful message.
2014-06-28 16:18:46 -07:00
Justin Mayer
4239b47b83 Remove errant backtick 2014-06-28 16:18:46 -07:00
Justin Mayer
01a0e727e3 Show setting defaults as actual code
For some reason, setting names on the Settings page have long been
wrapped in single back-ticks (usually meant for linking in reST) instead
of double back-ticks (meant for denoting code). This seems to be
widespread throughout the docs, and it's not clear if this is
intentional or simply a reST formatting error that got propagated by
others in order to stay consistent. This commit applies double
back-ticks in any case where something resembling code is shown, with
the idea that single back-ticks should only be used when linking.

More importantly, the settings denoted their default values in
parentheses, which hapless users often included when copying and pasting
these values into their config files. As one can imagine, confusion —
not hilarity — ensued. Setting defaults are now shown as they would
actually appear in one's settings file, with an equal sign and without
parentheses.

During this spelunking expedition, many other minor improvements were
concurrently conducted.
2014-06-28 16:18:46 -07:00
Ondrej Grover
9d5b2e9489 Really fix #1311 by declaring CSS overrides as !important
this is needed because on RTD the common hosted theme stylesheets get added
after the overrides.
2014-06-28 16:18:45 -07:00
Ondrej Grover
b3fe098c00 Fix #1311 wide tables in RTD theme, remove old theme files
This works by adding a CSS overrides file to the Sphinx app stylesheets.
2014-06-28 16:18:45 -07:00
Ondrej Grover
3b7189ec8a add get_writer signal and unify with get_generators
Fix outdated docs of get_generators to unify.
2014-06-28 16:18:45 -07:00
Bernhard Scheirle
de3ed6c1ef send the static_generator_{init, finalized} signals.
Note: The two signals were already present but were never sent.
2014-06-28 16:18:45 -07:00
Ondrej Grover
3e12f40b08 split content caching into two layers
This is a reworked and improved version of content caching.
Notable changes:
- by default only raw content and metadata returned by readers are
  cached which should prevent conficts with plugins, the speed benefit
  of content objects caching is not very big with a simple setup
- renamed --full-rebuild to --ignore-cache
- added more elaborate logging to caching code
2014-06-28 16:18:45 -07:00
Shauna
55cab63714 Add feeds for each author 2014-06-28 16:18:45 -07:00
Justin Mayer
be22bc807c Text tweaks for "PLUGIN_PATH as list" feature 2014-06-28 16:18:45 -07:00
Lonewolf
2f916d0154 Ability to specify PLUGIN_PATH as list
PLUGIN_PATH added to settings table
2014-06-28 16:18:45 -07:00
Ondrej Grover
23c1f2f3d0 enable writing of only selected output paths
- add WRITE_SELECTED setting
- add --write-selected commandline option
2014-06-28 16:18:45 -07:00
Justin Mayer
60905163c8 Fix settings table in docs 2014-06-28 16:18:44 -07:00
Lonewolf
900fa755ba Added new sphinxtheme as requirement for docs Modified docs conf to support the theme update 2014-06-28 16:18:44 -07:00
Ondrej Grover
6c06ee9e5b Cache content to speed up reading. Fixes #224.
Cache read content so that it doesn't have to be read next time if its
source has not been modified.
2014-06-28 16:18:44 -07:00
Justin Mayer
dafa2c36b1 Minor text changes to log message limitation 2014-06-28 16:18:44 -07:00
Justin Mayer
3b9564b069 Minor correction to settings documentation 2014-06-28 16:18:44 -07:00
Rogdham
1fb04bfc21 Limit and filter logs
Drop duplicates logs.
Allow for logs to be grouped, enforcing a maximum number of logs per group.
Add the LOG_FILTER setting to ask from the configuration file to ignore some
logs (of level up to warning).
2014-06-28 16:18:44 -07:00
Helmut Grohne
cb4b2e7dfa change the inhibition value of *_SAVE_AS to ''
Previously, the documentation claimed the value of None for this purpose
even though False was used for certain defaults. The values False and
None cause warnings to be emitted from URLWrapper._from_settings though,
so the new way of inhibiting page generation is to set a *_SAVE_AS value
to the empty string.
2014-06-28 16:18:44 -07:00
Justin Mayer
da5849d1a0 Fix docs last_stable version and copyright date 2014-06-28 16:18:44 -07:00
th3aftermath
715b9eae68 Fix indentation error in the settings doc
This was accidentally caused by me in #1248
As a result the Basic Settings table was not being updated.
2014-06-28 16:18:43 -07:00
th3aftermath
6533f803b7 Add the setting SLUGIFY_ATTRIBUTE 2014-06-28 16:18:43 -07:00
Justin Mayer
49a0559912 Minor improvements to Settings docs 2014-06-28 16:18:43 -07:00
Stefan hr Berder
fde856ec45 add lang support for drafts (#826 & #1107)
Fix #826
Fix #1107
2014-06-28 16:18:43 -07:00
Stefan hr Berder
656e85a2dd change date metadata parsing to dateutil.parser 2014-06-28 16:18:43 -07:00
Anatoly Bubenkov
92a4229bb7 multiple authors implemented 2014-06-28 16:18:43 -07:00
Justin Mayer
5bc3a7d0d8 Revert to newly-revived Typogrify project
Since the Typogrify project will be actively maintained going forward,
there is no need for the fork.
2014-06-28 16:18:42 -07:00
Justin Mayer
a9d1fdae3d PY and PELICAN env variable overrides for Make
This allows the user to set PY and/or PELICAN environment variable
overrides, which will be respected by the Makefile and devserver.sh.
If, for example, the default Python on your system were Python 3 and
you wanted to run Make with Python 2, using bash you could run
`PY=python2 make`. Refs #915.
2014-02-08 14:32:58 -08:00
Justin Mayer
9b36437d97 Merge pull request #1246 from fenekku/period-to-archive-context
Add period to period_archives context. Refs #1044.
2014-02-08 12:19:36 -08:00
Justin Mayer
05f392c6bc Merge pull request #1249 from smartass101/split_articles_generate_context
Add article_generator_pretaxonomy signal
2014-02-08 12:13:23 -08:00
Justin Mayer
45e1aa112f Clarify docs re: settings file 2014-02-07 17:05:15 -08:00
Ondrej Grover
22762f2c16 add signal article_generator_pretaxonomy
invoked before categories and tags lists are created
useful when e.g. modifying the list of articles to be generated
so that removed articles are not leaked in categories or tags
2014-02-07 08:34:27 +01:00
Justin Mayer
9dd8e3954c Merge pull request #1202 from tomtung/patch-2
Update settings.rst to match tag cloud code
2014-02-05 07:43:51 -08:00
fenekku
f6e27617f8 Add period to period_archives context. Refs #1044.
* Adds period tuple of (year, month, day) matching the time
  period of the current archive. Note that this is done
  to the archive context if period_archives.html doesn't exist.
* Adds tests to verify this.
* Adds documentation in themes.rst about period in period_archives.html.
2014-02-03 20:26:38 -05:00
Alistair Magee
45bc018672 add the new signal to the docs 2014-01-25 20:44:15 +00:00
Simon Conseil
6264cf8916 Clarify docs about the DIRECT_TEMPLATES _SAVE_AS and _URL settings. 2014-01-05 23:37:44 +01:00
Iuri de Silvio
fb1cfc35bf Change CATEGORIES_URL and CATEGORIES_SAVE_AS docs to
make it consistent with TAGS_URL and TAGS_SAVE_AS.

Add default values to CATEGORIES_URL and CATEGORIES_SAVE_AS.
2014-01-05 18:34:23 -02:00
Justin Mayer
b25001333d Merge pull request #1214 from hrbonz/article_generator_write_article
Add a signal on article writing
2014-01-05 09:03:09 -08:00
Justin Mayer
505852c04c Use the actively maintained typogrify-web package
The Typogrify library is no longer actively maintained by the
original author. These changes switch Pelican over to a new fork that
will receive more consistent updates going forward.
2014-01-03 08:51:52 -08:00