W. Trevor King
8ff34e6c5d
Replace settings.get(key) with settings[key] for default settings
...
If a setting exists in DEFAULT_CONFIG, assume it will be there
(instead of checking and/or providing a local default). The earlier
code was split between the two idioms, which was confusing.
2013-06-02 14:24:27 -04:00
W. Trevor King
c8e7d95b34
tests.support: Use kwargs overrides in get_settings()
...
This avoids harcoding test-specific overrides, and makes it easy to
setup a settings dictionary based on DEFAULT_CONFIG for testing.
Because you can trust Pelican to use settings based on DEFAULT_CONFIG,
you are free to go about using:
settings[my_key]
instead of:
settings.get(my_key, some_fallback)
or:
if my_key in settings:
...
if you know that `my_key` is in DEFAULT_CONFIG.
2013-06-02 14:24:27 -04:00
W. Trevor King
8511915294
settings: Cleanup configure_settings() (standardization & types)
...
This pulls out some general patterns to make it easier to apply
existing processing to new settings.
2013-06-02 13:32:10 -04:00
W. Trevor King
1d4d86c876
settings: Rework the LESS_GENERATOR removal warning for easy extension
...
Setting migration is something that will happen for multiple settings,
and the more we can standardize the reporting procedure, the easier it
will be to add new warnings.
2013-06-02 13:32:10 -04:00
W. Trevor King
e9dc1dd478
settings: Make DEFAULT_CONFIG public
...
This dictionary is accessed by plugins (like `summary`) which add new
settings, so it should be public (i.e. no prefixed underscore).
The changed name length would have led to a re-indenting of the
default contents anyway, so I shifted them all to four spaces.
2013-06-02 13:32:10 -04:00
W. Trevor King
c6de4430a0
tests/test_readers.py: Remove redundant 'expected' check in AdReaderTest
...
AdReaderTest.test_article_with_asc_extension() has had duplicate
checks on the expected metadata since it was created by 49f481e3 (Add
asciidoc reader support, 2013-10-28). This commit removes the
duplicate entry.
2013-06-02 09:58:27 -07:00
Justin Mayer
a81c50ff55
Merge pull request #907 from saimn/py3k
...
Drop python 3.2 support and move to python 3.3
2013-06-02 09:34:31 -07:00
Simon Conseil
7057d3742b
Drop python 3.2 support and move to python 3.3.
...
Jinja 2.7 (released 2013-05-20) supports only Python3 >=3.3 so it is time to
drop Python 3.2 and move to 3.3
2013-06-02 16:23:36 +02:00
Simon Conseil
427a5ca3c3
Include feeds and mkd files in the dist package.
...
This files are needed to run the tests.
2013-06-02 16:22:32 +02:00
Simon Conseil
fd018d7ceb
Update tests output with feedgenerator 1.6
...
feedgenerator 1.6 includes a change to write feed attributes in a consistent
order between py2.7 and py3.3.
2013-06-02 16:21:10 +02:00
Simon Conseil
529d0d99c5
Update version requirement with feedgenerator 1.6
...
feedgenerator 1.6 changes the order of attributes in feeds, so we must use this
version to have consistent functionnal tests.
2013-06-02 16:21:10 +02:00
Simon Conseil
2bf91e54cd
Tox: use git urls for py3 versions of smartypants and typogrify
...
+ This make it easier to use tox with py3: no need to checkout manually
typogrify and smartypants repos and use tox's distshare.
+ Remove feedgenerator as it is already a dependy for pelican.
2013-06-02 16:17:35 +02:00
Chris Brannon
f8cf685c30
Use the builtin "open" on Python 3.
2013-05-27 14:49:57 +10:00
Alexis Métaireau
675d6c81cd
Include the md / rst files in the dist
2013-05-19 22:28:53 +10:00
Justin Mayer
e999918cd1
Merge pull request #891 from mrshu/patch-1
...
Updated pelican.server not started error message.
2013-05-18 15:38:09 -07:00
mr.Shu
2856f49b3a
Updated pelican.server not started error message.
2013-05-18 08:20:50 +02:00
Justin Mayer
33653f2864
Merge pull request #890 from dominiqueplante/pep8-content
...
adhere to pep8
2013-05-16 06:03:36 -07:00
Dominique Plante
7024fe1192
adhere to pep8
2013-05-15 22:18:35 -07:00
Kyle Fuller
ee752d9b66
Merge pull request #888 from dominiqueplante/pep8-setup
...
adhere to PEP8 coding standards
2013-05-15 03:47:27 -07:00
Dominique Plante
19de7539f4
adhere to PEP8 coding standards
2013-05-14 23:41:18 -07:00
Justin Mayer
8c47ab21ec
Merge pull request #881 from ben2367/patch-1
...
Update importer documentation
2013-05-14 11:36:14 -07:00
Justin Mayer
71150430a9
Merge pull request #885 from avaris/markdown-summary-footnote
...
Markdown summary should not include content footnote
2013-05-13 15:36:39 -07:00
Alexis Metaireau
86d4aac918
Merge pull request #864 from saimn/docutils_options
...
Add `DOCUTILS_SETTINGS` to allow to customize the docutils Publisher.
2013-05-13 00:21:12 -07:00
Alexis Metaireau
55382dd184
Merge pull request #858 from jmurty/feature/import_wp_pages
...
Import wordpress pages to pages/ subdir with --dir-page option
2013-05-13 00:18:01 -07:00
Alexis Metaireau
dcc17bbfa4
Merge pull request #848 from Rogdham/no_overwrite
...
Check URL overwrite. Fixes #446 .
2013-05-13 00:17:26 -07:00
Alexis Métaireau
ead50cca62
some cleanup
2013-05-13 13:53:52 +10:00
Alexis Metaireau
bcfd574664
Merge pull request #804 from dowlingw/master
...
#803 - Include default configuration file if present
2013-05-12 20:50:31 -07:00
Deniz Turgut
75f214103e
Markdown summary should not include content footnote
...
Markdown instance carries state for subsequent uses. Content
and summary parsing is done with the same instance. Since
footnotes are processed with an extension and stored as state,
content footnote is duplicated for summary.
This PR adds a ``.reset()`` call before summary parsing to clear
the state. It also adds a test case with footnotes.
2013-05-10 03:50:33 -04:00
ben2367
fa1550ceaa
Update importer documentation
...
Dependencies were not the good one, wordpress importer needs BeautifulSoup4 and lxml
2013-05-09 04:07:17 +02:00
Justin Mayer
e9ca508e8e
Add more detail to Pygments FAQ entry. Fixes #821
2013-05-06 07:28:25 -07:00
Justin Mayer
43f4d0df7a
Add reST example to arbitrary metadata FAQ entry
2013-05-06 06:51:54 -07:00
Justin Mayer
2482baf837
Merge pull request #874 from avaris/non-ascii-error
...
Handle critical exception logging correctly in localized systems
2013-05-04 08:35:01 -07:00
Deniz Turgut
084818b399
Handle critical exception logging correctly in localized systems
...
Python generates certain exception messages (like IOError) in system
language, if locale is set. This ensures that the message is properly
converted to unicode in Python 2.
2013-05-04 04:55:42 -04:00
Justin Mayer
50505dfd71
Merge pull request #845 from Rogdham/case-insensitive_caterogy_tag
...
Make tags and cats case insensitive. Fixes #704 .
2013-05-03 10:27:46 -07:00
Rogdham
91337940d3
Make tags and cats case insensitive. Fixes #704 .
...
More precisely, group tags or categories without considering the case.
This fixes the bug where two categories with just the case as difference were
considered as distinct, but generate the same file: one overwriting the other.
Thanks to @Avaris for helping with the tests.
2013-05-03 17:37:45 +01:00
Justin Mayer
34f05d4ba6
Add warning to docs re: DELETE_OUTPUT_DIRECTORY
2013-05-02 17:18:19 -07:00
Justin Mayer
7706530aa8
Merge pull request #867 from avaris/summary-max-length
...
Fixes #708 SUMMARY_MAX_LENGTH=0 should return empty string
2013-05-01 16:54:49 -07:00
Deniz Turgut
9af62414db
Fixes #708 SUMMARY_MAX_LENGTH=0 should return empty string
2013-04-26 19:37:31 -04:00
Justin Mayer
0397274fed
Prepare for next version
2013-04-24 13:21:28 -07:00
Justin Mayer
ba84658503
Add 3.2 release date to changelog
3.2
2013-04-24 09:39:36 -07:00
Justin Mayer
4fa2c30d3f
Add new changelog items and link to Tutorials wiki
2013-04-23 11:17:45 -07:00
Justin Mayer
63ddcf22d9
Add new contributors to THANKS
2013-04-23 08:09:50 -07:00
Justin Mayer
6db2ad2130
Remove "Done" after running "make html"
...
Pelican now provides better user feedback (see #857 ), so echoing "Done"
after a "make html" run has become redundant.
2013-04-23 07:32:42 -07:00
Justin Mayer
f15f5708bf
Update test output for improved notmyidea <head>
2013-04-23 06:57:36 -07:00
Simon Conseil
4d2355bc57
Clean up and improve <head> of notmyidea theme
...
- remove useless IE stuff (links to files that do not exist)
- use DEFAULT_LANG for the lang attribute
- move charset at the top
2013-04-23 06:51:22 -07:00
Simon Conseil
5ffadd2283
Add DOCUTILS_SETTINGS to allow to customize the docutils Publisher.
2013-04-23 12:28:30 +02:00
Justin Mayer
30c2490f88
Merge pull request #862 from avaris/emacs-autoreload
...
ignore emacs lock files and exception handling for watchers
2013-04-22 20:04:24 -07:00
Justin Mayer
be511c9ac2
Merge pull request #860 from avaris/strftime-jinja-filter
...
Fix for #701 : adds a 'strftime' jinja fiter that uses LOCALE
2013-04-22 20:01:27 -07:00
Deniz Turgut
be8837963a
ignore emacs lock files and exception handling for watchers
2013-04-22 20:50:11 -04:00
Deniz Turgut
09a332aff3
reset locale after DateFormatter test
2013-04-22 20:07:53 -04:00