1
0
Fork 0
forked from github/pelican
Commit graph

3,042 commits

Author SHA1 Message Date
Bryan Brattlof
59cca7adb5
Remove unnecessary whitespace stripping 2018-11-28 10:31:21 -06:00
Justin Mayer
3596e04639
Merge pull request #2452 from stuaxo/patch-6
Importer: Avoid downloading duplicate post attachments
2018-11-26 08:12:54 -08:00
Justin Mayer
2bef2e83cf
Merge pull request #2479 from avaris/2475
Use language_code if it is supported
2018-11-26 07:52:04 -08:00
Justin Mayer
c4eda992d5
Merge pull request #2477 from oulenz/tag_attribute
Remove non-existent tag attribute handling from Content.url_format
2018-11-25 23:34:41 -07:00
Justin Mayer
64d1a78373
Merge pull request #2478 from avaris/2474
Use pelican.server class in Invoke template
2018-11-25 23:29:45 -07:00
Deniz Turgut
2afef16008 Use language_code if it is supported 2018-11-26 03:45:20 +03:00
Deniz Turgut
a3b256db1e Use pelican.server class in invoke template 2018-11-25 21:43:40 +03:00
Oliver Urs Lenz
6923a7bca0 Remove non-existent tag attribute handling from Content.url_format 2018-11-25 13:27:18 +01:00
Justin Mayer
45c884cba5
Merge pull request #2447 from stuaxo/patch-4
pelican_import: Fix post titles that are entirely made of spaces
2018-11-20 15:56:23 -06:00
Justin Mayer
a0c0816191
Merge pull request #2455 from oulenz/static_content
Disinherit Page from Static so default draft status does not affect save_as
2018-11-20 15:34:27 -06:00
Stuart Axon
4d1869002e Update pelican_import.py
Use a set to avoid downloading duplicate attachments on a post more than once.
2018-11-17 15:02:31 +00:00
Oliver Urs Lenz
70b8ededa6 Disinherit Page from Static so default draft status does not affect save_as 2018-11-16 18:09:22 +01:00
Stuart Axon
033d6ac4d6 pelican_import wordpress import
get_filename:
   use "post_name", where the parameter is the postname.
   fixup names that are entirely made up of spaces.
2018-11-15 14:02:10 +00:00
Justin Mayer
940d4534a1 Prepare to release Pelican 4.0 4.0.0 2018-11-13 14:55:25 +01:00
Justin Mayer
36293da1e0 Add more changelog entries 2018-11-13 08:40:56 +01:00
Justin Mayer
a00bd6ec8b
Merge pull request #2374 from jorgesumle/hreflang
Add hreflang attribute to default themes
2018-11-12 08:15:08 +01:00
Justin Mayer
71650b408c
Merge pull request #2437 from ajorg/gentle-s-deprecation
Replace %s rather than fall back to defaults
2018-11-12 00:17:52 +01:00
Andrew Jorgensen
b1d44c1c87 Replace %s rather than fallback to defaults
3a0add4b6e caused existing configs to fall
back to defaults. But since we know exactly how to fix the user config
so that the behavior doesn't change, we should do so, while still
warning that use of %s is deprecated.

Also fixes a bug where we tried to look for %s in None.
2018-11-11 14:54:14 -08:00
Justin Mayer
9768c6ead3
Merge pull request #2440 from avaris/urlwrapper-slug
Make URLWrapper.slug settable again
2018-11-11 23:10:42 +01:00
Deniz Turgut
bc84075ded Make URLWrapper.slug settable again
Fixes #2242, Supersedes #2243
2018-11-11 21:35:51 +03:00
Justin Mayer
db586a4c59
Merge pull request #2406 from mosra/metadata-intrasite-links-process-only-once
Don't process metadata links before all files are present
2018-11-11 18:18:54 +01:00
Justin Mayer
7f7448ef76
Merge pull request #2439 from mosra/settings-paginated-templates-deprecation-fix
Fix PAGINATED_DIRECT_TEMPLATES backward compatibility handling to not crash
2018-11-11 17:40:09 +01:00
Deniz Turgut
74a2481bf3 settings: set backward-compatible PAGINATED_TEMPLATES if not present. 2018-11-11 13:59:48 +01:00
Vladimír Vondruš
4c3b6ac383 settings: add another consistency test for SLUG_SUBSTITUTIONS. 2018-11-11 13:58:55 +01:00
Vladimír Vondruš
d01614495f settings: test reading PAGINATED_DIRECT_TEMPLATES from pelicanconf.py.
At the moment aborts with the following:

      File "/usr/lib/python3.7/site-packages/pelican/settings.py", line 327, in handle_deprecated_settings
        if t not in settings['PAGINATED_TEMPLATES']:
    KeyError: 'PAGINATED_TEMPLATES'
