Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .pylintrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[MESSAGES CONTROL]
disable = broad-except, missing-docstring, multiple-imports, too-few-public-methods
disable = broad-except, missing-docstring, multiple-imports, too-few-public-methods, too-many-arguments, too-many-branches, too-many-locals, too-many-positional-arguments, wrong-import-order

[FORMAT]
max-line-length = 180
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,19 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## [1.0.6] - Not released yet

### Added

- new configuration setting `LINKBACKS_IGNORED_URLS_PATTERN` to define some URLs that should never be considered for linkbacks (_e.g._ `youtube.com`)
- manual execution mode: `python linkbacks.py $pelican_generated_html_file`

### Changed

- JSON cache structure evolved to now store the linkbacks requests status.
This is **not** backward-compatible, and the plugin will ask you to remove any pre-existing `pelican-plugin-linkbacks.json` file.
_cf._ [issue #2](https://github.com/pelican-plugins/linkbacks/issues/2)

## [1.0.5] - 2025-12-22

### Added
Expand Down
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,15 @@ where `$CACHE_PATH` is [a Pelican setting](https://docs.getpelican.com/en/latest
time in seconds allowed for each HTTP linkback request before abandon


## Manual execution
The `linkbacks.py` module can be used as script to test this plugin behavior:

export SITEURL=...
python path/to/pelican/plugins/linkbacks/linkbacks.py $pelican_generated_html_file

Optionally the `colorama` package can be installed to get colored logs in the output.


## Contributing

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

pylint *linkbacks.py
pylint pelican/plugins/linkbacks/
pytest

### Integration tests
Expand Down
Loading