Skip to content

Commit ee3aeb2

Browse files
committed
JSON cache structure evolved to now store the linkbacks requests status - fix #2
1 parent 41b3af6 commit ee3aeb2

File tree

5 files changed

+303
-96
lines changed

5 files changed

+303
-96
lines changed

.pylintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[MESSAGES CONTROL]
2-
disable = broad-except, missing-docstring, multiple-imports, too-few-public-methods
2+
disable = broad-except, missing-docstring, multiple-imports, too-few-public-methods, too-many-arguments, too-many-locals, too-many-positional-arguments
33

44
[FORMAT]
55
max-line-length = 180

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,18 @@ All notable changes to this project will be documented in this file.
77
The format is based on [Keep a Changelog](http://keepachangelog.com/)
88
and this project adheres to [Semantic Versioning](http://semver.org/).
99

10+
## [1.0.6] - Not released yet
11+
12+
### Added
13+
14+
- manual execution mode: `python linkbacks.py $pelican_generated_html_file`
15+
16+
### Changed
17+
18+
- JSON cache structure evolved to now store the linkbacks requests status.
19+
This is **not** backward-compatible, and the plugin will ask you to remove any pre-existing `pelican-plugin-linkbacks.json` file.
20+
_cf._ [issue #2](https://github.com/pelican-plugins/linkbacks/issues/2)
21+
1022
## [1.0.5] - 2025-12-22
1123

1224
### Added

README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,15 @@ where `$CACHE_PATH` is [a Pelican setting](https://docs.getpelican.com/en/latest
7878
time in seconds allowed for each HTTP linkback request before abandon
7979

8080

81+
## Manual execution
82+
The `linkbacks.py` module can be used as script to test this plugin behavior:
83+
84+
export SITEURL=...
85+
python path/to/pelican/plugins/linkbacks/linkbacks.py $pelican_generated_html_file
86+
87+
Optionally the `colorama` package can be installed to get colored logs in the output.
88+
89+
8190
## Contributing
8291

8392
Contributions are welcome and much appreciated. Every little bit helps. You can contribute by improving the documentation,
@@ -99,7 +108,7 @@ With a valid configuration in `~/.config/pypoetry/`:
99108
## Linter & tests
100109
To execute them:
101110

102-
pylint *linkbacks.py
111+
pylint pelican/plugins/linkbacks/
103112
pytest
104113

105114
### Integration tests

0 commit comments

Comments
 (0)