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
Justin Mayer
bbee493961
Merge pull request #2473 from bryanbrattlof/issue/2467
...
List files missing tag needed to order content
2019-06-17 16:18:14 +02:00
Justin Mayer
c25906d7c7
Merge pull request #2501 from jorgesumle/warning-fix
...
Remove spurious space character from warning message
2019-06-17 15:55:36 +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
Justin Mayer
24515c2cf0
Merge pull request #2476 from oulenz/collections
...
Try importing from collections.abc for compatibility with Python 3.8
2019-04-25 14:05:31 +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
Justin Mayer
396b679976
Merge pull request #2535 from oulenz/translations_ids
...
Fix bug in process_translations warning message generation that caused error with empty slugs
2019-03-07 21:19:08 +01:00
Justin Mayer
dde374651a
Merge pull request #2515 from bryanbrattlof/issue/2506
...
Update 'simple' theme to use new Atom/RSS settings
2019-03-07 21:16:51 +01: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
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
Oliver Urs Lenz
c9dc3223eb
Fix bug in process_translations warning message generation that caused error with empty slugs
2019-02-24 11:19:12 +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
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
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
Bryan Brattlof
0153f55016
Update 'simple' theme to use new Atom/RSS settings
2019-01-15 10:59:40 -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
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
Jorge Maldonado Ventura
58be4f0e04
Fix warning message
...
Add space between words 'static' and 'content'
2019-01-02 13:13:16 +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
Kenneth Lyons
4a3a06af8a
Remove stopserver from .PHONY prereqs in Makefile template
2018-12-12 13:25:14 -08:00
Justin Mayer
2f077037ba
Prepare for next version
2018-11-30 09:00:11 -08:00
Justin Mayer
24d6efa9fd
Prepare to release Pelican 4.0.1
2018-11-30 08:31:43 -08:00
Justin Mayer
0e3c8cede7
Merge pull request #2480 from avaris/serve-log
...
Refactor pelican.server logging
2018-11-28 21:07:45 -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
Deniz Turgut
8aeed9b7bd
Refactor pelican.server logging
...
* Use pelican.log instead of default loggers
* Remove excessive logging (report failures if nothing matches, don't report successes)
2018-11-27 19:55:31 +03: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
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