|
| 1 | +<!-- markdownlint-disable MD041 --> |
1 | 2 | ## Advanced Usage
|
2 | 3 |
|
3 | 4 | To further customize your experience with the Markdown Checker, you can utilize additional command-line interface (CLI) options.
|
4 | 5 |
|
5 | 6 | ## Command Line Options
|
6 | 7 |
|
7 | 8 | ### `-d`, `--dir`
|
| 9 | + |
8 | 10 | - **Type**: `click.Path`
|
9 | 11 | - **Description**: Path to the root directory to check.
|
10 | 12 | - **Required**: Yes
|
11 | 13 |
|
12 | 14 | ### `-f`, `--func`
|
| 15 | + |
13 | 16 | - **Type**: `click.Choice`
|
14 | 17 | - **Description**: Function to be executed.
|
15 | 18 | - **Choices**:
|
16 |
| - - `check_broken_paths` |
17 |
| - - `check_broken_urls` |
18 |
| - - `check_paths_tracking` |
19 |
| - - `check_urls_tracking` |
20 |
| - - `check_urls_locale` |
| 19 | + - `check_broken_paths` |
| 20 | + - `check_broken_urls` |
| 21 | + - `check_paths_tracking` |
| 22 | + - `check_urls_tracking` |
| 23 | + - `check_urls_locale` |
21 | 24 | - **Required**: Yes
|
22 | 25 |
|
23 | 26 | ### `-ext`, `--extensions`
|
| 27 | + |
24 | 28 | - **Type**: `list[str]`
|
25 | 29 | - **Description**: File extensions to filter the files.
|
26 |
| -- **Default**: |
27 |
| - - `.md` |
28 |
| - - `.ipynb` |
| 30 | +- **Default**: |
| 31 | + - `.md` |
| 32 | + - `.ipynb` |
29 | 33 | - **Required**: No
|
30 | 34 |
|
31 | 35 | ### `-td`, `--tracking-domains`
|
| 36 | + |
32 | 37 | - **Type**: `list[str]`
|
33 | 38 | - **Description**: List of tracking domains to check.
|
34 |
| -- **Default**: |
35 |
| - - `github.com` |
36 |
| - - `microsoft.com` |
37 |
| - - `visualstudio.com` |
38 |
| - - `aka.ms` |
39 |
| - - `azure.com` |
| 39 | +- **Default**: |
| 40 | + - `github.com` |
| 41 | + - `microsoft.com` |
| 42 | + - `visualstudio.com` |
| 43 | + - `aka.ms` |
| 44 | + - `azure.com` |
40 | 45 | - **Required**: No
|
41 | 46 |
|
42 | 47 | ### `-sf`, `--skip-files`
|
| 48 | + |
43 | 49 | - **Type**: `list[str]`
|
44 | 50 | - **Description**: List of file names to skip check.
|
45 |
| -- **Default**: |
46 |
| - - `CODE_OF_CONDUCT.md` |
47 |
| - - `SECURITY.md` |
| 51 | +- **Default**: |
| 52 | + - `CODE_OF_CONDUCT.md` |
| 53 | + - `SECURITY.md` |
48 | 54 | - **Required**: No
|
49 | 55 |
|
50 | 56 | ### `-sd`, `--skip-domains`
|
| 57 | + |
51 | 58 | - **Type**: `list[str]`
|
52 | 59 | - **Description**: List of domains to skip checking.
|
53 | 60 | - **Default**: `[]`
|
54 | 61 | - **Required**: No
|
55 | 62 |
|
56 | 63 | ### `-suc`, `--skip-urls-containing`
|
| 64 | + |
57 | 65 | - **Type**: `list[str]`
|
58 | 66 | - **Description**: List of strings to skip checking if their urls are working or not.
|
59 |
| -- **Default**: |
60 |
| - - `https://www.microsoft.com/en-us/security/blog` |
61 |
| - - `video-embed.html` |
| 67 | +- **Default**: |
| 68 | + - `https://www.microsoft.com/en-us/security/blog` |
| 69 | + - `video-embed.html` |
62 | 70 | - **Required**: No
|
63 | 71 |
|
64 | 72 | ### `-gu`, `--guide-url`
|
| 73 | + |
65 | 74 | - **Type**: `str`
|
66 | 75 | - **Description**: Full URL of your contributing guide.
|
67 | 76 | - **Required**: No
|
68 | 77 |
|
69 | 78 | ### `-to`, `--timeout`
|
| 79 | + |
70 | 80 | - **Type**: `Click.IntRange`
|
71 | 81 | - **Description**: Timeout in seconds for the requests before retrying.
|
72 |
| -- **Default**: `10` |
| 82 | +- **Default**: `15` |
73 | 83 | - **Range**: `0-50`
|
74 | 84 | - **Required**: No
|
75 | 85 |
|
76 | 86 | ### `-rt`, `--retries`
|
| 87 | + |
77 | 88 | - **Type**: `Click.IntRange`
|
78 | 89 | - **Description**: Number of retries for the requests before flagging a url as broken.
|
79 | 90 | - **Default**: `3`
|
80 | 91 | - **Range**: `0-10`
|
81 | 92 | - **Required**: No
|
82 | 93 |
|
83 | 94 | ### `-o`, `--output-file-name`
|
| 95 | + |
84 | 96 | - **Type**: `str`
|
85 | 97 | - **Description**: Name of the output file.
|
86 | 98 | - **Default**: `comment`
|
87 | 99 | - **Required**: No
|
88 | 100 |
|
89 | 101 | ### `SRC ...`
|
| 102 | + |
90 | 103 | - **Type**: `click.Path`
|
91 | 104 | - **Description**: Source files or directories to check.
|
92 | 105 | - **Required**: No
|
93 | 106 |
|
94 | 107 | ## Other Options
|
95 | 108 |
|
96 | 109 | ### `--version`
|
| 110 | + |
97 | 111 | - **Type**: `bool`
|
98 | 112 | - **Description**: Show the version and exit.
|
99 | 113 | - **Required**: No
|
100 | 114 |
|
101 | 115 | ### `--help`
|
| 116 | + |
102 | 117 | - **Type**: `bool`
|
103 | 118 | - **Description**: Show the help message and exit.
|
104 | 119 | - **Required**: No
|
0 commit comments