Justin Mayer
dcadf33988
Merge pull request #1183 from Rogdham/pelican-fixcopy
...
Fix `utils.copy` for copying files
2014-02-05 08:19:34 -08:00
Alistair Magee
ea3e160db1
Extra functionality for pelican-import for wordpress imports
2014-02-03 17:36:41 +00:00
Alistair Magee
dc552bb869
fix test-suite import error
2014-01-10 16:33:02 +00:00
Kyle Fuller
da690dfc37
Python-Markdown quote's URL's, we need to unquote to use on filesystem
...
Fixes #1143
Closes #1095
Closes #1149
2013-12-09 18:13:43 +00:00
Rogdham
fd7fc2e202
Simplify usage of utils.copy
...
Remove confusing parameters, clarify usage in __doc__
2013-12-07 21:11:15 +01:00
Rogdham
7da0506f2d
Fix utils.copy for copying files, add unit tests
...
`copy('', 'a/b.ext0', 'c/d.ext1')` is copying `a/b.ext0` into `c/d.ext1/b.ext0`
(creating folder `c/d.ext1` in the process) instead of `c/d.ext1`.
Bug introduced by e03cf3f517 .
2013-12-07 20:58:19 +01:00
Florian Jacob
bd9d1b9539
The modified attribute no longer has a default value.
...
This allows for templates using {% if article.modified %}
instead of {% if article.modified != article.published %} .
2013-11-17 23:40:11 +01:00
Florian Jacob
4b2fcb09a4
Added a new ''modified:' metadata tag to be able to specify the
...
publication time and date and the last modified time and date
independently.
This makes it possible to access the last updated date with {{ article.locale_modified }} in templates.
Additionally, an already delivered feed entry can be corrected by changing the modified date and time, as it is used for atom:update
/ rss pubDate field now.
2013-11-10 00:14:55 +01:00
Mark Lee
35375b19ff
Log a warning when the HTML reader encounters a nonconformant meta tag
...
Instead of throwing an exception and skipping the HTML file, log a
warning with a message which makes it more obvious as to what happened.
2013-11-08 14:37:07 -08:00
Justin Mayer
5e5510cfcf
Improve Disqus embed code in notmyidea theme
...
According to Disqus, the disqus_shortname variable is a required field.
Also added a <noscript> notice for those who have JS disabled.
2013-10-27 09:27:30 -07:00
Jon Chen
9331e42ee1
use // instead of explicitly defining http
...
for twitter as well
update sample output
2013-10-24 17:06:23 -04:00
zhouji
e538aa2cde
Fine-tune url-value HTML attributes list.
2013-10-17 11:33:34 +08:00
Kyle Fuller
f83d0d3b0c
Handle east asian character column width in the importer
...
Fixes #682
Closes #923
2013-10-08 09:46:40 +01:00
Tshepang Lekhonkhobe
67d3ab8883
assertEquals is deprecated in favor of assertEqual
2013-10-06 16:15:43 +02:00
Tshepang Lekhonkhobe
9657071301
Python 3.3 got mock
2013-10-06 15:30:14 +02:00
Simon Conseil
a49b744e95
Fix tests with latest versions of smartypants.
...
smartypants is now py3 compatible but the default settings for double quotes has
been changed (http://pythonhosted.org/smartypants/changes.html ).
This commit:
- update the typogrify test (change quotes, and add more test casesi: caps word,
ellipsis)
- install typogrify on travis
- uses upstream version of smartypants in tox instead of dmdm's fork for py3
2013-09-26 22:47:55 +02:00
Honza Javorek
6ed23fec7d
Tuned the tests so they are PY3 compilant.
2013-09-25 16:31:23 +02:00
Honza Javorek
7415d370e6
Added tests.
2013-09-25 16:13:28 +02:00
Alexis Metaireau
74069e771f
Merge pull request #1084 from karmadharma/pygmentdocsanddefault
...
Support Pygments customization in settings (reST only)
2013-09-16 02:32:17 -07:00
SDGSDG
3580233b38
Support for pygment defaults and relevant documentation
2013-09-15 23:13:17 -07:00
bmcorser
e03cf3f517
Fix utils.copy behaviour
...
Previously, the copy util failed if only a directory containing only
files was specified in THEME_STATIC_PATHS
2013-09-14 16:18:53 +01:00
Alexis Metaireau
9935286e19
Merge pull request #1056 from bmcorser/fix-utils-copy
...
Fix for THEME_STATIC_PATHS by copying sensitively
2013-09-09 15:01:13 -07:00
Alexis Métaireau
6813cd923f
Close some HTML tags. Fix #1076
2013-09-08 17:07:30 +02:00
bmcorser
089059aec6
Clarify revised functinality
2013-08-31 22:11:03 +01:00
bmcorser
0f4058a317
Add regressison test for recursively copying files
2013-08-24 13:42:55 +01:00
Alexis Métaireau
e2ca6d7608
Add categories and tags to the replacement mechanism.
2013-08-17 17:36:13 +02:00
Alexis Métaireau
aae56fee39
exception.message was removed in py 3.X
2013-08-17 01:12:39 +02:00
Alexis Métaireau
73b37989f7
update the readers tests
2013-08-17 01:02:07 +02:00
Alexis Metaireau
2be674c909
Merge pull request #903 from dominiqueplante/readers.read_file-throwsexception
...
Add unit test for the case for handing unhandled extension
2013-08-16 15:34:49 -07:00
Justin Mayer
5a469dc2e3
Merge pull request #1011 from saimn/readers
...
Refactor readers and remove MARKUP. Fixes #866
2013-08-07 12:34:22 -07:00
Justin Mayer
0df12e31e2
Merge pull request #974 from dbrgn/tags_authors_setting_fix
...
Tags/Authors Setting Fix
2013-08-06 16:18:37 -07:00
Simon Conseil
cfe72c2736
Disable asciidoc files for tests
2013-08-06 23:42:41 +02:00
Simon Conseil
4bc4b1500c
Refactor readers and remove MARKUP
...
Add a `Readers` class which contains a dict of file extensions / `Reader`
instances. This dict can be overwritten with a `READERS` settings, for instance
to avoid processing *.html files:
READERS = {'html': None}
Or to add a custom reader for the `foo` extension:
READERS = {'foo': FooReader}
This dict is no storing the Reader classes as it was done before with
`EXTENSIONS`. It stores the instances of the Reader classes to avoid instancing
for each file reading.
2013-08-06 23:42:41 +02:00
SDGSDG
ece437f8fd
Added more pygments options for code blocks
2013-08-05 22:50:49 -07:00
Danilo Bargen
42f9726ffa
Support TAGS_* and AUTHORS_* by default.
2013-08-05 19:16:00 +02:00
Russ Webber
5a8f5cefdd
fix py3 support for sourcecode directive
...
added sourcecode to the functional test so it's tested *somewhere*.
fixes #963
2013-08-05 23:45:48 +08:00
Alexis Metaireau
ea6d0cf5b5
Merge pull request #1007 from saimn/refactor-tests
...
Refactor test_generators and pelican_open
2013-08-05 08:02:45 -07:00
Simon Conseil
4ffa34544e
More refactoring for test_generators
...
- list comprehensions for distill_articles/pages
- distill articles only once
- pep8
2013-08-04 14:47:03 +02:00
Simon Conseil
577a3d116e
Replace get_populated_generator with setUpClass
2013-08-04 14:47:03 +02:00
Rogdham
0999d4d691
Deliberate overriding of an existing file to tests
...
Deliberate overriding via `save_as` metadata should be allowed, even after the
overwrite detection feature. This commit is to add tests for deliberate
overriding. As a result, the relevant tests *should fail* after this commit.
Added a page and an article, both to override a tag, with very old dates so
it limits the amount of diff in the generated pages.
Overriding feature introduced by d0e9c52410
Overwrite detection introduced by ff7410ce2a
2013-08-04 12:07:40 +01:00
Justin Mayer
72ea20f06a
Merge pull request #871 from dknecht/master
...
Sort author and category pages using same sort as tags
2013-08-03 22:51:30 -07:00
Justin Mayer
122ec39a27
Merge pull request #932 from qdot/master
...
Change meta tag "contents" attribute to "content" to conform to HTML spec
2013-08-03 22:40:18 -07:00
Dane Knecht
10dc5ef0b7
sort author and category pages same way as tags
2013-08-03 19:17:14 -07:00
Justin Mayer
2aa0c6e24b
Merge pull request #968 from russkel/encodingfix
...
Fix setting default locale and exception encoding
2013-08-03 16:42:37 -07:00
Justin Mayer
76fa457654
Normalize whitespace via lstrip Jinja parameter
...
This adds the lstrip_blocks Jinja parameter and removes unnecessary
whitespace from a few notmyidea templates.
Note: The lstrip_blocks parameter requires Jinja 2.7+, which has been
noted in Pelican's setup.py.
Credit for this commit goes entirely to Russ Webber, who has earned my
eternal thanks for discovering and applying this useful Jinja parameter.
Refs #969
2013-08-03 16:17:26 -07:00
Justin Mayer
1443131fde
Merge pull request #976 from kylewm/notmyidea-active-pages
...
Modify notmyidea to include class="active" on pages
2013-08-03 15:12:52 -07:00
Justin Mayer
bea03bb4bb
Merge pull request #979 from nyergler/pagination_conf
...
Support flexible pagination configuration
2013-08-03 14:58:47 -07:00
Ross McFarland
c5eecd23eb
PAGINATION_URL/PAGINATION_SAVE_AS implementation
...
allows the use of custom urls for pagination similar to *_URLS
2013-07-29 08:09:44 -04:00
Kyle Mahan
0ddabb95c3
Modify notmyidea to include class="active" on pages
2013-07-27 12:30:24 -07:00
Russ Webber
b527fd594d
added testing for default locale setting
...
removed LOCALE="" from default conf as it looks weird and you
shouldn't need to set a blank LOCALE for the system to work.
2013-07-21 14:12:21 +08:00