1
0
Fork 0
forked from github/pelican
Commit graph

172 commits

Author SHA1 Message Date
jawher
593acfc37a Remove comment 2012-11-12 23:01:16 +01:00
jawher
721a422e5e The all Atom and RSS feed generators should include all articles, regardless of the article's language or the site's. Fixes #550. 2012-11-12 23:01:16 +01:00
Alexis Métaireau
bfc963a065 We pass lists, not dicst! 2012-10-30 18:57:06 +01:00
Bruno Binet
54eee3f28a update TemplatePagesGenerator:
* bugfix: now supports custom path for path where to find the content files
* TEMPLATE_PAGES settings is now of the form:
    { 'jinja2/src/file.html': 'dest/file.html' }
* update doc
2012-10-30 09:56:10 +01:00
Bruno Binet
e0e1b3eecf rename STATIC_PAGES to TEMPLATE_PAGES 2012-10-30 09:56:10 +01:00
Tarek Ziade
7127676f71 added a static pages generator
Conflicts:
	pelican/__init__.py
	pelican/generators.py
	pelican/settings.py
2012-10-30 09:56:08 +01:00
Martin Brochhaus
47c972e21a Added USE_FOLDER_AS_CATEGORY setting.
This allows users to organize their files in ways where the subfolder name
would not make a good category name (i.e. /2012/09/). Set this to ``False``
and the subfolder will no longer be used as a standard category,
`DEFAULT_CATEGORY` will be used instead.
2012-10-28 20:43:45 +01:00
Alexis Métaireau
93c04cd79f merge with master 2012-10-25 13:20:27 +02:00
Bruno Binet
0856b72c3c cosmetics
lines should be < 80 chars
2012-10-22 23:05:18 +02:00
jawher
a11726783e TRANSLATION_FEED is now split into TRANSLATION_FEED_ATOM and TRANSLATION_FEED_RSS to match the other feed configuration keys
Incidentally, Pelican can now generate RSS translation feeds.
2012-10-22 22:52:06 +02:00
FELD Boris
22f3c40385 Add a new signal article_generator_finalized, called at the end of ArticleGenerator.generate_context 2012-10-13 19:17:16 +02:00
Alexis Métaireau
17dc36aad6 merge upstream 2012-10-12 23:22:55 +02:00
epatters
ac67587b79 BUG: Typogrify not applied to pages. 2012-10-12 23:01:50 +02:00
Wladislaw Merezhko
3a6196ccd1 Add two new parameters for creating pdf
* PDF_STYLE - name of custom style to use when generating pdf
* PDF_STYLE_PATH - path where custom style is located
2012-10-12 23:01:50 +02:00
Dirk Makowski
5e45aaab78 Patch to allow relative ASSET_URL
Previously, webassets' ASSET_URL always was absolute.
This patch allows a relative ASSET_URL, depending on Pelican's
RELATIVE_URLS setting.

Hint for templates:
-------------------
Current version of webassets seem to remove any relative
paths at the beginning of the URL. So, if RELATIVE_URLS
is on, ASSET_URL will start with 'theme/', regardless if we
set assets_url here to './theme/' or to 'theme/'.
XXX However, this breaks the ASSET_URL if user navigates to
a sub-URL, e.g. if he clicks on a category. To workaround this
issue, I use
    <link rel="stylesheet" href="{{ SITEURL }}/{{ ASSET_URL }}">
instead of
    <link rel="stylesheet" href="{{ ASSET_URL }}">

Maybe this hint is worth to be included in the documentation.
I have it also written as comments in the source.
2012-10-12 23:01:50 +02:00
Wladislaw Merezhko
b9c0f07f57 Fixing pdf generation issue 2012-10-12 23:01:49 +02:00
Alexis Metaireau
48625964f1 Merge pull request #510 from nrocco/sourcegen
New source file .text generator
2012-10-12 13:57:18 -07:00
Nico Di Rocco
a7dd21ffaf Added a new setting OUTPUT_SOURCES_EXTENSION
Using this configurable setting users can control what extension will be
appended to filenames by the SourcesGenerator.

The default is to use the ``.text`` extension.
2012-09-28 14:59:05 +02:00
Alexis Metaireau
32429d3091 Merge pull request #488 from dmdm/relative_urls_for_webassets
Patch to allow relative ASSET_URL
2012-09-25 15:03:00 -07:00
Alexis Metaireau
ea97e9a9a8 Merge pull request #508 from infinitylx/CyrilicPdf
Cyrilic pdf
2012-09-25 14:54:55 -07:00
Nico Di Rocco
0a1a868b37 Added sourcefile generator that generates .text files 2012-09-15 23:11:09 +02:00
epatters
1da88a647a BUG: Typogrify not applied to pages. 2012-09-08 21:39:10 -07:00
Wladislaw Merezhko
8b44fa6a2d Add two new parameters for creating pdf
* PDF_STYLE - name of custom style to use when generating pdf
* PDF_STYLE_PATH - path where custom style is located
2012-09-08 18:24:15 +03:00
Trae Blain
41fdfa63b1 Fixed page_name call to adapt to the link structure provided by the
Settings file. Also updated the documentation accordingly.

Update documentation to cover new page_name behavior

Fixed page_name to adapt to the links provided by the Settings file. Includes documentation updates as well.

