Justin Mayer
36ebe91af7
Rename default branch to main
2024-06-25 11:33:28 +02:00
boxydog
30bde3823f
ruff UP031 in files: use format specifiers instead of percent format
2024-06-01 16:00:17 -05:00
boxydog
7577dd7603
More ruff fixes in files: stop ignoring C408, UP007, PLR5501, B006
2024-05-30 13:21:12 -05:00
boxydog
9d30c5608a
Code changes for more ruff checks
2024-05-30 12:21:52 -05:00
boxydog
0bd02c00c0
Ruff v0.4.6 auto-fixes
2024-05-30 10:53:38 -05:00
boxydog
6d8597addb
The ruff and ruff-format fixes
2024-05-30 09:08:16 -05:00
GiovanH
0b5934a1fa
Feature: Add setting to append ref parameter to links in feeds ( #3249 )
2024-04-19 20:54:27 +02:00
Björn Ricks
f69e2cca6b
Add type hints for settings module
...
Types make it easier to understand the code and improve autocompletion
in IDEs.
2024-01-15 09:05:14 +01:00
Deniz Turgut
86d6898517
remove WRITE_SELECTED
...
Implementation is buggy and unreliable. Therefore, it is better to
remove the functionality until a robust implementation is added.
2023-11-12 19:43:26 +03:00
Justin Mayer
ecd598f293
Update code base for Python 3.8 and above
...
Result of: pipx run pyupgrade --py38-plus pelican/**/*.py
2023-11-12 13:53:02 +01:00
Chris Rose
cabdb26cee
Apply code style to project via: ruff format .
2023-10-29 22:18:29 +01:00
Justin Mayer
165d57eff5
Merge pull request #3127 from mart-e/no-inifinite-feed
2023-10-29 14:23:28 +01:00
Justin Mayer
e14f20bb99
Merge pull request #2758 from MinchinWeb/settings-pathlib-2
2023-10-28 21:56:34 +02:00
Justin Mayer
fab6e1a2c5
Fix warning re: future dates setting. Fixes #3184
2023-10-24 11:07:25 +02:00
FriedrichFroebel
ab9e55b398
Allow dataclasses in settings
2023-10-11 19:29:17 +02:00
Martin (mart-e)
bb682973fb
Don't specify unlimited feed size by default
...
Having a feed with hundreds of articles, making a very large file, is
rarely expected.
Set a high fallback value of 100 so it does not change for small sites.
Still allow to have infinite feed by setting FEED_MAX_ITEM = None
2023-05-13 06:53:51 +02:00
Victor Skvortsov
5c178a1ccb
Fix #2938
...
Get rid of the coerce_overrides() function.
Add the ParseOverrides argparse.Action to parse overrides.
Treat all extra settings values strictly as json values.
Test overrides.
Edit docs and cli help.
2022-02-09 06:05:50 -07:00
kernc
64fcdb5172
Rename setting SUMMARY_END_MARKER → SUMMARY_END_SUFFIX ( #2792 )
...
Avoids clash with 'summary' plugin.
Refs: https://github.com/getpelican/pelican-plugins/pull/1284#issuecomment-660715086
2020-08-19 20:25:19 +02:00
Justin Mayer
b769144a63
Support Booleans in --extra-settings. Refs #2789
2020-08-15 08:36:56 +02:00
Justin Mayer
45c5cb9029
Fix error in --extra-settings feature. Refs #2789
2020-08-13 12:07:58 +02:00
Peter Sabaini
1c50a18d0a
Override settings from the command line
...
Add a --setting-overrides KEY=VAL command line option to override
default settings or those defined in settings files. This adds
flexibility in running Pelican and helps reduce sprawl of settings
files. Cast int and str setting overrides to their respective types.
Support other setting types by treating them as JSON. Fall back to JSON
when an override typecast errors. This should make it possible to set
int values to None, resp. to JSON 'none'
2020-08-11 12:51:08 +02:00
MinchinWeb
a133716709
flake8 fixes
2020-05-21 21:43:06 -06:00
MinchinWeb
cfba3d72be
fix testing failures
...
when settings could be pathlib.Path
2020-05-21 21:13:02 -06:00
Justin Mayer
d0457dcfb8
Build settings paths as strings
...
… instead of `posix_join`. Fixes #2431
2020-05-18 06:35:33 +02:00
Justin Mayer
d43b786b30
Modernize code base to Python 3+ syntax
...
Replaces syntax that was relevant in earlier Python versions but that
now has modernized equivalents.
2020-04-27 09:45:31 +02:00
Justin Mayer
7e24886190
Merge pull request #2731 from avaris/unicode-slugify
...
Add support for Unicode slugs
2020-04-21 05:31:51 +02:00
Deniz Turgut
bd699d34e8
Expose preserve_case option from slugify
2020-04-21 00:26:00 +03:00
Justin Mayer
4a7cff7688
Fix anchor link to TIMEZONE settings documentation
2020-04-20 11:32:02 +02:00
Deniz Turgut
97fe235e60
Expose use_unicode setting of slugify in settings and use it
2020-04-19 20:21:00 +03:00
fancsali
f610801ee8
Add Typogrify/SmartyPants dashes config parameter ( #2615 )
2020-04-16 13:32:19 +02:00
Justin Mayer
7d19bcf5d4
Add settings for custom Jinja globals and tests ( #2715 )
...
Pelican has a setting for custom Jinja filters but not custom tests or
custom environment namespace globals. This adds both of the latter.
2020-04-12 17:03:53 +02:00
(GalaxyMaster)
e412657581
Added support for the summary end marker configuration
2020-04-11 15:35:26 +10:00
Deniz Turgut
a2053c34c3
Namespace plugin implementation
...
* Creates pelican.plugins
* Moves plugin related code under pelican.plugins
* pelican.plugins.signals is now the location for signals, pelican.signals is kept
for backwards compatibility
* pelican.plugins._utils contains necessary bits for plugin discovery and loading.
Logic from Pelican class is moved here. Pelican class now just asks for plugins
and registers them
* Contains tests for old and new plugin loading
2019-12-01 17:55:19 +03: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
7aa2f6c142
Merge pull request #2630 from andreagrandi/fix-default-bind-address
...
Set default listening address to 127.0.0.1
2019-10-05 10:29:46 -07:00
Andrea Grandi
b88b5f7b36
Set default binding addres to 127.0.0.1
2019-10-05 15:25:31 +02:00
Oliver Urs Lenz
2c8e7b3e6b
place all deprecated settings handling together
2019-10-04 22:39:57 +02:00
Lucas Cimon
367245cc47
Fix pelican.settings.load_source to avoid caching issues
2019-09-23 20:06:41 +02: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
Andrew Jorgensen
b1d44c1c87
Replace %s rather than fallback to defaults
...
3a0add4b6e caused existing configs to fall
back to defaults. But since we know exactly how to fix the user config
so that the behavior doesn't change, we should do so, while still
warning that use of %s is deprecated.
Also fixes a bug where we tried to look for %s in None.
2018-11-11 14:54:14 -08:00
Justin Mayer
7f7448ef76
Merge pull request #2439 from mosra/settings-paginated-templates-deprecation-fix
...
Fix PAGINATED_DIRECT_TEMPLATES backward compatibility handling to not crash
2018-11-11 17:40:09 +01:00
Deniz Turgut
74a2481bf3
settings: set backward-compatible PAGINATED_TEMPLATES if not present.
2018-11-11 13:59:48 +01:00
Justin Mayer
4d0de58409
Fix PyCodeStyle violations
2018-11-11 12:54:42 +01:00
MinchinWeb
a06fd61ffc
fix indent
...
The indent appears to have been messed up on the merge.
2018-11-03 11:09:17 -06: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
77c967f1db
control scope of identification of translations with new settings
2018-11-01 10:12:47 +01:00
Oliver Urs Lenz
a78950bce7
tweak paginator to accomodate {slug}.html patterns
2018-11-01 00:14:22 +01:00
Oliver Urs Lenz
5199fa51ea
control slug substitutions from settings with regex
2018-10-31 16:20:21 +01:00
Oliver Urs Lenz
62128fb948
control pagination per template
2018-07-12 17:39:51 +02:00