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
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
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
Alexis Metaireau
4d5b1ae741
Merge pull request #351 from quodlibetor/warn-on-skip
...
Add warnings for files skipped due to unknown status
2012-06-09 14:26:33 -07:00
Alexis Metaireau
e3919a1b82
Merge pull request #341 from m-r-r/trailing-slashes
...
Trailing slashes removed to avoid category bug
2012-06-09 14:22:03 -07:00
Brandon W Maister
849244f61e
Add warnings for files skipped due to unknown status
2012-05-15 17:48:07 -04:00
m-r-r
0444513e90
Trailing slashes removed to avoid category bug
2012-05-12 11:49:49 +02:00
Simon
e6448567a0
add some doc in the code
2012-05-11 22:19:03 +02:00
Simon
263ba2b0fa
Merge remote-tracking branch 'upstream/master'
2012-05-11 21:59:21 +02:00
Simon
ec707930ce
integrate webassets
2012-05-11 21:58:10 +02:00
Alexis Metaireau
419a2159e6
Merge remote-tracking branch 'muffinresearch/master'
...
Conflicts:
docs/settings.rst
tests/test_generators.py
2012-05-11 16:17:47 +02:00
Alexis Metaireau
8a842c0de7
merge with master
2012-05-06 02:43:13 +02:00
Stuart Colville
06ba9acdb8
Pass write function to reduce duplication. Simplify logic.
2012-05-02 09:26:33 +01:00
Stuart Colville
e4f011a697
Refactor generators to aid testing
2012-04-29 10:34:20 +01:00
Stuart Colville
cc46ac5d4c
Allow user to customise the save location of direct template pages from settings.
2012-04-28 18:01:19 +01:00
Meir Kriheli
17626b5474
Don't use shell=True
2012-04-28 03:46:43 +03:00
Meir Kriheli
0924a9dd73
Not pdf, but less folder
2012-04-28 03:27:30 +03:00
Meir Kriheli
f558389006
Remove redundant LESS_COMPILER setting
2012-04-28 03:25:54 +03:00
Meir Kriheli
2b93d6d855
Remove empty generate_context
2012-04-28 03:04:58 +03:00
Meir Kriheli
b73d984ec9
Merge branch 'master' of https://github.com/ametaireau/pelican
2012-04-28 00:52:45 +03:00
Meir Kriheli
ddf57ca295
Also compile less css files in theme static
2012-04-15 02:52:19 +03:00
Meir Kriheli
50f2cd295f
Implement LessCSSGenerator
2012-04-15 02:20:20 +03:00
Dafydd Crosby
28a1e0f432
Fix some typos and grammar
2012-04-07 18:02:40 -06:00
draftcode
4efca13c33
Fix a bug that ArticlesGenerator doesn't see DEFAULT_CATEGORY.
...
When you set ARTICLE_DIR which is not equal to PATH, ArticlesGenerator
doesn't use DEFAULT_CATEGORY but use ARTICLE_DIR's dirname.
2012-03-24 11:53:07 +09:00
Andrea Crotti
0922efa371
change the way logging is done, using the standard log tree instead of
...
calling the module-level functions on an unitialised logging object.
This allows to
- simplify log.py
- use one logger object for each file
2012-03-20 13:01:21 +00:00
Bruno Binet
4fe67b8947
Merge remote-tracking branch 'ametaireau/plugins' into plugins
...
Conflicts:
docs/settings.rst
pelican/__init__.py
pelican/generators.py
pelican/settings.py
setup.py
2012-03-20 01:07:25 +01:00