W. Trevor King
06121eda76
test_readers: Update to new readers.read_file
2013-06-12 15:02:31 -04:00
W. Trevor King
7de7bd0e37
Update sample configurations from FILES_TO_COPY to EXTRA_PATH_METADATA
2013-06-12 15:02:31 -04:00
W. Trevor King
d43dc1b9d6
Add the EXTRA_PATH_METADATA setting
...
Useful for altering static output paths when you don't want to encode
extra metadata in the static file's source path.
2013-06-12 15:02:31 -04:00
W. Trevor King
1ca0e06a27
Remove the FILES_TO_COPY setting
...
We no longer instantiate the Static object in the StaticGenerator, so
we can't set the save_as argument anymore. If you want to adjust the
output path, use the upcoming EXTRA_PATH_METADATA setting.
2013-06-12 15:02:31 -04:00
W. Trevor King
1bc5b100ec
generators: Convert StaticGenerator to use the new read_file
2013-06-12 15:02:31 -04:00
W. Trevor King
7be16dd524
generators: Update PagesGenerator to use new read_file
...
Also standardize signal names. If `article_generator_*` is singular,
`page_generator_*` should be as well. Fix it from the older
`pages_generator_*`.
2013-06-12 15:02:31 -04:00
W. Trevor King
a9c530281e
Move Article metadata extraction from generators to readers
...
There's no reason why this information should be Article-specific.
This commit breaks the other generators for the moment. I'll fix them
shortly.
2013-06-12 15:02:30 -04:00
W. Trevor King
f2d6f77462
signals: Fix *_generate_* signals -> *_generator_*
...
For example, article_generate_preread is now article_generator_preread
for consistency with the other preread and context signals.
2013-06-12 15:02:30 -04:00
W. Trevor King
386cd1f3f0
signals: Add missing signals
...
Note that the `pages_*` names are plural , while the `article_*` names
are singular. I'll fix this once I update the PagesGenerator.
2013-06-12 15:02:30 -04:00
W. Trevor King
effe7e5e12
signals: Sort signals into categories
2013-06-12 15:02:30 -04:00
W. Trevor King
e38e170656
readers: Log signal sending for read_file()
2013-06-12 15:02:30 -04:00
W. Trevor King
4e118eff01
readers: Add debugging logging to read_file
2013-06-12 15:02:30 -04:00
W. Trevor King
ecf5682930
readers: Instrument read_file to return Content objects
...
The assorted generators all use read_file() to read in the file
contents and metadata. Previously, they sometimes parse additional
metadata, fire off signals, and initialize a pelican.contents.Content
subclass on their own. We can reduce duplicated code and increase
consistency by shifting all that stuff into read_file() itself, and
this commit is a step in that direction.
2013-06-12 15:02:29 -04:00
Justin Mayer
ed82f62a5a
Merge pull request #930 from wking/specific-assertions
...
tests: Avoid hidden logic with better .assert*() method choices
2013-06-12 12:01:41 -07:00
W. Trevor King
5a61600bc9
tests: Avoid hidden logic with better .assert*() method choices
...
We'll get better failure messages if we use an assertion method that
understands the comparison we're trying to make. If you make the
comparison by hand and assertTrue(), you don't get much constructive
feedback ;).
2013-06-12 14:52:23 -04:00
Justin Mayer
1fcf4a6550
Add documentation for ARCHIVES_SAVE_AS setting
...
While this setting has existed for some time, there does not seem to
have been any documentation for it until now.
2013-06-10 19:42:53 -07:00
Justin Mayer
e5f1755172
Merge pull request #924 from rptb1/add-missing-lxml-to-tox
...
Added lxml to the list of dependencies for the tox tests.
2013-06-09 09:37:39 -07:00
Richard Brooksby
edcc027d89
Added lxml to the list of dependencies for the tox tests.
...
My system python installs are completely clean except for virtualenv, so tox needs a complete set of non-default modules.
2013-06-08 23:40:16 +01:00
Alexis Métaireau
cc15629966
Don't include all the .py files in the root folder
2013-06-07 00:50:51 +02:00
Justin Mayer
15606f8dea
Merge pull request #905 from Rogdham/pelican-quickstart_encoding
...
Encoding issue in pelican-quickstart. Fixes #904
2013-06-03 18:12:55 -07:00
Alexis Metaireau
e91b53be87
Merge pull request #922 from alefteris/docs-install-deps
...
Docs: Add six, markupsafe to install dependencies
2013-06-03 09:58:41 -07:00
Thanos Lefteris
ba3e14dd1d
Docs: Add six, markupsafe to install dependencies
2013-06-03 18:23:07 +03:00
Justin Mayer
07b8c13db3
Merge pull request #921 from wking/default-settings
...
Standardize `DEFAULT_CONFIG` handling
2013-06-02 18:47:33 -07:00
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
Rogdham
0ecae1f50d
Encoding issue in pelican-quickstart. Fixes #904
2013-05-26 11:38:55 +01: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