mdrefcheck 0.2.0__py3-none-win32.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
Binary file
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: mdrefcheck
|
|
3
|
+
Version: 0.2.0
|
|
4
|
+
Classifier: Development Status :: 4 - Beta
|
|
5
|
+
Classifier: Environment :: Console
|
|
6
|
+
Classifier: Intended Audience :: Developers
|
|
7
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
8
|
+
Classifier: Programming Language :: Rust
|
|
9
|
+
Classifier: Programming Language :: Python :: 3
|
|
10
|
+
Classifier: Topic :: Documentation
|
|
11
|
+
Classifier: Topic :: Software Development :: Quality Assurance
|
|
12
|
+
Classifier: Topic :: Utilities
|
|
13
|
+
License-File: LICENSE
|
|
14
|
+
Summary: A CLI tool to validate references in markdown files.
|
|
15
|
+
Home-Page: https://github.com/gospodima/mdrefcheck
|
|
16
|
+
Author-email: gospodima <dimasc28@gmail.com>
|
|
17
|
+
License-Expression: MIT
|
|
18
|
+
Requires-Python: >=3.7
|
|
19
|
+
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
|
|
20
|
+
Project-URL: Repository, https://github.com/gospodima/mdrefcheck
|
|
21
|
+
|
|
22
|
+
# mdrefcheck
|
|
23
|
+
|
|
24
|
+
[](https://pypi.org/project/mdrefcheck/)
|
|
25
|
+
[](https://crates.io/crates/mdrefcheck)
|
|
26
|
+
[](https://github.com/gospodima/mdrefcheck/actions/workflows/ci.yml)
|
|
27
|
+
[](./LICENSE)
|
|
28
|
+
|
|
29
|
+
A CLI tool to validate references and links in Markdown files (CommonMark spec).
|
|
30
|
+
It helps to ensure that your documentation is free from broken section links, missing images or files.
|
|
31
|
+
|
|
32
|
+
## Features
|
|
33
|
+
|
|
34
|
+
- Validate local file paths in image and file references
|
|
35
|
+
- Check section links against actual headings, following [GitHub Flavored Markdown (GFM)](https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax#section-links) rules, including cross-file references (e.g. `./subfolder/another-file.md#heading-link`)
|
|
36
|
+
- Detect broken reference-style links
|
|
37
|
+
- Basic email validation
|
|
38
|
+
- Ignore files support via [ignore](https://docs.rs/ignore/latest/ignore/) crate.
|
|
39
|
+
|
|
40
|
+
## Installation
|
|
41
|
+
|
|
42
|
+
### Cargo
|
|
43
|
+
|
|
44
|
+
```bash
|
|
45
|
+
cargo install mdrefcheck
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
### PyPI
|
|
49
|
+
|
|
50
|
+
```bash
|
|
51
|
+
pip install mdrefcheck
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
or run it directly in an isolated environment, e.g., with `uvx`:
|
|
55
|
+
|
|
56
|
+
```bash
|
|
57
|
+
uvx mdrefcheck .
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
## Pre-commit integration
|
|
61
|
+
|
|
62
|
+
Add this to your `.pre-commit-config.yaml`:
|
|
63
|
+
|
|
64
|
+
```yaml
|
|
65
|
+
repos:
|
|
66
|
+
- repo: https://github.com/gospodima/mdrefcheck
|
|
67
|
+
rev: v0.2.0
|
|
68
|
+
hooks:
|
|
69
|
+
- id: mdrefcheck
|
|
70
|
+
```
|
|
71
|
+
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
mdrefcheck-0.2.0.data/scripts/mdrefcheck.exe,sha256=77u6cf4Ninyi0pxzLK3XhArmgL5p854ov3fXIOmoDN4,2673664
|
|
2
|
+
mdrefcheck-0.2.0.dist-info/METADATA,sha256=PZStLkxphh2e5OeVwWXjWAnuiwM4pAjgQYVpLiSlh9M,2511
|
|
3
|
+
mdrefcheck-0.2.0.dist-info/WHEEL,sha256=WDMAB4uGoBTLFFNNHYBIIVDGp2BkavHkkLG_raftdhA,90
|
|
4
|
+
mdrefcheck-0.2.0.dist-info/licenses/LICENSE,sha256=4xbeaKfLWZn51PYDdxgZUU3RzOszuGrYAuKvAh5ZK3U,1087
|
|
5
|
+
mdrefcheck-0.2.0.dist-info/RECORD,,
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 gospodima
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|