mdrefcheck 0.1.5__tar.gz → 0.1.6__tar.gz
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.
Potentially problematic release.
This version of mdrefcheck might be problematic. Click here for more details.
- {mdrefcheck-0.1.5 → mdrefcheck-0.1.6}/.github/workflows/ci.yml +1 -1
- mdrefcheck-0.1.6/.pre-commit-hooks.yaml +7 -0
- {mdrefcheck-0.1.5 → mdrefcheck-0.1.6}/Cargo.lock +1 -1
- {mdrefcheck-0.1.5 → mdrefcheck-0.1.6}/Cargo.toml +1 -1
- {mdrefcheck-0.1.5 → mdrefcheck-0.1.6}/PKG-INFO +35 -8
- mdrefcheck-0.1.6/README.md +50 -0
- {mdrefcheck-0.1.5 → mdrefcheck-0.1.6}/pyproject.toml +1 -1
- {mdrefcheck-0.1.5 → mdrefcheck-0.1.6}/release.toml +2 -1
- {mdrefcheck-0.1.5 → mdrefcheck-0.1.6}/src/config.rs +1 -3
- mdrefcheck-0.1.5/CHANGELOG.md +0 -54
- mdrefcheck-0.1.5/README.md +0 -23
- {mdrefcheck-0.1.5 → mdrefcheck-0.1.6}/.gitignore +0 -0
- {mdrefcheck-0.1.5 → mdrefcheck-0.1.6}/LICENSE +0 -0
- {mdrefcheck-0.1.5 → mdrefcheck-0.1.6}/rustfmt.toml +0 -0
- {mdrefcheck-0.1.5 → mdrefcheck-0.1.6}/src/checks/email.rs +0 -0
- {mdrefcheck-0.1.5 → mdrefcheck-0.1.6}/src/checks/image.rs +0 -0
- {mdrefcheck-0.1.5 → mdrefcheck-0.1.6}/src/checks/section.rs +0 -0
- {mdrefcheck-0.1.5 → mdrefcheck-0.1.6}/src/checks.rs +0 -0
- {mdrefcheck-0.1.5 → mdrefcheck-0.1.6}/src/diagnostics.rs +0 -0
- {mdrefcheck-0.1.5 → mdrefcheck-0.1.6}/src/lib.rs +0 -0
- {mdrefcheck-0.1.5 → mdrefcheck-0.1.6}/src/main.rs +0 -0
- {mdrefcheck-0.1.5 → mdrefcheck-0.1.6}/src/parser.rs +0 -0
- {mdrefcheck-0.1.5 → mdrefcheck-0.1.6}/src/scanner.rs +0 -0
- {mdrefcheck-0.1.5 → mdrefcheck-0.1.6}/src/utils.rs +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: mdrefcheck
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.6
|
|
4
4
|
Classifier: Development Status :: 4 - Beta
|
|
5
5
|
Classifier: Environment :: Console
|
|
6
6
|
Classifier: Intended Audience :: Developers
|
|
@@ -21,10 +21,8 @@ Project-URL: Repository, https://github.com/gospodima/mdrefcheck
|
|
|
21
21
|
|
|
22
22
|
# mdrefcheck
|
|
23
23
|
|
|
24
|
-
|
|
25
|
-
It helps ensure that your documentation is free from broken links, missing images
|
|
26
|
-
|
|
27
|
-
---
|
|
24
|
+
A CLI tool to validate references and links in Markdown files (CommonMark spec).
|
|
25
|
+
It helps to ensure that your documentation is free from broken section links, missing images or files.
|
|
28
26
|
|
|
29
27
|
## Features
|
|
30
28
|
|
|
@@ -33,13 +31,42 @@ It helps ensure that your documentation is free from broken links, missing image
|
|
|
33
31
|
- Identify broken reference-style links
|
|
34
32
|
- Email validation
|
|
35
33
|
|
|
36
|
-
---
|
|
37
|
-
|
|
38
34
|
## Installation
|
|
39
35
|
|
|
40
|
-
|
|
36
|
+
### Cargo
|
|
37
|
+
|
|
38
|
+
`mdrefcheck` is also published on [crates.io](https://crates.io/) and can be installed
|
|
39
|
+
with cargo:
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
cargo install mdrefcheck
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
### PyPI
|
|
46
|
+
|
|
47
|
+
`mdrefcheck` can be installed with
|
|
41
48
|
|
|
42
49
|
```bash
|
|
43
50
|
pip install mdrefcheck
|
|
44
51
|
```
|
|
45
52
|
|
|
53
|
+
It also can be used as a tool in an isolated environment, e.g., with `uvx`:
|
|
54
|
+
|
|
55
|
+
```bash
|
|
56
|
+
uvx mdrefcheck .
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
### Pre-commit integration
|
|
60
|
+
|
|
61
|
+
You can use `mdrefcheck` as a pre-commit hook.
|
|
62
|
+
|
|
63
|
+
Add this to your `.pre-commit-config.yaml`:
|
|
64
|
+
|
|
65
|
+
```yaml
|
|
66
|
+
repos:
|
|
67
|
+
- repo: https://github.com/gospodima/mdrefcheck
|
|
68
|
+
rev: v0.1.6
|
|
69
|
+
hooks:
|
|
70
|
+
- id: mdrefcheck
|
|
71
|
+
```
|
|
72
|
+
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
# mdrefcheck
|
|
2
|
+
|
|
3
|
+
A CLI tool to validate references and links in Markdown files (CommonMark spec).
|
|
4
|
+
It helps to ensure that your documentation is free from broken section links, missing images or files.
|
|
5
|
+
|
|
6
|
+
## Features
|
|
7
|
+
|
|
8
|
+
- Validate local file paths in image and section references
|
|
9
|
+
- Check section links (`#heading-link`) match existing headings according to [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
|
|
10
|
+
- Identify broken reference-style links
|
|
11
|
+
- Email validation
|
|
12
|
+
|
|
13
|
+
## Installation
|
|
14
|
+
|
|
15
|
+
### Cargo
|
|
16
|
+
|
|
17
|
+
`mdrefcheck` is also published on [crates.io](https://crates.io/) and can be installed
|
|
18
|
+
with cargo:
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
cargo install mdrefcheck
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
### PyPI
|
|
25
|
+
|
|
26
|
+
`mdrefcheck` can be installed with
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
pip install mdrefcheck
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
It also can be used as a tool in an isolated environment, e.g., with `uvx`:
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
uvx mdrefcheck .
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
### Pre-commit integration
|
|
39
|
+
|
|
40
|
+
You can use `mdrefcheck` as a pre-commit hook.
|
|
41
|
+
|
|
42
|
+
Add this to your `.pre-commit-config.yaml`:
|
|
43
|
+
|
|
44
|
+
```yaml
|
|
45
|
+
repos:
|
|
46
|
+
- repo: https://github.com/gospodima/mdrefcheck
|
|
47
|
+
rev: v0.1.6
|
|
48
|
+
hooks:
|
|
49
|
+
- id: mdrefcheck
|
|
50
|
+
```
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
pre-release-replacements = [
|
|
2
|
-
{file="pyproject.toml", search='version = "[a-z0-9\\.-]+"', replace='version = "{{version}}"'}
|
|
2
|
+
{file="pyproject.toml", search='version = "[a-z0-9\\.-]+"', replace='version = "{{version}}"'},
|
|
3
|
+
{file="README.md", search='rev: v[a-z0-9\\.-]+', replace='rev: v{{version}}'}
|
|
3
4
|
]
|
|
4
5
|
pre-release-commit-message = "chore(release): prepare for {{version}}"
|
|
@@ -3,11 +3,9 @@ use std::path::PathBuf;
|
|
|
3
3
|
use clap::Parser;
|
|
4
4
|
use regex::Regex;
|
|
5
5
|
|
|
6
|
-
// TODO: add dir exclusion similar to files
|
|
7
|
-
|
|
8
6
|
/// CLI configuration for mdrefcheck
|
|
9
7
|
#[derive(Parser, Debug)]
|
|
10
|
-
#[command(name = "mdrefcheck", about = "Check markdown references.")]
|
|
8
|
+
#[command(name = "mdrefcheck", about = "Check markdown references.", version)]
|
|
11
9
|
pub struct CliConfig {
|
|
12
10
|
/// Paths to check
|
|
13
11
|
#[arg(required = true, value_name = "PATH")]
|
mdrefcheck-0.1.5/CHANGELOG.md
DELETED
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
# Changelog
|
|
2
|
-
|
|
3
|
-
## [0.1.4] - 2025-09-14
|
|
4
|
-
|
|
5
|
-
### CI
|
|
6
|
-
|
|
7
|
-
- Move cargo pyblish before artifacts staff
|
|
8
|
-
|
|
9
|
-
## [0.1.3] - 2025-09-14
|
|
10
|
-
|
|
11
|
-
### CI
|
|
12
|
-
|
|
13
|
-
- Put artifacts outside of repo to prevent dirty issues
|
|
14
|
-
|
|
15
|
-
## [0.1.3] - 2025-09-14
|
|
16
|
-
|
|
17
|
-
### CI
|
|
18
|
-
|
|
19
|
-
- Remove dist folder nesting on release
|
|
20
|
-
|
|
21
|
-
## [0.1.2] - 2025-09-14
|
|
22
|
-
|
|
23
|
-
### Documentation
|
|
24
|
-
|
|
25
|
-
- Adjust repo and home links to github
|
|
26
|
-
|
|
27
|
-
### CI
|
|
28
|
-
|
|
29
|
-
- Fix release steps
|
|
30
|
-
|
|
31
|
-
## [0.1.1] - 2025-09-14
|
|
32
|
-
|
|
33
|
-
### Documentation
|
|
34
|
-
|
|
35
|
-
- Define manual changelog file
|
|
36
|
-
|
|
37
|
-
### Other
|
|
38
|
-
|
|
39
|
-
- Upgrade deps
|
|
40
|
-
|
|
41
|
-
### Miscellaneous Tasks
|
|
42
|
-
|
|
43
|
-
- Adjust pre-release-commit-message
|
|
44
|
-
|
|
45
|
-
## [0.1.0] - 2025-07-06
|
|
46
|
-
|
|
47
|
-
### Features
|
|
48
|
-
|
|
49
|
-
- Initial commit
|
|
50
|
-
|
|
51
|
-
### Miscellaneous Tasks
|
|
52
|
-
|
|
53
|
-
- Initial pipeline, release, LICENSE
|
|
54
|
-
|
mdrefcheck-0.1.5/README.md
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
# mdrefcheck
|
|
2
|
-
|
|
3
|
-
**mdrefcheck** is a CLI tool to validate references and links in Markdown files (CommonMark spec).
|
|
4
|
-
It helps ensure that your documentation is free from broken links, missing images, and invalid section anchors.
|
|
5
|
-
|
|
6
|
-
---
|
|
7
|
-
|
|
8
|
-
## Features
|
|
9
|
-
|
|
10
|
-
- Validate local file paths in image and section references
|
|
11
|
-
- Check section links (`#heading-link`) match existing headings according to [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
|
|
12
|
-
- Identify broken reference-style links
|
|
13
|
-
- Email validation
|
|
14
|
-
|
|
15
|
-
---
|
|
16
|
-
|
|
17
|
-
## Installation
|
|
18
|
-
|
|
19
|
-
From PyPI:
|
|
20
|
-
|
|
21
|
-
```bash
|
|
22
|
-
pip install mdrefcheck
|
|
23
|
-
```
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|