1
0
Fork 0
forked from github/pelican
Commit graph

2,108 commits

Author SHA1 Message Date
Lioman
84db21c724
Match actual version instead of regex in build CI job (#3396) 2024-09-20 14:46:29 +02:00
Lioman
86bf9230b4 test: fix build test
the regex, searching for the builded files was not stable to changes for two digit versions.

fixes: Build test failures in GitHub CI workflow #3393
2024-09-19 14:25:01 +02:00
Justin Mayer
84f2995b38
Merge pull request #3387 from gagath/optimize-taskspy-template 2024-09-12 13:33:38 +02:00
GiovanH
4201256a5b
Add disabled status for #3304 (#3305) 2024-09-12 13:28:51 +02:00
Agathe Porte
2d375bc135 tasks.py.jinja2: optimize imports
When opening the generated tasks.py file with a Python linter enabled,
some imports will be marked as unecessary depending on the options
passed to pelican-quickstart.

Add if statements around the optional imports so they are used
only when necessary.
2024-08-04 22:39:50 +09:00
Agathe
513abbfdc6
Introduce paragraph count summary (#2761)
Co-authored-by: Justin Mayer <entroP@gmail.com>
2024-06-25 15:07:41 +02:00
Justin Mayer
36ebe91af7 Rename default branch to main 2024-06-25 11:33:28 +02:00
Justin Mayer
6a50191728 Tweak Markdown-not-installed console warnings
Adding single-quotation marks should cause 'markdown' to be highlighted
in green, presumably via Rich.
2024-06-25 10:49:07 +02:00
Justin Mayer
f89f8894cc
Merge pull request #3321 from boxydog/warn_about_markdown 2024-06-25 10:10:34 +02:00
Tomasz Wojdat
5171631dec
chore: update URLs of GitHub Ribbons
Old URLs are no longer active. New ones were taken from GitHub blog:
https://github.blog/2008-12-19-github-ribbons/

Also update output in functional tests.
2024-06-19 19:11:41 +02:00
boxydog
f19de98b9e Log warnings about files that would have been processed by disabled readers 2024-06-17 09:30:55 -05:00
Justin Mayer
d83c5029b8
Merge pull request #3323 from boxydog/coverage 2024-06-16 19:30:10 +02:00
boxydog
b77bb690e2 Improve test coverage, docs, and .gitignore 2024-06-01 18:51:46 -05:00
boxydog
30bde3823f ruff UP031 in files: use format specifiers instead of percent format 2024-06-01 16:00:17 -05:00
boxydog
82b48fcfa1 Fixes in files for ruff T201, RUF001, PLR2004, B904, SLOT000, PYI024, PIE800 2024-05-31 10:41:24 -05:00
boxydog
9b77a9027b File fixes for ruff B007, RUF015, PLR1722 2024-05-31 08:48:44 -05:00
boxydog
4af40e8077 pre-commit filter auto-indents templates, css, js 2024-05-31 07:34:01 -05:00
boxydog
98bdd87dae Apply pre-commit filters to the files in pelican/tests/output 2024-05-31 07:21:40 -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
Clément Pit-Claudel
39c964450c
Choose logging handler via --log-handler CLI option (#3293) 2024-05-30 17:13:27 +02:00
boxydog
6d8597addb The ruff and ruff-format fixes 2024-05-30 09:08:16 -05:00
boxydog
1001dcb609 Fix test_deprecated_attribute failures in github tests 2024-05-29 16:36:20 -05:00
GiovanH
0b5934a1fa
Feature: Add setting to append ref parameter to links in feeds (#3249) 2024-04-19 20:54:27 +02:00
Deniz Turgut
666b962eb6
workaround Turkish locale issue 2024-04-19 21:08:26 +03:00
Justin Mayer
960aee5907
Merge pull request #3280 from MinchinWeb/summary-links 2024-01-29 15:06:18 +01:00
Justin Mayer
8a01cb11e1
Merge pull request #3276 from MinchinWeb/plugin-error-loading 2024-01-29 15:03:51 +01:00
MinchinWeb
1f14606f83 On failing to load a plugin, show the stacktrace is pelican is run in debug mode 2024-01-27 10:51:35 -07:00
MinchinWeb
f1f2ceccc7 Warning/error logging: be explicit in how the stacklevel variable is handled 2024-01-27 10:47:54 -07:00
MinchinWeb
c36ab07526 write back to ._summary 2024-01-26 16:31:22 -07:00
Justin Mayer
ff35d26cbc
Merge pull request #3264 from boxydog/medium_importer 2024-01-26 10:02:54 +01:00
Björn Ricks
e4807316ae
Add type hints for utils module
Types make it easier to understand the code and improve autocompletion
in IDEs.
2024-01-24 16:15:50 +01:00
Björn Ricks
3a662ace03
Add type hints for contents module
Types make it easier to understand the code and improve autocompletion
in IDEs.
2024-01-23 11:33:24 +01:00
namori
2fa5c515b0
Feeds - Update generators.py to fix a bug with slugs (#3279) 2024-01-23 09:43:07 +01:00
MinchinWeb
d39dd9b85f Resolve inter-site links in summaries.
c.f. https://github.com/getpelican/pelican/issues/3265
c.f. https://github.com/MinchinWeb/minchin.pelican.plugins.summary/issues/5
2024-01-21 23:13:21 -07:00
Justin Mayer
f2ab4a1dc1
Merge pull request #3251 from snosratiershad/support/new-line-at-end-of-scripts 2024-01-17 12:10:45 +01:00
Justin Mayer
def0899f10
Merge pull request #3267 from bjoernricks/setting-types 2024-01-17 09:44:42 +01:00
boxydog
d6a33f1d21 Medium post importer (from medium export) 2024-01-16 16:56:07 -06:00
Salar Nosrati-Ershad
b1cb6c7326
Use --no-jekyll flag when invoking ghp-import (#3259) 2024-01-15 11:10:12 +01:00
Salar Nosrati-Ershad
5e6dba73ac
Add Github Pages commit message variable (#3250) 2024-01-15 11:03:54 +01: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
MinchinWeb
f0beb81a97 Better error logging if a plugin refuses to load 2024-01-14 13:45:51 -07:00
MinchinWeb
4ed5c0d5b8 Log the original calling location, rather than the wrapper function 2023-11-25 20:57:40 -07:00
Salar Nosrati-Ershad
7466b13e0a fix: keep newline at the end of the file in tools
As referenced in Jinja documentation about whitespace control:
<https://jinja.palletsprojects.com/en/3.1.x/templates/#whitespace-control>
>  To keep single trailing newlines, configure Jinja to
>  `keep_trailing_newline`
I added this to our Jinja environment to keep EOL new line in tools
scripts
2023-11-22 22:54:42 +03:30
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
eca501ac1e
Merge pull request #3242 from pauloxnet/issues/2888 2023-11-12 16:04:28 +01:00
Paolo Melchiorre
db241feaa4
Fix #2888 -- Apply ruff and pyupgrade to templates 2023-11-12 15:06:02 +01: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
Paolo Melchiorre
6059675d55
Fix #3233 -- Simple theme classless semantic HTML 2023-11-11 14:10:08 +01:00