summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Fix output directory deletion logicfix-delete-output-logicJustin Mayer2020-04-151-4/+5
| | | | | | | | | | | | | | | | The intention was to prevent accidental source content data loss by skipping output directory deletion if the output directory is a parent of the source content directory. But the previous implementation did so by checking path *strings*, resulting in scenarios where the following settings would erroneously skip deletion of the output directory: PATH = "/repo/docs-src/content" OUTPUT_PATH = "/repo/docs" The output directory should have been deleted but wasn't because the PATH string contains "/repo/docs". This change eschews string comparison and instead compares actual paths to ensure that the output path is not a parent of the source content directory.
* Enhance JINJA_FILTERS setting docs (#2126)Cropse2020-04-151-0/+3
|
* Wrong path for attached static content urls (#2158)David Zaslavsky2020-04-152-1/+13
| | | | | | | | | | | | | * Document _URL/_SAVE_AS path matching req. Fix #2158 This commit addresses the fact that some URLs (primarily {attach}) are based on the *_SAVE_AS path instead of the *_URL path. It updates the documentation to point out that the paths of corresponding _URL and _SAVE_AS settings should match, and that the OUTPUT directory should correspond to the web server's document root, in order to avoid producing these incorrect URLs. * Clarify {attach} and *_URL / *_SAVE_AS caveat Co-authored-by: Justin Mayer <entroP@gmail.com>
* Merge pull request #2721 from avaris/fix-test-pluginsJustin Mayer2020-04-145-17/+287
|\ | | | | Test updates
| * Add a draft without date for #2488Deniz Turgut2020-04-144-0/+267
| |
| * Account for existing namespace plugins in plugin testsDeniz Turgut2020-04-141-17/+20
|/
* Merge pull request #2720 from getpelican/fix-sample-contentJustin Mayer2020-04-1429-37/+135
|\ | | | | Reduce warnings and errors in sample content
| * Reduce warnings and errors in sample contentJustin Mayer2020-04-1429-37/+135
|/ | | | | | This reduces the warnings and errors when generating the sample content from twelve to one (intentional) warning. The latter is expected by assertLogCountEqual() in the "test_basic_generation_works" test.
* Add HTML meta generator tag to functional test outputJustin Mayer2020-04-14102-0/+102
|
* Add HTML meta generator tag to theme base templatesJustin Mayer2020-04-142-0/+2
|
* Put pre-commit excludes where they actually belongJustin Mayer2020-04-141-1/+1
|
* Don't run pre-commit on functional test outputJustin Mayer2020-04-141-0/+1
| | | | | Otherwise, it will apply EOF and trailing whitespace fixes, which may lead to test failures.
* Set timezone when assigning max datetime to draftsdraft-tzJustin Mayer2020-04-142-2/+3
|
* Quote Makefile paths so it handles spacesBoian Berberov2020-04-131-16/+16
|
* Run tests in parallel on multi-core systemsJustin Mayer2020-04-133-0/+3
| | | | | Uses pytest-xdist to run tests on two cores simultaneously, speeding up test runs by nearly 40%.
* Add missing <ul> element to index.html template in notmyidea theme (#2545)Boian Berberov2020-04-121-1/+7
|
* Merge pull request #2687 from LouisJackman/add-devserver-global-make-targetJustin Mayer2020-04-121-0/+7
|\ | | | | Add a devserver-global Make task for non-local dev testing
| * Add a devserver-global task for non-local dev testingLouisJackman2020-01-231-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | Merge pull request #2716 from avaris/limit-filterJustin Mayer2020-04-122-3/+83
|\ \ | | | | | | Fix LOG_FILTER to act on exact messages
| * | Fix LOG_FILTER to act on exact messagesDeniz Turgut2020-04-122-3/+83
| | | | | | | | | | | | | | | | | | | | | | | | * Adds the ability to filter templated messages by exact message, as well as templates. * Adds a test for LimitFilter. Fixes #2552, #2682
* | | Add PORT to serve-global Makefile taskJustin Mayer2020-04-121-0/+4
|/ /
* | Merge pull request #2713 from getpelican/pin-pygmentsJustin Mayer2020-04-1284-86/+86
|\ \ | | | | | | Pin Pygments & Jinja to specific versions
| * | Update functional test outputJustin Mayer2020-04-1278-80/+80
| | |
| * | Increase Jinja version minimum to 2.11+Justin Mayer2020-04-122-2/+2
| | | | | | | | | | | | | | | | | | This newer version slightly changes rendered output; upgrading our dependency means our functional test output will match it more consistently.
| * | Pin Pygments to 2.6.1Justin Mayer2020-04-123-2/+2
| | |
| * | Ensure consistent title spacing in themesJustin Mayer2020-04-122-2/+2
| | | | | | | | | | | | | | | | | | 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.
* | | Add settings for custom Jinja globals and tests (#2715)Justin Mayer2020-04-124-2/+103
|/ / | | | | | | Pelican has a setting for custom Jinja filters but not custom tests or custom environment namespace globals. This adds both of the latter.
* | Update links to HTTPS and current 301 redirects in docs/templates/themes (#2661)Kurt McKee2020-04-12128-266/+267
| | | | | | | | This also updates the Tumblr API to use HTTPS as documented in the current Tumblr API docs.
* | Pin pytest in pyproject alsoJustin Mayer2020-04-121-1/+1
| |
* | Add poetry.lock to list of files for Git to ignoreJustin Mayer2020-04-121-0/+1
| |
* | Move more test deps from CI config to requirementsJustin Mayer2020-04-122-2/+1
| |
* | Pin pytest until 5.4.x series has stabilizedJustin Mayer2020-04-121-1/+1
| | | | | | | | Version 5.4.1 is currently incompatible with pytest-sugar.
* | Merge pull request #2714 from getpelican/skip-md-metadata-parseJustin Mayer2020-04-124-0/+24
|\ \ | | | | | | Skip Markdown metadata parsing within metadata fields
| * | Skip MD metadata parsing in latest Python-Markdownskip-md-metadata-parseJustin Mayer2020-04-121-1/+1
| | | | | | | | | | | | | | | The syntax for unloading Python-Markdown extensions has changed to a "deregister" method on Registry objects.
| * | Skip Markdown metadata parsing within metadataAnnika Backstrom2020-04-124-0/+24
|/ /
* | Remove CSS references to the non-existent digg.png iconKurt McKee2020-04-124-4/+0
| |
* | Remove poetry.lock fileJustin Mayer2020-04-121-438/+0
| | | | | | | | | | This seems to be causing problems for some folks, without adding any noticeable benefit.
* | Merge pull request #2643 from mxjeff/simple-theme-missing-striptagsJustin Mayer2020-04-122-2/+2
|\ \ | | | | | | Add missing striptags filter to simple theme
| * | Fixed simple theme, add missing striptags filterkaliko2019-10-252-2/+2
| | | | | | | | | | | | page.title are missing striptags in title block
* | | Merge pull request #2666 from xuhdev/doc/themesJustin Mayer2020-04-122-2/+4
|\ \ \ | | | | | | | | doc: Add cross links between theme settings and pelican-themes
| * | | Add cross links between theme settings and pelican-themesHong Xu2019-12-252-2/+4
| | | |
* | | | Merge pull request #2660 from kurtmckee/fix-pagination-docs-typoJustin Mayer2020-04-121-1/+1
|\ \ \ \ | | | | | | | | | | Fix a typo in the pagination settings docs
| * | | | Fix a typo in the pagination settings docsKurt McKee2019-12-051-1/+1
| |/ / /
* | | | Merge pull request #2711 from galaxy4public/summary-end-markerJustin Mayer2020-04-124-1/+22
|\ \ \ \ | | | | | | | | | | Add custom summary end marker
| * | | | Added an additional assert as requested(GalaxyMaster)2020-04-121-0/+1
| | | | |
| * | | | Added a test for the emd marker(GalaxyMaster)2020-04-111-0/+13
| | | | |
| * | | | Provided the settings documentation snippet(GalaxyMaster)2020-04-111-0/+5
| | | | |
| * | | | Added support for the summary end marker configuration(GalaxyMaster)2020-04-112-1/+3
| | | | |
* | | | | Update documentation copyright & attribution infoJustin Mayer2020-04-121-3/+3
|/ / / /
* | | | Merge pull request #2706 from nikolausschueler/makefixJustin Mayer2020-03-251-6/+9
|\ \ \ \ | | | | | | | | | | Handle case of missing port in target "serve-global"