2018-11-11 13:58:55 +01:00
Oliver Urs Lenz
dc7579582a Add more changes to changelog 2018-11-11 13:29:26 +01:00
Justin Mayer
c2e19df4c1
Merge pull request #2434 from oulenz/importer_doc
Importer docs: Warn about multiple categories in Wordpress
2018-11-11 13:04:38 +01:00
Justin Mayer
af9859d7cc Merge branch '{slug}-indent' 2018-11-11 12:55:40 +01:00
Justin Mayer
4d0de58409 Fix PyCodeStyle violations 2018-11-11 12:54:42 +01:00
Justin Mayer
686206161b Fix example sites in metadata tags list test 2018-11-11 12:00:59 +01:00
Justin Mayer
d974ba898c
Merge branch 'master' into html_list_tags 2018-11-11 11:30:28 +01:00
Justin Mayer
2c2706b715
Merge pull request #2438 from mosra/graceful-rst-parse-errors
Gracefully handle reST parse errors
2018-11-11 11:05:54 +01:00
Vladimír Vondruš
4df3b5156f Bring back Content._summary.
It's now just a (mutable) copy of metadata["summary"] and changes to it
are integrated back to the original.
2018-11-11 01:30:14 +01:00
Vladimír Vondruš
673e33840d Don't process metadata links before all files are present.
The refresh_metadata_intersite_links() is called again later, so this
bit was only causing everything to be processed twice. Besides
that, it makes the processing dependent on file order -- in particular,
when metadata references a file that was not parsed yet, it reported an
"Unable to find" warning. But everything is found in the second pass, so
this only causes a superflous false warning and no change to the output.

The related test now needs to call the
refresh_metadata_intersite_links() explicitly. That function is called
from Pelican.run() and all generators but the test processes just one
page so it has no chance of being called implicitly.

Related discussion: https://github.com/getpelican/pelican/pull/2288/files#r204337359
2018-11-11 01:19:20 +01:00
Vladimír Vondruš
c793e5c394 Add a test for false-positive warnings about intersite links.
With the current implementation, links to articles/pages that have not
been processed yet are reported with a warning, yet later replaced with
a correct value. That's not wanted.
2018-11-11 01:18:53 +01:00
Deniz Turgut
dd76c7158f Improve the looks of reST parser error output. 2018-11-10 23:08:10 +01:00
Deniz Turgut
015eefe7de Let's handle reST errors in a simple and nice way, finally. 2018-11-10 23:08:10 +01:00
Vladimír Vondruš
5ff553f6f3 Add tests verifying graceful handling on reST errors.
Currently all fail.
2018-11-10 23:08:10 +01:00
Oliver Urs Lenz
cbf4c3cae2 importer docs: warn about multiple categories in wordpress 2018-11-06 09:10:00 +01:00
Justin Mayer
b6b3724ed2
Merge pull request #2427 from MinchinWeb/tox-py37
Add Python 3.7 support to Travis and Tox
2018-11-06 08:31:29 +01:00
MinchinWeb
a06fd61ffc fix indent
The indent appears to have been messed up on the merge.
2018-11-03 11:09:17 -06:00
Justin Mayer
e9b6174157
Merge pull request #2429 from MinchinWeb/line-limit
Docs: Reflow to 79 char line limit
2018-11-03 16:22:57 +01:00
Justin Mayer
e35120faa8
Merge branch 'master' into line-limit 2018-11-03 16:18:25 +01:00
MinchinWeb
3a0add4b6e Convert FEED settings from %s to {slug} redux (#2432)
* Convert FEED settings from `%s` to `{slug}` redux

Closes #2106, Closes #2383
2018-11-03 16:12:20 +01:00
Justin Mayer
682b0b6711
Merge pull request #2430 from MinchinWeb/ghp-import-update
Docs: ghp-import works on Windows now
2018-11-03 15:33:13 +01:00
MinchinWeb
f9c3ac73e0 Docs: ghp-import works on Windows now
see https://github.com/davisp/ghp-import/pull/25
2018-11-02 20:55:33 -06:00
MinchinWeb
f595741b8e Docs: Reflow to 79 char line limit 2018-11-02 20:53:15 -06:00
MinchinWeb
dbdbd43511 Add Python 3.7 support to Travis and Tox 2018-11-02 16:11:45 -06:00
Justin Mayer
0da7ac677a
Merge pull request #2381 from oulenz/static_links
Automatically copy linked static files
2018-11-02 22:41:30 +01:00
Oliver Urs Lenz
048ea4dc0c automatically copy linked static files 2018-11-01 18:08:11 +01:00