1
0
Fork 0
forked from github/pelican
Commit graph

3,415 commits

Author SHA1 Message Date
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
Justin Mayer
6cef4ead88 Increase Jinja version minimum to 2.11+
This newer version slightly changes rendered output; upgrading our
dependency means our functional test output will match it more
consistently.
2020-04-12 17:02:06 +02:00
Justin Mayer
e2bbfcb088 Pin Pygments to 2.6.1 2020-04-12 17:02:06 +02:00
Justin Mayer
212742a56f Ensure consistent title spacing in themes
Moving the space between the title and sub-title inside the "if"
statement eliminates a spurious trailing space when there is no
sub-title defined.
2020-04-12 17:02:06 +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
Justin Mayer
18c7a9c3a1 Pin pytest in pyproject also 2020-04-12 15:38:17 +02:00
Justin Mayer
b6dc55f96c Add poetry.lock to list of files for Git to ignore 2020-04-12 15:21:17 +02:00
Justin Mayer
88100484e0 Move more test deps from CI config to requirements 2020-04-12 15:16:12 +02:00
Justin Mayer
2a5bb109ba Pin pytest until 5.4.x series has stabilized
Version 5.4.1 is currently incompatible with pytest-sugar.
2020-04-12 15:04:22 +02:00
Justin Mayer
0f97f6d488
Merge pull request #2714 from getpelican/skip-md-metadata-parse
Skip Markdown metadata parsing within metadata fields
2020-04-12 14:53:59 +02:00
Justin Mayer
e618becfc0 Skip MD metadata parsing in latest Python-Markdown
The syntax for unloading Python-Markdown extensions has changed to a
"deregister" method on Registry objects.
2020-04-12 11:40:58 +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
Justin Mayer
50808f644f Remove poetry.lock file
This seems to be causing problems for some folks, without adding any
noticeable benefit.
2020-04-12 09:36:20 +02:00
Justin Mayer
e8760646f7
Merge pull request #2643 from mxjeff/simple-theme-missing-striptags
Add missing striptags filter to simple theme
2020-04-12 08:56:29 +02:00
Justin Mayer
5b238d189c
Merge pull request #2666 from xuhdev/doc/themes
doc: Add cross links between theme settings and pelican-themes
2020-04-12 08:53:54 +02:00
Justin Mayer
9d8a143ce8
Merge pull request #2660 from kurtmckee/fix-pagination-docs-typo
Fix a typo in the pagination settings docs
2020-04-12 07:17:32 +02:00
Justin Mayer
0fabbb6a60
Merge pull request #2711 from galaxy4public/summary-end-marker
Add custom summary end marker
2020-04-12 06:55:45 +02:00
Justin Mayer
e06934a003 Update documentation copyright & attribution info 2020-04-12 06:07:37 +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
(GalaxyMaster)
4833a27243 Provided the settings documentation snippet 2020-04-11 15:42:18 +10:00
(GalaxyMaster)
e412657581 Added support for the summary end marker configuration 2020-04-11 15:35:26 +10:00
Justin Mayer
a9a651ce4d
Merge pull request #2706 from nikolausschueler/makefix
Handle case of missing port in target "serve-global"
2020-03-25 09:03:00 +01:00
Justin Mayer
6b6ef5f18f
Merge pull request #2705 from nikolausschueler/encodingfix
Make encoding a named parameter
2020-03-25 09:00:52 +01:00
Nik
ab5e78db2a Handle case of missing port in target "serve-global"
Also factor out the check for the SERVER variable to avoid nested
ifdefs.

Fixes #2696
2020-03-14 08:47:57 +01:00
Nik
bae37a7ae4 Make encoding a named parameter
Without the name, the parameters are used in sequence and the "encoding"
param is used in place of the "buffering" param, which leads to
problems.
2020-03-13 15:47:48 +01:00
Carlos Pereira Atencio
f2dbfbfcec
Docs: Add info about pelican-quickstart command path flag. (#2675) 2020-02-26 19:54:05 +01:00
luz.paz
652ec971d4 Add Repology badge to README
Closes #2633
2020-02-20 07:55:20 -05:00
LouisJackman
bd1ab74031 Add a devserver-global task for non-local dev testing
The devserver target recently acquired a sane default of restricting
access only to localhost. This is good for security. However, it can
frustrate some usages like testing on phones on a local network or
hosting the dev server within VMs (e.g. Docker for Mac) which see host
OS browsers as not being 127.0.0.1.

Add a new target called `devserver-global` for this case. As it's longer
to type, the more svelte `devserver` will retain the more secure
defaults that will suffice for most users; they can use the
longer-to-type `devserver-global` target to relax the localhost-only
restriction.
2020-01-23 21:29:13 +00:00
Justin Mayer
cf96c113e1
Improve UI when pelican --listen web server is quit (#2684)
Improve UI when `pelican --listen` web server is quit
2020-01-20 08:09:39 +01:00
Justin Mayer
fa71931503 Exit web server gracefully when user taps CTRL-C
Users were previously met with an ugly traceback. Now `pelican --listen`
invocations, when quit via CTRL-C, are followed instead by a more
user-friendly message.
2020-01-19 09:07:02 +01:00
Justin Mayer
569f8a080e Tell users they can use CTRL-C to stop web server
This knowledge was heretofore assumed but is better made explicit.
2020-01-19 09:07:02 +01:00
Justin Mayer
70c8d2a474 Docs: Ensure plugin developers create new branch 2019-12-28 10:20:19 +01:00
Justin Mayer
b8f2326fa6 Document mirroring content & output path hierarchies 2019-12-28 10:02:48 +01:00
Justin Mayer
d7795b8afd Move Python datetime note further down Settings docs 2019-12-28 09:57:41 +01:00
Justin Mayer
d2c857883f Update Python documentation links to Python 3 2019-12-28 09:52:33 +01:00
Justin Mayer
6a9aa1dca8 Remove duplicate datetime URL in Settings docs 2019-12-28 09:48:07 +01:00
Hong Xu
b149a23507 Add cross links between theme settings and pelican-themes 2019-12-25 18:29:45 +08:00
Kurt McKee
3f1d4edea3 Fix a typo in the pagination settings docs 2019-12-05 13:37:41 -06:00
Justin Mayer
48f6275134
Merge pull request #2644 from avaris/namespace
Namespace plugin implementation
2019-12-01 09:36:57 -08:00
Deniz Turgut
8a56e1f1fa Update namespace docs to address review 2019-12-01 20:29:42 +03:00
Deniz Turgut
87a5c82197 Documentation update for namespace plugins 2019-12-01 19:29:41 +03:00
Deniz Turgut
ed1eca160e Remove py2-isms and avoid sys.path hacks 2019-12-01 18:33:11 +03: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
Justin Mayer
772005f431
Merge pull request #2649 from iKevinY/py2-sunset
Remove Python 2 support
2019-11-26 14:03:13 -08:00
Deniz Turgut
16968834ce Convert super() calls to py3 style 2019-11-26 06:17:04 +09:00