Broken Links
Find all the broken links!
Broken Links helps you detect broken links in your Lektor site. It will warn you about broken internal and external HTTP links.
Goals
- Fast - Less than 1 second to check sites with hundreds of pages.
- Simple - Install on your site and it quietly runs on every build.
Getting Started
Broken Links depends on the following packages...
mistune >= 0.7.0, <2click >= 7.0furl >= 2.1.0
...which can be easily installed with...
$ pip install mistune click furl
Once dependencies are installed, you can add Broken Links to your Lektor project with...
$ lektor plugins add lektor-broken-links
Alternatively Broken Links can be installed manually by copying the plugin folder into packages/.
Once Broken Links is installed, run lektor build or lektor server. Any broken internal links will be printed in the build output, along with the page they were found on.
broken-links-tests$ lektor build
Started build
Started link check
Found 2 broken links in '/':
/none
./none
Found 1 broken link in '/nested':
../none
Finished link check in 0.02 sec
Finished build in 0.03 sec
Started prune
Finished prune in 0.00 sec
Example output from building the test site.
Contributing
Thank you for your interest in this project! If you find a bug or have an idea for an awesome new feature please open an issue. Pull Requests which help close issues are welcome!
Release files for lektor-broken-links 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| lektor-broken-links-0.2.0.tar.gz | 4.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| lektor_broken_links-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.1 kB
Release files / lektor-broken-links-0.2.0.tar.gz
| Download URL | lektor-broken-links-0.2.0.tar.gz |
|---|---|
| Size | 4.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
79b5e217e4896abf091bc185f60c7cac6dfc7039dc8d6b822e08d46b6cdc5e5c
|
|
BLAKE2b-256 checksum How to use checksums |
9eac3eff3f258cf18cf36f5838a03112c1d33279efa87360ac6012598c115b40
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.7
|
Release files / lektor_broken_links-0.2.0-py3-none-any.whl
| Download URL | lektor_broken_links-0.2.0-py3-none-any.whl |
|---|---|
| Size | 4.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e08ab1c07ad304e6d2510dd6a60cbb78ad95e799e833843dc58565951c187cc3
|
|
BLAKE2b-256 checksum How to use checksums |
1a91fd0b791951b6faa9bcdc34b2068b0f1f0d93379e9a4c76b56864336e6ab1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.7
|