derwinlu
89b28fd36b
Fix warnings originating from bad regexes
...
Starting with python 3.6 warnings are issued for invalid escape
sequences in regular expressions. This commit corrects all
DeprecationWarning's via properly declaring the offending
regular expressions as raw strings.
Resolves #2095 .
2017-03-27 16:09:08 +02:00
Justin Mayer
fb07f4d513
Merge pull request #2117 from timwienk/fix-none-filename-metadata
...
Optional items in FILENAME_METADATA expression.
2017-03-20 15:40:35 -07:00
Justin Mayer
30df8e3558
Merge pull request #2085 from Scheirle/feed_signal
...
Add new signal: feed_generated
2017-03-19 15:04:07 -04:00
Tim Wienk
4917b8618a
Fix setting None metadata from FILENAME_METADATA matches.
...
This is relevant when using optional items in the expression. E.g. if an
optional captured group is not matched, the result of
`match.groupdict()` contains the captured group with value `None`.
2017-03-15 17:07:31 +01:00
fxfitz
b65a790b50
Switch over to use awscli
2017-03-13 17:59:43 -05:00
Justin Mayer
ee643d47d7
Merge pull request #2099 from horazont/feature/stop-save_as-from-breaking-out-of-output
...
Try to prevent writing outside of the output directory
2017-02-28 11:17:44 -08:00
Jonas Wielicki
018f4468cc
Check safety of save_as earlier if possible
...
The check in the writer still serves as a safety net.
2017-02-27 21:49:17 +01:00
Jonas Wielicki
4006554a49
Prevent to write outside the output directory
...
This is crude and simply raises RuntimeError. We would generally
want to have earlier checks which log a warning and do not call
write at all.
2017-02-02 20:40:51 +01:00
derwinlu
22208a9471
Add test checking url replcmnt of unkn. file
...
There was no test case checking the behaviour of what happens when
trying to {filename} an unknown file.
Also changed the braces to `'` chars that we use elseware.
2017-01-24 09:12:16 +01:00
derwinlu
5a19887a22
Correct new flake8 warnings
2017-01-24 09:12:16 +01:00
Bernhard Scheirle
927d9c7ea5
Add new signal: feed_generated
...
This signal gets emitted before a feed gets written to disk.
Therefore it allows plugins to do arbitrary changes to the feed.
2017-01-16 11:33:13 +01:00
Justin Mayer
25732f7be6
Prepare version 3.7.2.dev0 for next development cycle
2017-01-10 13:51:37 -08:00
Justin Mayer
ce38e318bd
Bump version 3.7.1
2017-01-10 13:34:09 -08:00
Lucas Chavez
84920e8fdf
Set locale to LC_ALL in Quickstart script. Fixes #2043
2016-12-27 16:25:17 -07:00
Justin Mayer
82ada44aa8
Merge pull request #2065 from amyspark/master
...
Initialize locale for Python 2+ in quickstart script. Fixes #2043
2016-12-16 14:44:01 -08:00
L. E. Segovia
5c6ae32f99
For python 2+, initialize locale. Fixes #2043
2016-12-16 23:10:53 +01:00
Justin Mayer
0936d5f6ee
Prepare version 3.7.1.dev0 for next development cycle
2016-12-14 13:56:47 -08:00
Justin Mayer
d13d57eaa6
Bump version 3.7.0
2016-12-12 14:05:20 -08:00
Justin Mayer
3518713ac6
Merge pull request #2022 from rjames86/query_strings
...
Prevent server from dying when query strings present
2016-12-12 10:18:04 -08:00
Ryan M
90025818ed
prevent server from dying when query strings present
...
split on first ?
2016-12-10 10:05:50 -08:00
Deniz Turgut
1c09741280
Add tests to make sure cached content is properly added to generators
2016-12-10 05:18:35 -05:00
Deniz Turgut
fc52234986
Fix generator caching
...
With generator level caching, cached files weren't added to the
collections. Only new files were processed. This fixes the issue.
2016-12-10 02:05:35 -05:00
Justin Mayer
f17f3068e3
Merge pull request #2051 from Totktonada/feature/rss_full_content_opt
...
Add option to include full content into RSS feeds
2016-12-03 12:48:58 -08:00
Ryan M
335c40d23e
Allow setting Jinja environment arguments from settings
...
fix flake8 warnings
Set jinja environment defaults within settings
updating docs to remove JINJA_EXTENSIONS
update logger warning and defaults documentation
better way to grab jinja environment
updating settings after refactor
2016-12-03 10:27:27 -08:00
Rogdham
6cc053b920
Improve logging in translation detection
2016-11-21 23:21:34 +01:00
Rogdham
4645def789
Fix translation metadata support
2016-11-20 20:01:56 +01:00
Alexander Turenko
d3b22c6e21
Add option to include full content into RSS feeds
...
Include only summary by default.
This follow ups pull [1], where RSS feeds become summary-only.
[1]: https://github.com/getpelican/pelican/pull/1989
2016-11-20 00:06:27 +03:00
John
6f9f0def0f
Fix #1325 and add test_find_empty_alt
2016-11-17 23:29:19 +00:00
Bernhard Scheirle
a445e81ae6
Make markdown extensions order non-arbitrary
2016-11-15 17:05:12 +01:00
Bernhard Scheirle
27d67f04cb
Update unittest to match the new Markdown output format
2016-11-02 21:19:41 +01:00
Bernhard Scheirle
a80a707321
Set the Markdown output format to html5 by default
2016-11-02 21:11:42 +01:00
Bernhard Scheirle
9e399e7a05
Updates test cases to use MARKDOWN
2016-11-02 21:11:42 +01:00
Bernhard Scheirle
35dba138e0
Replaces MD_EXTENSIONS with MARKDOWN
...
MARKDOWN allows to configure the python markdown module
fixes #1024
2016-11-02 21:11:42 +01:00
Justin Mayer
594b9c9633
Merge pull request #2040 from avaris/exception_logging_fixes
...
Fixes Exception name related bugs
2016-10-29 12:57:46 -06:00
Justin Mayer
bdb0265378
Merge pull request #2023 from iKevinY/fix-1946
...
Fix extension-matching bug in generators.py
2016-10-29 12:54:18 -06:00
Deniz Turgut
a8be1b562e
Fixes Exception name related bugs
...
Fixes two bugs that was introduced by #1743 :
- First was the unnecessary exception name output when skipping
content files if a required metadata wasn't available.
It was
`ERROR: Skipping ./demo.rst: could not find information about 'NameError: date'`
and now should be
`ERROR: Skipping ./demo.rst: could not find information about 'date'`
- Second was a more serious issue. Improper string formatting in the logger
resulted in implicit decoding and would break for non-ascii error messages.
2016-10-29 14:10:54 -04:00
Justin Mayer
c361246eaa
Merge pull request #1972 from nstinus/localize_quickstart
...
Localize default lang and timezone in pelican-quickstart
2016-10-29 10:45:57 -06:00
Eevee (Lexy Munroe)
eac8fa2abd
Use the summary as the feed's description, and put content in content
...
This adheres more closely to the specs, especially Atom, where the
'description' arg becomes <summary>.
Note that this means full article content will no longer appear in RSS
feeds.
2016-10-22 16:36:09 -06:00
Justin Mayer
de0b6dc6aa
Merge pull request #1978 from bnice5000/patch-1
...
Respect OUTPUT_RETENTION for Fabric "rebuild" task
2016-10-22 15:45:29 -06:00
Justin Mayer
270817c022
Clarify error message when LOCALE cannot be set
...
Fixes #1906
2016-10-22 15:35:01 -06:00
Kevin Yap
6cadbdf354
Fix extension-matching bug in generators.py
...
Addresses #1946 .
2016-10-12 23:33:29 -07:00
Jerry Asher
f8031203d2
Python's shutil.copy2 fails on Android
...
Python's shutil.copy2 fails on Android when copying a file's meta data (perm bits, access times) onto certain filesystems. This is documented as python issue28141 https://bugs.python.org/issue28141
These commits workaround that bug by
+ creating a new function copy_file_metadata in utils.py
+ wrapping calls to copy2 in a try/except clause that logs any errors that occur but keep execution going
+ changing the calls to shutil.copy2 to calls to the new function
2016-10-07 11:10:09 -07:00
Justin Mayer
22861aa1c1
Merge pull request #2015 from jpli/improve_path_metadata_processing
...
Improve path metadata processing
2016-10-06 11:30:27 -06:00
Justin Mayer
5a332ed726
Merge pull request #1306 from Scheirle/master
...
Simplify feed ID generation and support URL fragments
2016-10-04 10:49:02 -06:00
Nicolas Stinus
c1a5279da9
Localize default lang and timezone in pelican-quickstart
...
Fixes #1971 .
2016-10-02 13:22:26 -04:00
Justin Mayer
937f366b80
Merge pull request #2004 from Scheirle/unittest_py2
...
Fixes unit test test_period_in_timeperiod_archive (TestArticlesGenerator)
2016-09-27 09:40:36 -06:00
Bernhard Scheirle
eb435dc065
Update feed test output to match the new feed id
2016-09-25 10:59:44 +02:00
Bernhard Scheirle
1eee6f0211
Simplified feed id generation and added support for url fragments
2016-09-25 10:54:20 +02:00
Bernhard Scheirle
577b748f5f
Fixes unit test test_period_in_timeperiod_archive (TestArticlesGenerator)
...
On systems with a none english default locale this test failed because the
period is a tuple of year and month name and the month name depends on the
locale.
2016-09-25 10:31:56 +02:00
Alexander Turenko
30b8955134
Don't suppress LOG_FILTER messages when --debug passed
2016-09-23 02:13:23 +03:00