1
0
Fork 0
forked from github/pelican
Commit graph

36 commits

Author SHA1 Message Date
Justin Mayer
d43b786b30 Modernize code base to Python 3+ syntax
Replaces syntax that was relevant in earlier Python versions but that
now has modernized equivalents.
2020-04-27 09:45:31 +02:00
Justin Mayer
7eae9b1abc Reduce warnings and errors in sample content
This reduces the warnings and errors when generating the sample content
from twelve to one (intentional) warning. The latter is expected by
assertLogCountEqual() in the "test_basic_generation_works" test.
2020-04-14 21:39:47 +02:00
Kevin Yap
1e0e541b57 Initial pass of removing Python 2 support
This commit removes Six as a dependency for Pelican, replacing the
relevant aliases with the proper Python 3 imports. It also removes
references to Python 2 logic that did not require Six.
2019-11-26 06:16:41 +09:00
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
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
SDGSDG
3580233b38 Support for pygment defaults and relevant documentation 2013-09-15 23:13:17 -07: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
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
f604cc4df8 update functional tests to test TEMPLATE_PAGES feature
closes #614: cannot reproduce this issue.
2012-12-03 22:56:07 +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
3a2df479da fix test_custom_generation_works functional test 2012-07-05 00:12:05 +02: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
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
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
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
8454b0d1b8 Tests for settings. 2011-01-13 00:46:10 +01:00
Arnaud BOS
3ee595f927 Images support and add built files to gitignore 2011-01-05 13:32:54 +01:00
Guillaume B
31cee95b6f Fixed the PDF generation
Signed-off-by: Guillaume B <guitreize@gmail.com>
2010-12-22 10:45:55 +08:00
Alexis Metaireau
f352d16971 Put the real version of the conf file, not the symbolic link ;) 2010-12-05 23:11:45 +00:00
Alexis Metaireau
44d2968976 Update the sample config with the one I use. 2010-12-05 22:54:42 +00:00