mdrefcheck 0.1.3__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.

@@ -152,6 +152,12 @@ jobs:
152
152
  attestations: write
153
153
  steps:
154
154
  - uses: actions/checkout@v4
155
+
156
+ - name: Publish to crates.io
157
+ env:
158
+ CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN_PUBNEW }}
159
+ run: cargo publish --no-verify
160
+
155
161
  - uses: actions/download-artifact@v4
156
162
 
157
163
  - name: Generate artifact attestation
@@ -167,17 +173,12 @@ jobs:
167
173
  command: upload
168
174
  args: --non-interactive --skip-existing wheels-*/*
169
175
 
170
- - name: Publish to crates.io
171
- env:
172
- CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN_PUBNEW }}
173
- run: cargo publish --no-verify
174
-
175
176
  - name: Create GitHub Release
176
177
  uses: softprops/action-gh-release@v1
177
178
  with:
178
179
  name: Release ${{ github.ref_name }}
179
180
  tag_name: ${{ github.ref_name }}
180
- body_path: CHANGELOG.md
181
+ generate_release_notes: true
181
182
  files: wheels-*/*
182
183
  env:
183
184
  GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -0,0 +1,7 @@
1
+ - id: mdrefcheck
2
+ name: mdrefcheck
3
+ description: Validate references in Markdown files
4
+ entry: mdrefcheck
5
+ language: python
6
+ types: [markdown]
7
+ args: []
@@ -145,7 +145,7 @@ checksum = "7943c866cc5cd64cbc25b2e01621d07fa8eb2a1a23160ee81ce38704e97b8ecf"
145
145
 
146
146
  [[package]]
147
147
  name = "mdrefcheck"
148
- version = "0.1.3"
148
+ version = "0.1.6"
149
149
  dependencies = [
150
150
  "clap",
151
151
  "colored",
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "mdrefcheck"
3
- version = "0.1.3"
3
+ version = "0.1.6"
4
4
  edition = "2024"
5
5
  readme = "README.md"
6
6
  description = "A CLI tool to validate references in markdown files."
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mdrefcheck
3
- Version: 0.1.3
3
+ Version: 0.1.6
4
4
  Classifier: Development Status :: 4 - Beta
5
5
  Classifier: Environment :: Console
6
6
  Classifier: Intended Audience :: Developers
@@ -17,14 +17,12 @@ Author-email: gospodima <dimasc28@gmail.com>
17
17
  License-Expression: MIT
18
18
  Requires-Python: >=3.7
19
19
  Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
20
- Project-URL: Repository, https://gitlab.com/gospodima/mdrefcheck
20
+ Project-URL: Repository, https://github.com/gospodima/mdrefcheck
21
21
 
22
22
  # mdrefcheck
23
23
 
24
- **mdrefcheck** is a CLI tool to validate references and links in Markdown files (CommonMark spec).
25
- It helps ensure that your documentation is free from broken links, missing images, and invalid section anchors.
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
- From PyPI:
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,6 +1,6 @@
1
1
  [project]
2
2
  name = "mdrefcheck"
3
- version = "0.1.3"
3
+ version = "0.1.6"
4
4
  description = "A CLI tool to validate references in markdown files."
5
5
  readme = "README.md"
6
6
  authors = [
@@ -22,7 +22,7 @@ classifiers = [
22
22
  ]
23
23
 
24
24
  [project.urls]
25
- Repository = "https://gitlab.com/gospodima/mdrefcheck"
25
+ Repository = "https://github.com/gospodima/mdrefcheck"
26
26
 
27
27
  [build-system]
28
28
  requires = ["maturin>=1.0"]
@@ -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")]
@@ -1,42 +0,0 @@
1
- # Changelog
2
-
3
- ## [0.1.3] - 2025-09-14
4
-
5
- ### CI
6
-
7
- - Remove dist folder nesting on release
8
-
9
- ## [0.1.2] - 2025-09-14
10
-
11
- ### Documentation
12
-
13
- - Adjust repo and home links to github
14
-
15
- ### CI
16
-
17
- - Fix release steps
18
-
19
- ## [0.1.1] - 2025-09-14
20
-
21
- ### Documentation
22
-
23
- - Define manual changelog file
24
-
25
- ### Other
26
-
27
- - Upgrade deps
28
-
29
- ### Miscellaneous Tasks
30
-
31
- - Adjust pre-release-commit-message
32
-
33
- ## [0.1.0] - 2025-07-06
34
-
35
- ### Features
36
-
37
- - Initial commit
38
-
39
- ### Miscellaneous Tasks
40
-
41
- - Initial pipeline, release, LICENSE
42
-
@@ -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