1
0
Fork 0
forked from github/pelican
Commit graph

2,744 commits

Author SHA1 Message Date
Deniz Turgut
976a9efcc2 Fixes 2059: Fix sphinx version to 1.4.9 for docs tests 2016-12-10 12:42:35 -05:00
Justin Mayer
550ffe4599 Remove spurious whitespace in documentation source 2016-12-03 14:53:26 -08:00
Michael Lissner
4aa60a0905 Add more docs for --write-selected option
Refs #1495
2016-12-03 14:23:45 -08: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
Justin Mayer
9fc5890886 Merge pull request #1999 from rjames86/jinja_environment
Allow setting Jinja environment arguments from settings
2016-12-03 12:41:50 -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
Justin Mayer
7039668669 Merge pull request #2053 from kevin-brotcke/master
Fix missing word typo in settings.rst
2016-12-01 09:45:43 -08:00
Justin Mayer
44704c8396 Merge pull request #2052 from Rogdham/fix-translation_metadata
Fix translation metadata support
2016-12-01 09:44:26 -08:00
Kevin Brotcke
76709c672a Fix missing word typo in settings.rst
Also convert to a note directive.
2016-11-23 14:55:11 -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
Justin Mayer
c413bcdb94 Merge pull request #2038 from omiday/gh2037
Convert documentation tables to 'data::' records. Fixes #2037
2016-11-18 09:30:15 -07:00
Justin Mayer
ca10933082 Merge pull request #1354 from storeyio/1325
Add test_find_empty_alt. Fixes #1325
2016-11-18 09:22:56 -07:00
John
6f9f0def0f Fix #1325 and add test_find_empty_alt 2016-11-17 23:29:19 +00:00
Viorel Tabara
f30f4fe66b Fix #2037. Major overhaul of settings page.
Convert all tables to 'data::' directives.

Replace inline literals with code blocks for better readability.

Per suggestion from Avaris on IRC:
- Section rename: "Path metadata" to "Metadata" and move over AUTHOR and
  all *_METADATA options.
- Merge "Date format and locale" and "Timezone" into a new section "Time
  and Date" and move over TIMEZONE, DEFAULT_DATE, DATE_FORMATS,
  DEFAULT_DATE_FORMAT.
- Move RELATIVE_URL under 'URL settings'. Here, convert URL settings
  example from a 4-bullet inline literal to a single code block for
  better readability in both source and output.
- Move *_TEMPLATE options under "Templates".

Cosmetic and wording updates to accommodate the above changes and
provide a consistent layout.
2016-11-17 13:38:22 -07:00
Justin Mayer
6008f7e2ed Merge pull request #2050 from Scheirle/markdown_options2
Make Markdown extensions order non-arbitrary
2016-11-15 10:45:42 -07:00
Bernhard Scheirle
a445e81ae6 Make markdown extensions order non-arbitrary 2016-11-15 17:05:12 +01:00
Justin Mayer
4fc2c6c633 Merge pull request #2035 from omiday/pep8
Fix PEP8 violations. Fixes #2032
2016-11-14 11:33:07 -07:00
Justin Mayer
a07c0e6e04 Merge pull request #1927 from Scheirle/markdown_options
Replaces MD_EXTENSIONS with MARKDOWN; Fixes #1024
2016-11-02 16:57:25 -06: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
114e64dcf7 doc: updates MARKDOWN 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
Justin Mayer
ecc5d0b953 Add link to sample contect in docs. Refs #1741 2016-10-22 15:00:52 -06:00
Viorel Tabara
aa2c84a59c Fixes #2032
When following the steps in the Github contributor wiki flake8 reports
PEP8 violation against setup.py and docs/conf.py.
2016-10-22 14:39:31 -06:00
Kevin Yap
6cadbdf354 Fix extension-matching bug in generators.py
Addresses #1946.
2016-10-12 23:33:29 -07:00
Justin Mayer
b2231c40f7 Merge pull request #2016 from jerryasher/copy_file_metadata
Python's shutil.copy2 fails on Android
2016-10-07 12:28:10 -06: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
0942fcb9ec Use flake8-import-order packaged release
Packaged releases weren't available previously, which required us to
install the master branch version. Now that releases are being published
to PyPI, we should use those.
2016-10-07 09:03:18 -06: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
83afc5e214 Merge pull request #1961 from MrSenko/pin_pygments
Pin Pygments version to 2.1.3. Fixes #1916
2016-09-27 10:05:46 -06: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
Justin Mayer
98398e0420 Merge pull request #1594 from Totktonada/feature/log-filter-by-templates
LOG_FILTER cannot be used with '%s'ed messages
2016-09-23 14:06:28 -06:00
Alexander Turenko
30b8955134 Don't suppress LOG_FILTER messages when --debug passed 2016-09-23 02:13:23 +03:00
Alexander Turenko
1b1d1fd9f7 Allow to filter out log messages by templates
Fixes #1594.
2016-09-23 02:13:23 +03:00
Justin Mayer
5cc4c9f4ab Merge pull request #1880 from allanman/patch-1
Ensure DEFAULT_DATE = 'fs' actually uses modified time
2016-09-22 16:12:46 -06:00