(GalaxyMaster)
56c2abe613
Added a test for the emd marker
2020-04-11 17:30:50 +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
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
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
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
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
Deniz Turgut
16968834ce
Convert super() calls to py3 style
2019-11-26 06:17:04 +09:00
Deniz Turgut
3cc430b418
Update docutils and remove docutils workaround
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
kaliko
0806df6068
Fixed simple theme, add missing striptags filter
...
page.title are missing striptags in title block
2019-10-25 09:20:14 +02: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
Maurício Gardini
f72d06a4a5
Adds the category to the feed item. Fix #2556 .
...
Adds the article category as a feed item category.
2019-10-17 10:29:32 -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
Justin Mayer
619c9015cb
Merge pull request #2609 from MinchinWeb/windows-tests-4
...
Skip some non-Windows tests on Windows
2019-10-09 11:41:27 -07:00
Justin Mayer
f52f276f2e
Separate SSH user/host/path vars in tasks.py
...
Refs #2623
2019-10-09 11:17:44 -07:00
Justin Mayer
761f2e34e7
Merge pull request #2624 from MicroJoe/fix-invoke-publish-ssh-port
...
Use correct SSH port syntax for rsync in tasks.py. Fixes #2623
2019-10-09 11:11:04 -07:00
Justin Mayer
7aa2f6c142
Merge pull request #2630 from andreagrandi/fix-default-bind-address
...
Set default listening address to 127.0.0.1
2019-10-05 10:29:46 -07:00
Andrea Grandi
b88b5f7b36
Set default binding addres to 127.0.0.1
2019-10-05 15:25:31 +02:00
Oliver Urs Lenz
2c8e7b3e6b
place all deprecated settings handling together
2019-10-04 22:39:57 +02:00
Romain Porte
8734bd1a6f
templates: tasks.py: introduce "production_port" to fix #2623
...
The syntax passed to rsync for specifying the port is incorrect. In the
Makefile template, the -e option is correctly used to pass the port. We
use the same syntax here to pass the SSH port.
This fix issue #2623 .
Signed-off-by: Romain Porte <microjoe@microjoe.org>
2019-09-24 22:19:10 +02:00
Lucas Cimon
367245cc47
Fix pelican.settings.load_source to avoid caching issues
2019-09-23 20:06:41 +02:00
Justin Mayer
f6ef027014
Tidy and shorten a comment
2019-08-23 19:02:48 +02: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
00159b7999
Merge pull request #2600 from Lucas-C/allow_argv_passing
...
Allowing to pass `argv` to pelican `main` entrypoint
2019-08-21 14:25:06 +02:00
MinchinWeb
b2da535fec
Set default content status to a blank string rather than None.
...
Fixes
#2558 .
Fixes issues encountered by comment plugins among others
c.f. [1](https://github.com/bstpierre/pelican-comments/pull/4 ),
[2](https://github.com/Scheirle/pelican_comment_system/issues/8 ),
[3](https://github.com/Scheirle/pelican_comment_system/pull/7 )
2019-08-20 19:39:14 -06:00
Lucas Cimon
360ff420d3
Allowing to pass argv to pelican main entrypoint
2019-08-01 13:53:56 +02:00
Justin Mayer
021f15256a
Add CSS classes for reStructuredText figures
...
Fixes #2113
2019-07-23 16:37:09 +02:00
Eklavya Sharma
126f72e1cd
Only use relative paths in StaticGenerator
...
Previously some paths were relative and some were absolute,
which lead to multiple Content objects for the same static file
in self.staticfiles.
2019-07-09 23:50:17 +05:30
Justin Mayer
54911fff39
Consolidate version strings in pyproject.toml
...
Storing the current version in a single place greatly simplifies
issuing new package releases.
2019-07-05 08:08:08 +02:00
Oliver Urs Lenz
c988d6aaa2
replace os.mknod with open for macos and windows compatibility
2019-07-03 22:55:44 +02:00
Justin Mayer
a4cecd2d0c
Add theme templates, CSS, JS to Invoke livereload task
2019-06-20 08:30:04 +02:00
Justin Mayer
cf2275c3be
Add settings file to Invoke livereload watch list
2019-06-20 08:18:00 +02:00
Justin Mayer
c8b0b52d4e
Use port settings in Invoke livereload task
...
Instead of using LiveReload's default port 5500, use the existing `port`
value from the task's CONFIG dictionary, which defaults to 8000.
2019-06-20 08:12:14 +02:00
Justin Mayer
ae7af1d696
Remove redundant vars in Invoke livereload task
2019-06-20 08:08:48 +02:00
Justin Mayer
8b4c46d74b
Invoke serve task docstring: port is configurable
2019-06-20 07:49:48 +02:00
Justin Mayer
4b5610175f
Invoke: Make settings file name handling more DRY
...
Instead of repeating hard-coded 'pelicanconf.py' values throughout
Invoke's task.py template, assign default settings file names to
variables, and use those variables where applicable.
2019-06-19 16:11:16 +02:00
Justin Mayer
5525a9021e
Use OUTPUT_PATH setting in Invoke tasks.py template
...
The default setting for OUTPUT_PATH is already 'output', so it would be
more DRY to use the existing default value instead of a hardcoded
'output' string.
2019-06-19 15:45:32 +02:00
Justin Mayer
c61665b85d
Merge pull request #2526 from johnfraney/livereload
...
Add livereload invoke task. Fixes #1326
2019-06-19 09:49:24 +02:00
John Franey
ca012bd288
Update livereload Invoke task and add docs
...
Removes the `livereload` dependency from `setup.py`.
Updates the `invoke livereload` task by moving the `livereload` import
into the task function since it is now an optional dependency.
Updates the Invoke section of the documentaion with instructions on
using the `livereload` Invoke task.
2019-06-18 22:59:34 -04:00
John Franey
28383a6355
Add livereload invoke task. Fixes #1326
...
Adds a `livereload` invoke task that builds the project and reloads the
browser window when content files are updated.
Usage:
```console
$ invoke livereload
[I 190202 16:28:30 server:298] Serving on http://127.0.0.1:5500
[I 190202 16:28:30 handlers:59] Start watching changes
[I 190202 16:28:30 handlers:61] Start detecting changes
[I 190202 16:28:32 handlers:132] Browser Connected: http://127.0.0.1:5500/
```
See: https://livereload.readthedocs.io/en/latest/
2019-06-18 22:49:09 -04:00
John Franey
9e07234bae
Update Tox config and fix failing CI envs
...
Updates base Python version for Travis CI from 2.7 to 3.6 and fixes a
linting error.
2019-06-18 22:44:46 -04:00