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
Alexis Metaireau
8454b0d1b8
Tests for settings.
2011-01-13 00:46:10 +01:00
Alexis Metaireau
79576f25b6
Fix translation feature. Add translation support to the notmyidea theme.
2011-01-05 16:22:52 +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
Alexis Metaireau
41a5f390fb
Put the notmyidea theme by default.
...
--HG--
rename : samples/themes/notmyidea/css/main.css => pelican/themes/notmyidea/css/main.css
rename : samples/themes/notmyidea/css/pygment.css => pelican/themes/notmyidea/css/pygment.css
rename : samples/themes/notmyidea/css/reset.css => pelican/themes/notmyidea/css/reset.css
rename : samples/themes/notmyidea/images/icons/delicious.png => pelican/themes/notmyidea/images/icons/delicious.png
rename : samples/themes/notmyidea/images/icons/lastfm.png => pelican/themes/notmyidea/images/icons/lastfm.png
rename : samples/themes/notmyidea/images/icons/rss.png => pelican/themes/notmyidea/images/icons/rss.png
rename : samples/themes/notmyidea/images/icons/twitter.png => pelican/themes/notmyidea/images/icons/twitter.png
rename : samples/themes/notmyidea/templates/archives.html => pelican/themes/notmyidea/templates/archives.html
rename : samples/themes/notmyidea/templates/article.html => pelican/themes/notmyidea/templates/article.html
rename : samples/themes/notmyidea/templates/base.html => pelican/themes/notmyidea/templates/base.html
rename : samples/themes/notmyidea/templates/categories.html => pelican/themes/notmyidea/templates/categories.html
rename : samples/themes/notmyidea/templates/category.html => pelican/themes/notmyidea/templates/category.html
rename : samples/themes/notmyidea/templates/index.html => pelican/themes/notmyidea/templates/index.html
rename : samples/themes/notmyidea/templates/tag.html => pelican/themes/notmyidea/templates/tag.html
rename : samples/themes/notmyidea/templates/tags.html => pelican/themes/notmyidea/templates/tags.html
rename : pelican/themes/templates/archives.html => pelican/themes/simple/templates/archives.html
rename : pelican/themes/templates/article.html => pelican/themes/simple/templates/article.html
rename : pelican/themes/templates/base.html => pelican/themes/simple/templates/base.html
rename : pelican/themes/templates/categories.html => pelican/themes/simple/templates/categories.html
rename : pelican/themes/templates/category.html => pelican/themes/simple/templates/category.html
rename : pelican/themes/templates/index.html => pelican/themes/simple/templates/index.html
rename : pelican/themes/templates/tag.html => pelican/themes/simple/templates/tag.html
rename : pelican/themes/templates/tags.html => pelican/themes/simple/templates/tags.html
2010-10-30 16:47:59 +01:00
Alexis Metaireau
6192d5a647
Replace BLOG setting variables by SITE ones.
2010-10-30 00:58:32 +01:00
Alexis Metaireau
fdb920e50a
Welcome Pelican 2.0 ! Refactoring of the internals to be more extensible.
...
--HG--
rename : pelican/bloggenerator.py => pelican/generators.py
2010-10-30 00:56:40 +01:00
Alexis Metaireau
2baf91a50d
Theme fix + remove trailing spaces when parsing rst files for tags.
2010-10-17 04:21:00 +01:00
Alexis Metaireau
fc9c8e4d2b
Update the notmyidea theme.
2010-10-16 04:33:55 +01:00
Alexis Metaireau
3ea2968a83
Use docinfo fields instead of comments.
2010-10-15 01:26:21 +01:00
Alexis Metaireau
c3ed5c3a20
Fix the atom feed url.
2010-09-28 01:11:00 +01:00