summaryrefslogtreecommitdiff
path: root/samples
Commit message (Collapse)AuthorAgeFilesLines
* Modernize code base to Python 3+ syntaxremove-legacyJustin Mayer2020-04-272-4/+0
| | | | | Replaces syntax that was relevant in earlier Python versions but that now has modernized equivalents.
* Add a draft without date for #2488Deniz Turgut2020-04-141-0/+7
|
* Reduce warnings and errors in sample contentJustin Mayer2020-04-145-2/+12
| | | | | | 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.
* Initial pass of removing Python 2 supportKevin Yap2019-11-262-2/+0
| | | | | | 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.
* Convert FEED settings from `%s` to `{slug}` redux (#2432)MinchinWeb2018-11-032-2/+2
| | | | | * Convert FEED settings from `%s` to `{slug}` redux Closes #2106, Closes #2383
* automatically copy linked static filesOliver Urs Lenz2018-11-012-3/+3
|
* Test for SITESUBTITLE in feeds.Vladimír Vondruš2017-10-291-0/+1
| | | | It's now present in both RSS and Atom feeds.
* Merge pull request #1602 from ltiao/patch-1Justin Mayer2015-04-011-1/+0
|\ | | | | Removed `PDF_GENERATOR=False`
| * Removed `PDF_GENERATOR=False`Louis Tiao2015-01-271-1/+0
| | | | | | It might give the impression that the PDF generation is still part of the core.
* | Change documented type of various settingsKevin Yap2015-01-172-2/+2
|/ | | | | | | - DEFUALT_METADATA, tuple -> dictionary - OUTPUT_RETENTION, tuple -> list - JINJA_FILTERS, list -> dictionary - DIRECT_TEMPLATES, tuple -> list
* Fix test errors on OSXDeniz Turgut2014-06-261-0/+1
| | | | | | | | | | On OSX, if LC_TIME and LC_CTYPE differs the output of strftime is not properly decoded in Python 3. This makes sure that the 'utils.DateFormatter' and the related Jinja filter 'strftime' set the same value for LC_TIME and LC_CTYPE while formatting. Also, '%a' is removed from DEFAULT_DATE_FORMAT in 'custom_locale' tests. OSX and *nix have different conversions for '%a' ('Jeu' vs 'jeu.') and there is not a feasible way to handle the difference for tests.
* Fix #1198, enable custom locale in template rendering, fixes linksOndrej Grover2014-06-261-0/+59
| | | | | | | | | | | | | reverts getpelican/pelican@ddcccfeaa952d2e1e24ceac94e5d66c73b57c01b If one used a locale that made use of unicode characters (like fr_FR.UTF-8) the files on disk would be in correct locale while links would be to C. Uses a SafeDatetime class that works with unicode format strigns by using custom strftime to prevent ascii decoding errors with Python2. Also added unicode decoding for the calendar module to fix period archives.
* The modified attribute no longer has a default value.Florian Jacob2013-11-171-0/+1
| | | | | This allows for templates using {% if article.modified %} instead of {% if article.modified != article.published %} .
* Support for pygment defaults and relevant documentationSDGSDG2013-09-152-2/+30
|
* More exciting filesbmcorser2013-08-312-0/+0
|
* Adding placeholder files for regression testbmcorser2013-08-245-0/+0
|
* Added more pygments options for code blocksSDGSDG2013-08-051-0/+53
|
* fix py3 support for sourcecode directiveRuss Webber2013-08-051-0/+11
| | | | | added sourcecode to the functional test so it's tested *somewhere*. fixes #963
* Deliberate overriding of an existing file to testsRogdham2013-08-042-0/+16
| | | | | | | | | | | | Deliberate overriding via `save_as` metadata should be allowed, even after the overwrite detection feature. This commit is to add tests for deliberate overriding. As a result, the relevant tests *should fail* after this commit. Added a page and an article, both to override a tag, with very old dates so it limits the amount of diff in the generated pages. Overriding feature introduced by d0e9c52410e70e14008d2ef827ba7ac306243e72 Overwrite detection introduced by ff7410ce2ada85b486a67ae11874d60d135ff939
* samples: Remove EXTRA_PATH_METADATA entries for picturesW. Trevor King2013-06-152-4/+1
| | | | | | | | | | | | | I'd added them earlier to test that a configuration edit could preserve the original output locations. However, it is likely that you have quite a number of static files, and we shouldn't recommend listing explicit paths for all of them. With this configuration change, the pictures will be copied into the output directory using their original relative path (e.g. `pictures/Fat_Cat.jpg` without the `static`). Any |filename|-style links will be updated automatically. If you *want* the pictures to end up in a `static` directory, it's easier to just organize your source that way.
* Update sample configurations from FILES_TO_COPY to EXTRA_PATH_METADATAW. Trevor King2013-06-121-5/+13
|
* Change RELATIVE_URLS default to False - Fixes #829Justin Mayer2013-04-111-0/+3
|
* Merge pull request #623 from bbinet/url-save_as-overrideJustin Mayer2013-03-041-0/+9
|\ | | | | Override page 'url' and 'save_as' directly from the page metadata. Fixes #400.
| * add functional test for save_as/url overrideBruno Binet2012-12-071-0/+9
| | | | | | | | and update functional tests output
* | Port pelican to python 3.Dirk Makowski2013-01-111-4/+6
|/ | | | Stays compatible with 2.x series, thanks to an unified codebase.
* update functional tests to test TEMPLATE_PAGES featureBruno Binet2012-12-032-0/+9
| | | | closes #614: cannot reproduce this issue.
* add new file to functional test content to showcase FILENAME_METADATABruno Binet2012-12-031-0/+4
| | | | and update functional tests output
* Don't rewrite URLsBruno Binet2012-12-015-4/+10
| | | | | Remove the code that was appending ../static in front of some URLs, and add a way to do cross-content linking.
* Update the test sample config to set FEED_ALL_RSS instead of FEED_RSS (fixes ↵jawher2012-11-121-1/+1
| | | | the custom generation tests)
* Merge remote-tracking branch 'origin/master' into fix-functional-testsBruno Binet2012-07-051-0/+9
|\ | | | | | | | | Conflicts: tests/support.py
| * Add support for `status: hidden` in pagestBunnyMan2012-06-261-0/+9
| | | | | | | | Resolves #380 If the status metadata is set to 'hidden' on a page it is translated and rendered but not linked anywhere in the site.
* | fix test_custom_generation_works functional testBruno Binet2012-07-051-0/+1
| |
* | force locale to ascii in functional testsBruno Binet2012-05-191-1/+1
|/
* Add tests for pull request #262Justin Mayer2012-03-221-3/+1
|
* Allow for serving feeds from a separate domain.Justin Mayer2012-03-161-0/+1
| | | | | | This (indirectly) enables support for FeedBurner. Added docs for FeedBurner configuration. Clarify how defining the SITEURL attribute affects URL structure. Closes #177.
* add some more articles for the testsAlexis Metaireau2012-02-293-1/+19
|
* update the documentation to make timezone configuration clearerAlexis Metaireau2011-12-291-0/+2
|
* Add Pygments support to the default sourcecode directive.Alexis Metaireau2011-06-181-1/+1
| | | | It is now possible to have highlited sourcecode using the ``::`` syntax.
* Fix locale setup in settings.pyAlexis Metaireau2011-05-311-1/+1
|
* Basic test for the new rst reader. Locale is also converted to fr_FR.utf-8 ↵Mikhail Korobov2011-05-112-4/+6
| | | | (I wasn't able to run tests without this)
* Merge branch tests into main. (See #44)Alexis Metaireau2011-05-101-5/+9
|\ | | | | | | | | | | | | Conflicts: pelican/contents.py pelican/settings.py samples/pelican.conf.py
| * Tests for settings.Alexis Metaireau2011-01-131-5/+9
| |
* | Add the possibility to publish drafts. Fixes #111Alexis Metaireau2011-05-081-0/+7
| |
* | Add a feature to copy files from src to dest.Alexis Metaireau2011-05-072-0/+6
| | | | | | | | Fixes #86
* | Add a DEFAULT_METADATA setting.Alexis Metaireau2011-05-072-0/+4
| | | | | | | | It is now possible to have soem default metadata defined in the settings. Fixes #98
* | add a test metadata for #98Alexis Metaireau2011-04-211-0/+1
| |
* | add a markdown article for tests purposesAlexis Metaireau2011-04-201-0/+4
| |
* | Add a possibility to define the summary of an article directly in rst.Alexis Metaireau2011-03-081-0/+1
| |
* | Add some few test content.Alexis Metaireau2011-02-173-0/+18
| |
* | Pagination added for index and tag/category pagesLaureline Guerin2011-02-141-0/+1
| |