Alexis Metaireau
8499ce3340
add some url and saveas settings that weren't present in the default settings dict
2012-03-10 13:23:50 +01:00
Alexis Metaireau
a7ea166fd2
fix #233
2012-03-10 12:21:54 +01:00
Alexis Metaireau
0cf820f07b
Merge pull request #234 from saghul/issue-233
...
Fix for issue #233
2012-03-10 03:20:54 -08:00
saghul
5e26062fd0
Fix for issue #233
2012-03-10 11:32:22 +01:00
Alexis Metaireau
174f1b50c8
Merge pull request #231 from AndreaCrotti/master
...
various small improvements
2012-03-09 09:04:16 -08:00
Alexis Metaireau
542b8b8705
add a 'coding standards' section in the contributors' guide
2012-03-09 16:27:23 +01:00
Alexis Metaireau
8a442e726a
Don't specify the default when accessing settings.
...
There is no need to do this, since all the default values are already provided
in the default settings dict (in settings.py)
2012-03-09 16:22:28 +01:00
Alexis Metaireau
6cde7fd27a
PEP8-ify.
...
Wrap to 80 chars, sanitize imports.
2012-03-09 16:21:38 +01:00
Alexis Metaireau
df25dec30a
Use the with statement when opening files.
2012-03-09 16:17:09 +01:00
Alexis Metaireau
0298d412dc
updated CHANGELOG
2012-03-09 15:36:29 +01:00
Alexis Metaireau
7240460688
Update the CHANGELOG for 2.8
2012-03-09 15:33:34 +01:00
Alexis Metaireau
a7cea63db6
Merge branch 'urls' of https://github.com/kylef/pelican
2012-03-09 11:42:21 +01:00
Alexis Metaireau
019382220a
Merge pull request #232 from MeirKriheli/master
...
Make sure test passes for dates formatted as utf-8
2012-03-09 02:36:04 -08:00
Meir Kriheli
dd07ddb0b0
Make sure test passes for dates formatted as utf-8
2012-03-09 02:03:15 +02:00
Andrea Crotti
20af8fd378
refactoring of the ANSI dictionary, removing all the repeated code
2012-03-07 12:17:39 +00:00
Andrea Crotti
2e0e893a9b
fix three print statement
2012-03-07 12:14:13 +00:00
Andrea Crotti
4eb20c5d82
global declaration is only needed if it's necessary to modify a module
...
level variable, to declare it and use it read only it's not necessary
2012-03-07 12:00:32 +00:00
Alexis Metaireau
1405667692
Merge pull request #230 from AndreaCrotti/master
...
refactor the scripts
2012-03-07 03:59:15 -08:00
Andrea Crotti
8f7b08a01c
remove now useless if __name__ == '__main__' checks and clean up the
...
old pelican script in bin
2012-03-07 10:38:08 +00:00
Andrea Crotti
7c78f232b4
remove unused imports
2012-03-07 10:34:14 +00:00
Andrea Crotti
8009324a3b
restructure the whole way scripts are created, using setuptools magic
...
to take care of creating .exe wrappers for windows.
To make this work needed to
- rename modules with a "-" in it (not a valid name)
- add an __init__.py to the tools directory
- create an entry point dictionary which stores the right associations
2012-03-07 10:33:46 +00:00
Andrea Crotti
1f32624e8b
use a try / except to check if argparse is a needed dependency
2012-03-07 10:14:52 +00:00
Alexis Metaireau
352d2047b4
MOAR TYPOGRAPHY
2012-03-06 17:57:29 +01:00
Bruno Binet
8f8933d991
fix test test_save_as
...
ERROR: test_save_as (tests.test_contents.TestPage)
If a lang is not the default lang, save_as should be set
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/bruno/dev/pelican/tests/test_contents.py", line 63, in test_save_as
page.save_as = 'foo-bar.html'
AttributeError: can't set attribute
2012-03-06 16:41:36 +00:00
Bruno Binet
c2b8caed3f
fix test test_article_with_metadata
...
error was:
ERROR: test_article_with_metadata (tests.test_readers.RstReaderTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/bruno/dev/pelican/tests/test_readers.py", line 22, in test_article_with_metadata
reader = readers.RstReader()
TypeError: __init__() takes exactly 2 arguments (1 given)
2012-03-06 16:41:36 +00:00
Bruno Binet
bfd0e63e3d
fix pages urls
2012-03-06 16:41:36 +00:00
Bruno Binet
8bf0a22eb0
fix encoding errors
...
error was:codeEncodeError: 'ascii' codec can't encode character u'\xe9' [..]
2012-03-06 16:41:36 +00:00
Kyle Fuller
c5816c9c5a
Make these patches compatible with upstream master
2012-03-06 16:41:36 +00:00
Kyle Fuller
9ba55c28b4
Support CLEAN_URLS and ARTICLE_PERMALINK_STRUCTURE for backwards compatibility
2012-03-06 16:41:36 +00:00
Kyle Fuller
44cf2ad400
Support configurable URL's & SAVE_AS path for Author, Category and Tag
2012-03-06 16:41:35 +00:00
Kyle Fuller
a39787c1a2
Add settings to change the URL's and SAVE_AS paths
...
Example usage:
* ARTICLE_URL = 'posts/{date:%Y}/{date:%b}/{date:%d}/{slug}/'
* ARTICLE_SAVE_AS = 'posts/{date:%Y}/{date:%b}/{date:%d}/{slug}/index.html'
This removes CLEAN_URLS and ARTICLE_PERMALINK_STRUCTURE because these
new settings can produce the same result.
2012-03-06 16:41:35 +00:00
Kyle Fuller
ff9c786149
Create a Author class which has a url property
2012-03-06 16:39:07 +00:00
Kyle Fuller
f9ed01bb64
Create a Tag class which has a url property
2012-03-06 16:39:07 +00:00
Kyle Fuller
6754099730
Create a Category class which has a url property
2012-03-06 16:39:07 +00:00
Alexis Metaireau
2de789325f
Merge pull request #229 from justinmayer/master
...
Updated outdated links and added Contribute link to README for issue #227
2012-03-06 08:29:18 -08:00
Justin Mayer
4861a15774
Update outdated links to documentation and add Contribute link to README for issue #227
2012-03-06 08:12:15 -08:00
Alexis Metaireau
8997a08cd7
Merge pull request #228 from justinmayer/master
...
Improved English documentation with enhanced clarity, grammar, and spelling
2012-03-06 06:38:02 -08:00
Justin Mayer
bde06c4011
Improve English documentation with enhanced clarity, grammar, and spelling
2012-03-06 06:13:17 -08:00
Alexis Metaireau
ddac40e9cb
Include .bat files in the distribution. Fix #221
2012-03-03 18:26:07 +01:00
Alexis Metaireau
917633628a
add some more articles for the tests
2012-02-29 18:15:38 +01:00
Alexis Metaireau
6c5fe3b0cf
prepare next release
2012-02-28 19:09:41 +01:00
Alexis Metaireau
f31d588839
Merge branch 'master' of github.com:ametaireau/pelican
2.8
2012-02-28 19:00:15 +01:00
Alexis Metaireau
e0308e3528
bump version
2012-02-28 18:59:46 +01:00
Alexis Metaireau
097a781e0e
Merge pull request #218 from stephane/cleanup
...
Cleanup
2012-02-28 08:48:53 -08:00
Stéphane Raimbault
a4e620680c
Add pytz in requirements
2012-02-28 17:40:13 +01:00
Stéphane Raimbault
483bed74b8
Removed extra whitespace before /usr/bin/env
2012-02-28 17:40:13 +01:00
Stéphane Raimbault
9cced6be83
Sort imports and remove trailing whitespaces
2012-02-28 17:40:13 +01:00
Stéphane Raimbault
821fa5460b
Removed execution mode of default_conf.py
2012-02-28 17:37:17 +01:00
Stéphane Raimbault
c699172fd6
Removed useless imports
2012-02-28 17:37:17 +01:00
Stéphane Raimbault
90dab85e13
Removed execution mode of generators.py
2012-02-28 17:37:17 +01:00