Boian Berberov
bf85991ee6
Quote Makefile paths so it handles spaces
2020-04-13 11:17:39 +02:00
Justin Mayer
276a14ae05
Merge pull request #2687 from LouisJackman/add-devserver-global-make-target
...
Add a devserver-global Make task for non-local dev testing
2020-04-12 21:49:15 +02:00
Justin Mayer
e7ef546661
Add PORT to serve-global Makefile task
2020-04-12 19:43:09 +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
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
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
f52f276f2e
Separate SSH user/host/path vars in tasks.py
...
Refs #2623
2019-10-09 11:17:44 -07: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
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
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
Justin Mayer
d9e98a5a39
Merge pull request #2514 from rask004/fix-2487
...
Fix pelican-import error regarding wp-attach and Unicode
2019-03-07 21:13:37 +01:00
John Franey
63a72fc619
Remove Python 3.4 references
...
This PR removes the Python 3.4 tox task and updates references in the
code to Python 3.5+.
tox complains about Python 3.4, which is EOL after next month:
> py34 installed: DEPRECATION: Python 3.4 support has been deprecated. pip 19.1 will be the last one supporting it. Please upgrade your Python as Python 3.4 won't be maintained after March 2019 (cf PEP 429).
2019-02-06 10:23:27 -04: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
95a6486a8b
Merge pull request #2521 from monadnoc/quickstart_en_fix
...
Fix _DEFAULT_LANGUAGE in pelican-quickstart
2019-01-27 10:36:18 +01:00
Justin Mayer
5517e0dece
Merge pull request #2508 from oulenz/feed_importer
...
Reverts bug involving strftime accidentally introduced in feed importer
2019-01-27 10:34:38 +01:00
cclauss
f6724cb960
Simplify _input_compat and str_compat
...
The __six__ module provides us these same constructs using different names.
2019-01-23 19:41:44 +01:00
Jordan Nelson
15f5e81552
fixed _DEFAULT_LANGUAGE in pelican-quickstart
2019-01-22 19:59:20 -06:00
Roland Askew
2aebfd1cdc
fix pelican-import error regarding wp-attach and Uncode
2019-01-12 12:44:04 +13:00
Oliver Urs Lenz
3cdf4fd410
reverts bug involving strftime accidentally introduced in feed importer
2019-01-05 19:19:46 +01:00
Kenneth Lyons
4a3a06af8a
Remove stopserver from .PHONY prereqs in Makefile template
2018-12-12 13:25:14 -08:00
Justin Mayer
6aa2ad1808
Merge pull request #2449 from stuaxo/patch-5
...
Make importer work again. Fixes #2448
2018-11-28 21:01:16 -08:00
Bryan Brattlof
59cca7adb5
Remove unnecessary whitespace stripping
2018-11-28 10:31:21 -06: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
ded234467d
Update pelican_import.py
...
pelican-import: Move pandoc check inside loop, fixing #2448
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
Deniz Turgut
a3b256db1e
Use pelican.server class in invoke template
2018-11-25 21:43:40 +03: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
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
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
Oliver Urs Lenz
048ea4dc0c
automatically copy linked static files
2018-11-01 18:08:11 +01:00
Oliver Urs Lenz
5199fa51ea
control slug substitutions from settings with regex
2018-10-31 16:20:21 +01:00
Joao Moreira
d965575f4a
Add current date when publishing with ghp tool.
...
Re-submission of #2083 based on Invoke's task.py.
2018-10-30 19:05:31 -05:00
Justin Mayer
b27153fe9b
Conform to changes in Flake8 v3.6 code style
2018-10-25 09:36:26 +02:00
Justin Mayer
e9b654bbaa
Merge pull request #2395 from oulenz/import_from_blogger
...
Add Blogger XML backup importer
2018-08-08 09:45:52 +02:00
Oliver Urs Lenz
f3e95cf473
importer: don't wrap, because it breaks html attributes
2018-08-07 17:16:23 +02:00
Oliver Urs Lenz
c388f14d3e
add blogger importer
2018-08-07 14:33:10 +02:00
David Alfonso
150d1f05d0
Add pandoc2 support to pelican-import. Fix #2255
...
Specific options passed to pandoc2 in order to get similar results than
with pandoc1:
- Disable smart quotes from the markdown output.
- Enable raw parsing from html.
2018-08-03 19:44:50 +02:00
Oliver Urs Lenz
a5571ba1d5
importer: update links to attachments if --wp-attach
2018-07-09 11:26:50 +02:00