Commit graph

76 commits

Author SHA1 Message Date
MinchinWeb
3a0add4b6e Convert FEED settings from %s to {slug} redux (#2432)
* Convert FEED settings from `%s` to `{slug}` redux

Closes #2106, Closes #2383
2018-11-03 16:12:20 +01:00
Oliver Urs Lenz
048ea4dc0c automatically copy linked static files 2018-11-01 18:08:11 +01:00
Vladimír Vondruš
d04b777159 Test for SITESUBTITLE in feeds.
It's now present in both RSS and Atom feeds.
2017-10-29 21:28:11 +01:00
Justin Mayer
cc8f835f07 Merge pull request #1602 from ltiao/patch-1
Removed `PDF_GENERATOR=False`
2015-04-01 08:05:40 +09:00
Louis Tiao
f7a5d06c6d Removed PDF_GENERATOR=False
It might give the impression that the PDF generation is still part of the core.
2015-01-27 18:42:34 +08:00
Kevin Yap
88ad46fd4d Change documented type of various settings
- DEFUALT_METADATA, tuple -> dictionary
- OUTPUT_RETENTION, tuple -> list
- JINJA_FILTERS, list -> dictionary
- DIRECT_TEMPLATES, tuple -> list
2015-01-17 18:15:24 -08:00
Deniz Turgut
009543b7e4 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-26 01:01:42 -04:00
Ondrej Grover
3f6b130d6e 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-26 00:00:19 -04:00
Florian Jacob
bd9d1b9539 The modified attribute no longer has a default value.
This allows for templates using {% if article.modified %}
instead of {% if article.modified != article.published %} .
2013-11-17 23:40:11 +01:00
SDGSDG
3580233b38 Support for pygment defaults and relevant documentation 2013-09-15 23:13:17 -07:00
bmcorser
10c62b27dd More exciting files 2013-08-31 22:00:52 +01:00
bmcorser
d22b089241 Adding placeholder files for regression test 2013-08-24 13:41:22 +01:00
SDGSDG
ece437f8fd Added more pygments options for code blocks 2013-08-05 22:50:49 -07:00
Russ Webber
5a8f5cefdd fix py3 support for sourcecode directive
added sourcecode to the functional test so it's tested *somewhere*.
fixes #963
2013-08-05 23:45:48 +08:00
Rogdham
0999d4d691 Deliberate overriding of an existing file to tests
Deliberate overriding via `save_as` metadata should be allowed, even after the
overwrite detection feature. This commit is to add tests for deliberate
overriding. As a result, the relevant tests *should fail* after this commit.

Added a page and an article, both to override a tag, with very old dates so
it limits the amount of diff in the generated pages.

Overriding feature introduced by d0e9c52410
Overwrite detection introduced by ff7410ce2a
2013-08-04 12:07:40 +01:00
W. Trevor King
0dee76f259 samples: Remove EXTRA_PATH_METADATA entries for pictures
I'd added them earlier to test that a configuration edit could
preserve the original output locations.  However, it is likely that
you have quite a number of static files, and we shouldn't recommend
listing explicit paths for all of them.  With this configuration
change, the pictures will be copied into the output directory using
their original relative path (e.g. `pictures/Fat_Cat.jpg` without the
`static`).  Any |filename|-style links will be updated automatically.

If you *want* the pictures to end up in a `static` directory, it's
easier to just organize your source that way.
2013-06-15 20:52:16 -04:00
W. Trevor King
7de7bd0e37 Update sample configurations from FILES_TO_COPY to EXTRA_PATH_METADATA 2013-06-12 15:02:31 -04:00
Justin Mayer
0a8678a8ae Change RELATIVE_URLS default to False - Fixes #829 2013-04-11 16:12:55 -07:00
Justin Mayer
d0e9c52410 Merge pull request #623 from bbinet/url-save_as-override
Override page 'url' and 'save_as' directly from the page metadata. Fixes #400.
2013-03-04 10:11:45 -08:00
Dirk Makowski
71995d5e1b Port pelican to python 3.
Stays compatible with 2.x series, thanks to an unified codebase.
2013-01-11 03:20:09 +01:00
Bruno Binet
00c7451200 add functional test for save_as/url override
and update functional tests output
2012-12-07 00:14:02 +01:00
Bruno Binet
f604cc4df8 update functional tests to test TEMPLATE_PAGES feature
closes #614: cannot reproduce this issue.
2012-12-03 22:56:07 +01:00
Bruno Binet
fc13ae8e76 add new file to functional test content to showcase FILENAME_METADATA
and update functional tests output
2012-12-03 09:54:43 +01:00
Bruno Binet
c74abe579b Don't rewrite URLs
Remove the code that was appending ../static in front of some URLs, and add a
way to do cross-content linking.
2012-12-01 21:30:50 +01:00
jawher
578f9ea21e Update the test sample config to set FEED_ALL_RSS instead of FEED_RSS (fixes the custom generation tests) 2012-11-12 23:01:17 +01:00
Bruno Binet
fe9388a7a4 Merge remote-tracking branch 'origin/master' into fix-functional-tests
Conflicts:
	tests/support.py
2012-07-05 01:22:31 +02:00
Bruno Binet
3a2df479da fix test_custom_generation_works functional test 2012-07-05 00:12:05 +02:00
tBunnyMan
a0e46c9106 Add support for status: hidden in pages
Resolves #380 If the status metadata is set to 'hidden' on a page it is translated and rendered but not linked anywhere in the site.
2012-06-26 19:26:43 -07:00
Bruno Binet
ef77847762 force locale to ascii in functional tests 2012-05-19 23:44:37 +02:00
Justin Mayer
1623394da8 Add tests for pull request #262 2012-03-22 07:58:04 -07:00
Justin Mayer
8819d02600 Allow for serving feeds from a separate domain.
This (indirectly) enables support for FeedBurner. Added docs for
FeedBurner configuration. Clarify how defining the SITEURL attribute
affects URL structure. Closes #177.
2012-03-16 20:27:26 -07:00
Alexis Metaireau
917633628a add some more articles for the tests 2012-02-29 18:15:38 +01:00
Alexis Metaireau
9543ce049f update the documentation to make timezone configuration clearer 2011-12-29 16:04:46 +01:00
Alexis Metaireau
95b44ef8bf Add Pygments support to the default sourcecode directive.
It is now possible to have highlited sourcecode using the ``::`` syntax.
2011-06-18 18:59:44 +02:00
Alexis Metaireau
1c6ea5aab2 Fix locale setup in settings.py 2011-05-31 12:44:40 +02:00
Mikhail Korobov
6cd425e408 Basic test for the new rst reader. Locale is also converted to fr_FR.utf-8 (I wasn't able to run tests without this) 2011-05-11 09:42:37 +06:00
Alexis Metaireau
371892ceaa Merge branch tests into main. (See #44)
Conflicts:
	pelican/contents.py
	pelican/settings.py
	samples/pelican.conf.py
2011-05-10 23:18:11 +01:00
Alexis Metaireau
6b44d93780 Add the possibility to publish drafts. Fixes #111 2011-05-08 14:58:57 +01:00
Alexis Metaireau
04da794b6b Add a feature to copy files from src to dest.
Fixes #86
2011-05-07 22:47:30 +01:00
Alexis Metaireau
56effc24cb Add a DEFAULT_METADATA setting.
It is now possible to have soem default metadata defined in the settings. Fixes #98
2011-05-07 19:56:55 +01:00
Alexis Metaireau
a65cfe6237 add a test metadata for #98 2011-04-21 19:26:12 +02:00
Alexis Metaireau
c749f610c5 add a markdown article for tests purposes 2011-04-20 16:17:36 +02:00
Alexis Metaireau
ec06e6ed95 Add a possibility to define the summary of an article directly in rst. 2011-03-08 15:41:40 +00:00
Alexis Metaireau
80d1fdaef3 Add some few test content. 2011-02-17 19:03:55 +00:00
Laureline Guerin
4111acd1c1 Pagination added for index and tag/category pages 2011-02-14 16:24:54 +01:00
Alexis Metaireau
bbd8305310 Set locale to default while writing RSS feeds
to always output RFC822 compatible dates. Fixes #67
2011-02-09 21:17:57 +00:00
Alexis Metaireau
06246d1aa4 Fix #65. Unicode, grr. Thanks Bruno Bord. 2011-02-01 22:50:18 +00:00
Alexis Metaireau
d13e6f14fb Changes about locales and dates.
Add a way to specify the locale in the settings, and the date formating as well.
Fixes #61.
2011-02-01 21:44:50 +00:00
Alexis Metaireau
d0ec18f4db Add the ability to sort categories.
generator.categories is now a list of (category, articles) instead of a dict. This
is to avoid using ordered dicts that have been introduces in python 2.7, so we stay
as much as possible compatible with older versions.

This fixes #62. Thanks to Bruno for the report.
2011-02-01 01:57:39 +00:00
Alexis Metaireau
e14ed4749d Add the slug for the translation articles. 2011-01-25 16:23:43 +00:00