1
0
Fork 0
forked from github/pelican
Commit graph

3,379 commits

Author SHA1 Message Date
Justin Mayer
b5c7e6fbe8 Make Markdown an optional dependency in pyproject
Refs #2585
2019-07-03 19:48:58 +02:00
Justin Mayer
216eec50fc Add pyproject.toml and poetry.lock to project
This could facilitate publishing new versions of Pelican as well as make
it easier for Poetry users to install Pelican via: `poetry install`

Closes #2450
2019-06-28 17:44:42 +02:00
Justin Mayer
80540281bc Add Python 3.5 env back to Travis tests. Refs #2571
Previous change resulted in Python 3.5 missing from the test
environment, as well as a duplicate Python 3.6 test run.
2019-06-24 20:21:19 +02:00
Justin Mayer
9154d8f42e
Merge pull request #2584 from justinmayer/reload
Enhance Invoke livereload task
2019-06-24 14:13:17 +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
Justin Mayer
86777b9ce8
Merge pull request #2571 from johnfraney/tox-python-versions
Update CI config and fix failing CI envs
2019-06-19 09:40:07 +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
2e82a53cdf Document automatic titles from content file names
Closes #2107
2019-06-17 17:40:52 +02:00
Justin Mayer
98071fab94 Docs: MARKDOWN var replaces, not updates, default
Closes #2100
2019-06-17 16:50:54 +02: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
Justin Mayer
b40282d566
Merge pull request #2580 from getpelican/funding
Add FUNDING.yml to project
2019-06-17 15:52:28 +02:00
Justin Mayer
a343b166e0 Add FUNDING.yml to project
This adds multiple methods for financially supporting Pelican's development. Primary motivations are to defray expenses for servers and domain name registration, as well to support and encourage Pelican's on-going maintenance and enhancement.
2019-06-17 15:36:07 +02:00
Justin Mayer
577d18a778
Merge pull request #2582 from timgates42/feature/python_main_support
Support for python -m pelican
2019-06-17 15:13:59 +02:00
Justin Mayer
9fdcb901f3 Both --autoreload and --listen can be combined
But not on Windows. Refs #2400
2019-06-16 18:56:08 +02:00
Justin Mayer
2ab91bbaaa Clarify that pelican --listen operates on output 2019-06-16 18:51:10 +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
7e859c277f Pin Python-Markdown to >= 3.1 in test requirements
Closes #2493
2019-06-10 21:12:12 +02:00
Justin Mayer
8ed686136a Un-pin Python-Markdown version in test requirements
Refs #2493 #2569
2019-05-13 09:59:31 +02:00
Justin Mayer
e6ecefb594 Update http:// links to https:// where appropriate 2019-04-25 15:08:04 +02:00
Justin Mayer
90fc604d2d
Merge pull request #2544 from bberberov/redundant-and-reorder
Docs: Remove redundant text and reorder settings for consistency
2019-04-25 14:44:32 +02:00
Justin Mayer
4700fc89bd
Merge pull request #2520 from askpatrickw/askpatrickw-2386
Move FeedBurner config to wiki
2019-04-25 14:33:34 +02:00
Justin Mayer
21a4169169 Clarify copyright continues through to present day
This obviates the need to manually update the copyright every year.
2019-04-25 14:25:39 +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
Justin Mayer
8a76981137
Merge pull request #2559 from hrw/add-all_articles-to-period-pages
Provide 'all_articles' variable to period pages
2019-04-19 21:04:19 +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
Boian Berberov
4f49428961 Documentation changes based on pull request comments.
- Settings -> Template pages: DIRECT_TEMPLATES example
- Creating Themes -> Common variables: authors and tags descriptions
2019-04-04 17:11:58 -06:00
Boian Berberov
86c1db1c63 Adding authors to Common variables
- Adding `authors` to Common variables in the documentation
- Reordering the `authors`, `categories`, `tags` variables in the table
2019-03-26 17:42:59 -06:00
Boian Berberov
3d5cdad473 Updating DIRECT_TEMPLATES documentation to match default configuration 2019-03-23 15:34:47 -06:00
Boian Berberov
de237e365a Remove redundant text and reorder settings for consistency
- Remove redundant `YEAR`, `MONTH`, and `DAY` `_ARCHIVE_SAVE_AS` sections
- Move `AUTHOR_URL` and `AUTHOR_SAVE_AS` to match `AUTHOR`, `CATEGORY`, `TAG` order throughout the rest of the document
- Move `YEAR`, `MONTH`, and `DAY` `_ARCHIVE_URL` and `_ARCHIVE_SAVE_AS` sections below paragraph describing them; and match ( `_URL`, `_SAVE_AS` ) order throughout the rest of the document

Recommend viewing with `--diff-algorithm=patience`
2019-03-19 20:56:44 -06:00
Justin Mayer
de71f39232
Merge pull request #2543 from bberberov/TEMPLATE_EXTENSIONS
Change TEMPLATE_EXTENSION to TEMPLATE_EXTENSIONS in documentation
2019-03-15 18:10:07 +01:00
Boian Berberov
583c0d4e17 Change TEMPLATE_EXTENSION to TEMPLATE_EXTENSIONS in documentation 2019-03-13 17:00:21 -06: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
Justin Mayer
6fa80ce37d
Merge pull request #2181 from andrew-vant/recursive_epm
Allow directory entries in EXTRA_PATH_METADATA
2019-03-07 21:11:04 +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
Justin Mayer
e967988eff
Merge pull request #2528 from johnfraney/fix-failing-ci
Remove Python 3.4
2019-02-16 17:00:01 +01:00