1
0
Fork 0
forked from github/pelican
Commit graph

2,729 commits

Author SHA1 Message Date
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
Justin Mayer
9d4c140c49 Merge pull request #1947 from magul/tuple-fix
Fix issue with one-element tuple
2016-09-22 16:10:12 -06:00
Justin Mayer
ed9e15e3c0 Merge pull request #1881 from kdeldycke/upgrade-ga-tracking-code
Upgrade legacy GA tracking code
2016-09-21 10:20:22 -06:00
Kevin Deldycke
e8a964fd57
Upgrade legacy GA tracking code. 2016-09-21 18:05:04 +02:00
Li Jiapeng
0f6b98506e Revert to the old category processing order
If no category is specified in PATH_METADATA or FILENAME_METADATA,
fall back to USE_FOLDER_AS_CATEGORY, which defaults to True.
2016-09-19 18:29:58 +08:00
Li Jiapeng
9185e0b7a8 Avoid circumvention of metadata name checking
See https://github.com/getpelican/pelican/issues/2011
2016-09-19 18:28:43 +08:00
Justin Mayer
f0c05686e5 Merge pull request #2005 from avaris/1966
Fixes #1966: Track default settings file for changes in autoreload mode
2016-09-17 09:25:07 -06:00
Justin Mayer
994758aa07 Merge pull request #2007 from avaris/update_contributing_guidelines
Add warnings override for unittest in the docs
2016-09-16 20:25:47 -06:00
Justin Mayer
d5fbd3be93 Merge pull request #1991 from wjt/empty-md-file
Handle empty Markdown files more gracefully.
2016-09-16 20:22:43 -06:00
Deniz Turgut
77d8160dab Add warnings override for unittest in the docs
Unittest supresses warning filters unless `-Wd` flag is supplied and
this will result in test failures in python 3.5+.
2016-09-16 15:22:46 -04:00
Deniz Turgut
9d1a1d428b Fixes #1966: Track default settings file for changes in autoreload mode 2016-09-16 10:56:20 -04:00
Justin Mayer
09fb6a1393 Merge pull request #1958 from MrSenko/pip_requirements
Separate pip requirements. Fixes #1808
2016-09-16 08:15:06 -06:00
Justin Mayer
6aa05ace19 Update functional test output for FeedGenerator 1.9
Refs https://github.com/getpelican/feedgenerator/pull/7
2016-09-15 11:58:43 -06:00
Justin Mayer
5cdd2645fd Pelican now requires FeedGenerator 1.9+ 2016-09-15 11:57:30 -06:00
Justin Mayer
ac08cd5eb1 Docs: Custom 404 pages are pages -- not articles 2016-09-15 06:55:25 -06:00
Justin Mayer
d6ac93a470 Merge pull request #1967 from NathanHarrington/config_reload
Add default settings file name to argparse. Fixes #1966
2016-09-11 09:14:46 -06:00