Updated terms to maintain better syntax and consistancy

Added docstring to _from_settings() to clarify the get_page_name argument that was added. Explains why/when this argument is used.

Revert contents.py back to commit 2f29c51

Re-added docstring to _get_settings method, but this time not deleting things I shouldn't

Corrected readability change that was altered during revert.
2012-09-04 08:55:43 -05:00
Rachid Belaid
c462237b9d Add new setting EXTRA_TEMPLATES_PATHS
This setting allow to use template which are not in the theme.
Should help to build more generic themes around the content.
2012-09-03 00:57:23 +01:00
Dirk Makowski
0ec0cf9d0e Patch to allow relative ASSET_URL
Previously, webassets' ASSET_URL always was absolute.
This patch allows a relative ASSET_URL, depending on Pelican's
RELATIVE_URLS setting.

Hint for templates:
-------------------
Current version of webassets seem to remove any relative
paths at the beginning of the URL. So, if RELATIVE_URLS
is on, ASSET_URL will start with 'theme/', regardless if we
set assets_url here to './theme/' or to 'theme/'.
XXX However, this breaks the ASSET_URL if user navigates to
a sub-URL, e.g. if he clicks on a category. To workaround this
issue, I use
    <link rel="stylesheet" href="{{ SITEURL }}/{{ ASSET_URL }}">
instead of
    <link rel="stylesheet" href="{{ ASSET_URL }}">

Maybe this hint is worth to be included in the documentation.
I have it also written as comments in the source.
2012-08-28 00:50:17 +02:00
Wladislaw Merezhko
ef3cad5421 Fixing pdf generation issue 2012-08-18 20:32:43 +03:00
tBunnyMan
b0d860b7e0 Fixed bad signal placement for pages
The signal needs to be in the loop that iterates through the pages since it runs on each page and uses the page metadata.
Also fixed for pep8
Fix #432
2012-07-22 09:08:47 -07:00
Alexis Metaireau
8007c20c79 Merge pull request #418 from tbunnyman/WarnOnFeedGeneration#383
Update: De-appreciate FEED for FEED_RSS & FEED_ATOM
2012-07-20 03:53:18 -07:00
Alexis Metaireau
db79abdc13 Merge pull request #419 from tbunnyman/ReverseArchiveOrder#304
Change default REVERSE_ARCHIVE_ORDER to true
2012-07-20 03:51:59 -07:00
Joshua Adelman
597dba1391 Added signals to plugin for pages generation 2012-07-19 20:59:48 -04:00
tBunnyMan
fe91caf325 Changed wording of the setting to NEWEST_FIRST_ARCHIVES
Also updated documentation and tested to make sure behavior matches expected wording
2012-07-18 11:18:48 -07:00
tBunnyMan
5f958ae84d Refactor atom feed names for clarity
FEED -> FEED_ATOM
TAG_FEED -> TAG_FEED_ATOM
CATEGORY_FEED -> CATEGORY_FEED_ATOM
2012-07-16 09:35:05 -07:00
tBunnyMan
6393df3bfe Fix Spelling 2012-07-14 18:08:11 -07:00
tBunnyMan
d9817f9a96 Test for FEED & FEED_RSS before generation.
Then we bypass all feed generation of both are set to None or throw a warning if SITEURL is unset.
Updated all documentation, to make sure the usage and warning is clear.
2012-07-14 17:05:04 -07:00
Samrat Man Singh
e92937eea0 Merge remote-tracking branch 'upstream/master' 2012-07-12 14:29:56 +05:45
Alexis Metaireau
e196fb95e1 Merge branch 'master' of github.com:ametaireau/pelican into fix-functional-tests 2012-07-12 10:39:13 +02:00
tBunnyMan
3c5f6e1887 Inconsistent warning/error, pages failing switched to warning.
Fixes #397
2012-07-11 21:04:01 -07:00
Samrat Man Singh
d9b5ee10de moved related_posts to plugin 2012-07-11 01:16:19 +05:45
Samrat Man Singh
875734f963 Pull from ametaireau / pelican 2012-07-10 20:56:00 +05:45
Samrat Man Singh
53a1c21a98 More changes to related_posts 2012-07-10 20:43:43 +05:45
Samrat Man Singh
a0812eeb17 Several changes to related_posts. 2012-07-10 19:52:59 +05:45
Alexis Metaireau
4ce5adb2a0 Merge branch 'master' of github.com:ametaireau/pelican into fix-functional-tests 2012-07-10 13:51:34 +02:00
Samrat Man Singh
ddc0aa0e82 Related posts is now working, but needs some actual logic. 2012-07-10 11:06:07 +05:45
tBunnyMan
dff5b3589b Add per page templates. Closes #376
Also set up helper classes in test_generators.py for cleaner tests
2012-07-07 14:15:43 -07: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
36be150f20 replace FALLBACK_ON_FS_DATE by DEFAULT_DATE
DEFAULT_DATE allows to specify any default date as a tuple in addition to the
fallback on filesystem mtime check
2012-07-05 00:12:05 +02:00
tBunnyMan
de251bc999 Fixes typo in error message for bad status
Bugfix #380 We want the bad status of page, not article.
2012-06-26 19:51:48 -07: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
Alexis Metaireau
6a0937a9e8 merge the plugin branch 2012-06-10 01:14:30 +02:00