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
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
Alexis Metaireau
02b9b964b8
restore the use of python rather than pypy in the batfiles (windows)
2012-02-27 21:06:33 +01:00
Alexis Metaireau
7a7fc781a0
Merge branch 'localedate' of https://github.com/farseerfc/pelican
2012-02-27 19:46:55 +01:00
Jiachen Yang
3ccbe19c8a
typo in docs/settings.rst#date format and locales
2012-02-28 03:37:58 +09:00
Alexis Metaireau
278d1105cf
Merge pull request #215 from farseerfc/d1d82db4f7096793feee4e56ff510b0846762b04
...
Changing LOCALE according to lang of current page in DATE_FORMAT
2012-02-27 10:22:56 -08:00
Jiachen Yang
76ee6c2149
Added document and test case for #215
2012-02-28 03:08:39 +09:00
Jiachen Yang
189d72e989
Merge remote-tracking branch 'ametaireau/master' into localedate
2012-02-28 01:43:50 +09:00
Jiachen Yang
e78372f338
import unittest if cannot found unittest2
2012-02-28 01:43:36 +09:00
Alexis Metaireau
ab245726ed
Merge pull request #212 from mbrochh/fix_tests
...
Added some fixes to the test suite so that it doesn't fail any more.
2012-02-26 03:47:15 -08:00
Jiachen Yang
d1d82db4f7
Change date_format to support (locale,format)
2012-02-26 16:35:04 +09:00
Martin Brochhaus
67472298ca
Added changes as per codereview.
2012-02-20 17:58:23 +01:00
Martin Brochhaus
52fb81a441
Added some fixes to the test suite so that it doesn't fail any more.
2012-02-20 17:39:47 +01:00