Deniz Turgut
46e1ec4f99
Fix legacy plugin loading
2020-04-17 21:15:25 +03:00
fancsali
f610801ee8
Add Typogrify/SmartyPants dashes config parameter ( #2615 )
2020-04-16 13:32:19 +02:00
Justin Mayer
cb3bb4ad69
Merge pull request #2727 from avaris/cleanup-after-tests
...
Reset global state set by tests in test_pelican
2020-04-16 10:17:54 +02:00
Deniz Turgut
d13108b03a
Reset global state set by tests in test_pelican
...
Calling read_settings to clear the options put into
pelican.settings.PYGMENTS_RST_OPTIONS in tearDown so
that tests that are run after are not affected
2020-04-16 11:11:24 +03:00
Justin Mayer
adf12505ab
Merge pull request #2724 from getpelican/theme-metadata
...
Put article summary in notmyidea "description" HTML metadata tag
2020-04-16 07:03:57 +02:00
Justin Mayer
8ba00dd9f1
Preserve category case in importer
...
Adds a `preserve_case` parameter to the `slugify()` function and uses it
to preserve capital letters in category names when using the Pelican
importer.
2020-04-15 20:42:21 +02:00
Justin Mayer
540c06b2b8
Update test output with "description" metadata tag
2020-04-15 16:58:03 +02:00
Deniz Turgut
eb05aa8ce5
Add a draft without date for #2488
2020-04-14 23:52:46 +03:00
Deniz Turgut
aa176b7939
Account for existing namespace plugins in plugin tests
2020-04-14 23:52:46 +03:00
Justin Mayer
7eae9b1abc
Reduce warnings and errors in sample content
...
This reduces the warnings and errors when generating the sample content
from twelve to one (intentional) warning. The latter is expected by
assertLogCountEqual() in the "test_basic_generation_works" test.
2020-04-14 21:39:47 +02:00
Justin Mayer
2d590bb8c1
Add HTML meta generator tag to functional test output
2020-04-14 17:47:08 +02:00
Justin Mayer
cff6a829c2
Set timezone when assigning max datetime to drafts
2020-04-14 13:48:03 +02:00
Deniz Turgut
97dbafcb89
Fix LOG_FILTER to act on exact messages
...
* Adds the ability to filter templated messages by exact message,
as well as templates.
* Adds a test for LimitFilter.
Fixes #2552 , #2682
2020-04-12 21:00:27 +03:00
Justin Mayer
0bc6869879
Merge pull request #2713 from getpelican/pin-pygments
...
Pin Pygments & Jinja to specific versions
2020-04-12 17:07:28 +02:00
Justin Mayer
7d19bcf5d4
Add settings for custom Jinja globals and tests ( #2715 )
...
Pelican has a setting for custom Jinja filters but not custom tests or
custom environment namespace globals. This adds both of the latter.
2020-04-12 17:03:53 +02:00
Justin Mayer
9a0a08f460
Update functional test output
2020-04-12 17:02:07 +02:00
Kurt McKee
7bbd3dc6fb
Update links to HTTPS and current 301 redirects in docs/templates/themes ( #2661 )
...
This also updates the Tumblr API to use HTTPS as documented in the
current Tumblr API docs.
2020-04-12 16:38:35 +02:00
Annika Backstrom
5d6513c36c
Skip Markdown metadata parsing within metadata
2020-04-12 11:40:43 +02:00
Kurt McKee
4db9b944a2
Remove CSS references to the non-existent digg.png icon
2020-04-12 10:19:27 +02:00
(GalaxyMaster)
7f8726929b
Added an additional assert as requested
2020-04-12 05:18:29 +10:00
(GalaxyMaster)
56c2abe613
Added a test for the emd marker
2020-04-11 17:30:50 +10:00
Deniz Turgut
58edad6897
remove pelican.signals in favor of pelican.plugins.signals
2019-12-01 18:14:13 +03:00
Deniz Turgut
a2053c34c3
Namespace plugin implementation
...
* Creates pelican.plugins
* Moves plugin related code under pelican.plugins
* pelican.plugins.signals is now the location for signals, pelican.signals is kept
for backwards compatibility
* pelican.plugins._utils contains necessary bits for plugin discovery and loading.
Logic from Pelican class is moved here. Pelican class now just asks for plugins
and registers them
* Contains tests for old and new plugin loading
2019-12-01 17:55:19 +03:00
Deniz Turgut
16968834ce
Convert super() calls to py3 style
2019-11-26 06:17:04 +09:00
Deniz Turgut
49bc6ed47f
Further remove python2-isms
2019-11-26 06:17:04 +09:00
Kevin Yap
1e0e541b57
Initial pass of removing Python 2 support
...
This commit removes Six as a dependency for Pelican, replacing the
relevant aliases with the proper Python 3 imports. It also removes
references to Python 2 logic that did not require Six.
2019-11-26 06:16:41 +09:00
Justin Mayer
67781f63af
Support inline SVG images ( #2634 )
...
Support inline SVG images
2019-10-17 10:47:05 -07:00
Justin Mayer
7bfc70c153
Update functional test output for category in feed
2019-10-17 10:34:03 -07:00
Lucas Cimon
e092f7ca75
Adding missing call to topdown=True in Generator.get_files
2019-10-17 13:05:53 +02:00
Stuart Axon
eaccca52dd
Support inline SVGs (don't break on title in inline SVG).
2019-10-15 22:41:44 +01:00
MinchinWeb
2ee423017b
Skip some non-Windows tests on Windows
...
Some tests will never pass on Windows due to differences in filesystems between
Windows and Linux.
2019-08-21 11:27:31 -06:00
Justin Mayer
021f15256a
Add CSS classes for reStructuredText figures
...
Fixes #2113
2019-07-23 16:37:09 +02:00
Oliver Urs Lenz
c988d6aaa2
replace os.mknod with open for macos and windows compatibility
2019-07-03 22:55:44 +02:00
Tim Gates
4bae94834e
Support for python -m pelican
...
Addresses https://github.com/getpelican/pelican/issues/2523
Note: @avaris made a good point that there is no need to replace the existing
module runner for pelican quickstart or the other tools as this can be run
via:
> python -m pelican.tools.pelican_quickstart
2019-06-14 09:41:49 +10:00
Justin Mayer
d8d230b554
PyCodeStyle fix
2019-06-10 21:44:13 +02:00
Justin Mayer
7f77106c1b
Configure footnote test to keep hyphen as separator
...
Closes #2493
2019-06-10 21:36:02 +02:00
Marcin Juszkiewicz
8520840be6
Provide 'all_articles' variable to period pages
...
This allows 'recent posts' functionality to work properly.
2019-04-19 19:45:23 +02:00
Andrew Vant
ce9f3d55a3
Allow directories in EXTRA_PATH_METADATA
...
Metadata applied to a directory will apply to all files under
it. In case of conflicts, child paths beat parent paths, so metadata
applied to `dir/subdir/file.md` will take precedence over that applied
to `dir/subdir`, which will take precedence over just `dir`.
2019-03-06 16:21:27 -05:00
John Franey
3395e71570
Fix linting issues
...
Fixes linting issues that caused the `flake8` CI stage to fail.
2019-02-06 10:22:57 -04:00
Justin Mayer
f490618b9f
Merge pull request #2503 from mosra/paginator-broken-again
...
Pagination: the lstrip() was way too hungry, eating absolute URLs
2019-01-27 10:32:39 +01:00
Bryan Brattlof
42c27594ab
Add relative_source_path attribute to content
2019-01-26 18:47:56 -06:00
Vladimír Vondruš
ec2a1bd42a
pagination: this lstrip() was way too hungry, eating absolute URLs.
...
Reverts back to how pagination worked for the {url} placeholder as I did
it in 182fb11c80 . Absolute URLs with
one or two leading slashes were eaten by lstrip() and became relative,
which then caused broken links in my case.
Added extra comments to this piece of code (*and* the test) to make it
less likely that someone breaks this again in the future.
2019-01-04 22:10:53 +01:00
Nicolas Le Manchet
1b8a7826c4
Remove Atom summaries when they are unnecessary
...
Do not include a summary tag to Atom entries when:
- the summary is empty
- the summary and the full content are the same
Fixes #2403
2018-12-18 21:57:16 +01:00
Stuart Axon
a597a31dad
Make the blogger tests consistant with the wp ones - cast
...
to list in test if needed.
2018-11-26 16:58:12 +00:00
Stuart Axon
942e462241
Don't convert posts to lists for wp importer.
2018-11-26 16:37:10 +00: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
Oliver Urs Lenz
6923a7bca0
Remove non-existent tag attribute handling from Content.url_format
2018-11-25 13:27:18 +01: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
Justin Mayer
a00bd6ec8b
Merge pull request #2374 from jorgesumle/hreflang
...
Add hreflang attribute to default themes
2018-11-12 08:15:08 +01:00