Lint
Check site consistency.
lint(opt)
Main driver.
Source code in mccole/lint.py
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 |
|
check_file_references(files)
Check inter-file references.
Source code in mccole/lint.py
48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 |
|
lint_bibliography_references(opt, sections, extras)
Check bibliography references.
Source code in mccole/lint.py
65 66 67 68 69 70 71 |
|
lint_figure_numbers(opt, sections, extras)
Check figure numbering.
Source code in mccole/lint.py
74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 |
|
lint_figure_references(opt, sections, extras)
Check figure references.
Source code in mccole/lint.py
108 109 110 |
|
lint_glossary_redefinitions(opt, sections, extras)
Check glossary redefinitions.
Source code in mccole/lint.py
113 114 115 116 117 118 119 120 121 122 123 124 125 126 |
|
lint_glossary_references(opt, sections, extras)
Check glossary references.
Source code in mccole/lint.py
129 130 131 132 133 134 135 |
|
lint_link_definitions(opt, sections, extras)
Check that Markdown files define the links they use.
Source code in mccole/lint.py
138 139 140 141 142 143 144 145 |
|
lint_markdown_links(opt, sections, extras)
Check consistency of Markdown links.
Source code in mccole/lint.py
148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 |
|
lint_table_references(opt, sections, extras)
Check figure references.
Source code in mccole/lint.py
166 167 168 |
|
parse_args(parser)
Parse command-line arguments.
Source code in mccole/lint.py
171 172 173 174 175 176 |
|
_check_object_refs(sections, kind, pattern_def, pattern_ref)
Check for figure and table references within each Markdown file.
Source code in mccole/lint.py
179 180 181 182 183 184 185 186 |
|
_check_references(sections, term, regexp, available)
Check all Markdown files for cross-references.
Source code in mccole/lint.py
189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 |
|
_is_missing(actual, available)
Is a file missing?
Source code in mccole/lint.py
209 210 211 212 213 |
|
_is_special_link(link)
Is this link handled specially?
Source code in mccole/lint.py
216 217 218 |
|
_report_diff(msg, refs, defs)
Report differences if any.
Source code in mccole/lint.py
221 222 223 224 225 226 227 228 |
|
_resolve_path(source, dest)
Account for '..' in paths.
Source code in mccole/lint.py
231 232 233 234 235 236 237 |
|