-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Fix docstrings to properly appear in the docs - Add release notes for new version. - Add multiprocessing for broken urls decreasing execution time by 50%. - Add Advanced Usage Documentation - Add docs for reports
- Loading branch information
1 parent
b2bd651
commit 15b9992
Showing
21 changed files
with
183 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
## Advanced Usage | ||
|
||
To further customize your experience with the Markdown Checker, you can utilize additional command-line interface (CLI) options. | ||
|
||
## Command Line Options | ||
|
||
### `-d`, `--dir` | ||
- **Type**: `click.Path` | ||
- **Description**: Path to the root directory to check. | ||
- **Required**: Yes | ||
|
||
### `-ext`, `--extensions` | ||
- **Type**: `list[str]` | ||
- **Description**: File extensions to filter the files. | ||
- **Default**: | ||
- `.md` | ||
- `.ipynb` | ||
- **Required**: Yes | ||
|
||
### `-td`, `--tracking-domains` | ||
- **Type**: `list[str]` | ||
- **Description**: List of tracking domains to check if they have a tracking id or not. | ||
- **Default**: | ||
- `github.com` | ||
- `microsoft.com` | ||
- `visualstudio.com` | ||
- `aka.ms` | ||
- `azure.com` | ||
- **Required**: Yes | ||
|
||
### `-sf`, `--skip-files` | ||
- **Type**: `list[str]` | ||
- **Description**: List of file names to skip check. | ||
- **Default**: | ||
- `CODE_OF_CONDUCT.md` | ||
- `SECURITY.md` | ||
- **Required**: Yes | ||
|
||
### `-sd`, `--skip-domains` | ||
- **Type**: `list[str]` | ||
- **Description**: List of domains to skip checking if their urls are working or not. | ||
- **Default**: `[]` | ||
- **Required**: No | ||
|
||
### `-suc`, `--skip-urls-containing` | ||
- **Type**: `list[str]` | ||
- **Description**: List of strings to skip checking if their urls are working or not. | ||
- **Default**: | ||
- `https://www.microsoft.com/en-us/security/blog` | ||
- `video-embed.html` | ||
- **Required**: No | ||
|
||
### `-gu`, `--guide-url` | ||
- **Type**: `str` | ||
- **Description**: Full URL of your contributing guide. | ||
- **Required**: Yes | ||
|
||
### `-to`, `--timeout` | ||
- **Type**: `int` | ||
- **Description**: Timeout in seconds for the requests before retrying. | ||
- **Default**: `10` | ||
- **Required**: No | ||
|
||
### `-rt`, `--retries` | ||
- **Type**: `int` | ||
- **Description**: Number of retries for the requests before flagging a url as broken. | ||
- **Default**: `3` | ||
- **Required**: No | ||
|
||
### `-o`, `--output-file-name` | ||
- **Type**: `str` | ||
- **Description**: Name of the output file. | ||
- **Default**: `comments` | ||
- **Required**: Yes | ||
|
||
|
||
## Other Options | ||
|
||
### `--version` | ||
- **Type**: `bool` | ||
- **Description**: Show the version and exit. | ||
- **Required**: No | ||
|
||
### `--help` | ||
- **Type**: `bool` | ||
- **Description**: Show the help message and exit. | ||
- **Required**: No |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
- [Main](./api/main.md) | ||
- [Urls](./api/urls.md) | ||
- [Paths](./api/paths.md) | ||
- [Markdown Link Base](./api/markdown_link_base.md) | ||
- [Utilities](./api/utils.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
::: markdown_checker |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
::: markdown_checker.markdown_link_base |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
::: markdown_checker.paths |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
::: markdown_checker.reports.md_reports.generator | ||
|
||
::: markdown_checker.reports.generator_base |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
::: markdown_checker.urls |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
::: markdown_checker.utils.extract_links | ||
|
||
::: markdown_checker.utils.format_output | ||
|
||
::: markdown_checker.utils.list_files | ||
|
||
::: markdown_checker.utils.spinner |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
[project] | ||
name = "markdown-checker" | ||
description= "A markdown link validation reporting tool" | ||
version = "0.1.5" | ||
description= "A markdown link validation reporting tool." | ||
version = "0.2.0" | ||
authors = [{ name = "John Aziz", email = "[email protected]" }] | ||
maintainers = [{ name = "John Aziz", email = "[email protected]" }] | ||
license = {file = "LICENSE"} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters