Check
Check site.
check(options)
Check the site.
Source code in mccole/check.py
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 | |
_check_all_html(options, pages)
Validate generated HTML.
Source code in mccole/check.py
55 56 57 58 59 | |
_check_bibliography_alphabetical(options, pages)
Check that bibliography keys are in alphabetical order.
Source code in mccole/check.py
62 63 64 65 66 67 68 | |
_check_glossary_alphabetical(options, pages)
Check that glossary terms are in alphabetical order by lower-case term text.
Source code in mccole/check.py
71 72 73 74 75 76 77 78 79 | |
_check_cross_references(options, pages, kind)
Check that all cross-references match entries.
Source code in mccole/check.py
82 83 84 85 86 87 88 89 90 91 | |
_check_element_structure(filepath, doc, selector, kind, caption_selector, pattern)
Check that figure-like elements have IDs and captions.
Source code in mccole/check.py
94 95 96 97 98 99 100 101 102 103 104 105 106 107 | |
_check_empty_inclusions(options, filepath, doc)
Report %inc inclusions whose generated content is only whitespace.
Source code in mccole/check.py
110 111 112 113 114 115 116 117 | |
_check_figure_structure(options, filepath, doc)
Check that all figures have IDs and captions.
Source code in mccole/check.py
120 121 122 123 124 | |
_check_glossary_redefinitions(pages)
Check for glossary terms that are defined more than once.
Source code in mccole/check.py
127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 | |
_check_single_h1(options, filepath, doc)
Check that all pages have a single H1.
Source code in mccole/check.py
145 146 147 148 | |
_check_table_structure(options, filepath, doc)
Check that all tables have proper structure and IDs.
Source code in mccole/check.py
151 152 153 154 155 | |
_check_unknown_links(options, filepath, doc)
Look for unresolved Markdown links.
Source code in mccole/check.py
158 159 160 161 162 163 164 165 166 | |
_check_tabs_in_markdown(options)
Report tab characters in Markdown source files.
Source code in mccole/check.py
169 170 171 172 173 174 175 176 177 178 179 180 181 | |
_get_glossary_term_texts(options, pages)
Get glossary term texts (not IDs) in document order.
Source code in mccole/check.py
184 185 186 187 188 189 190 | |
_get_crossref_definitions(options, pages, kind)
Get set of known cross-reference keys.
Source code in mccole/check.py
193 194 195 196 197 198 199 | |
_get_crossref_usage(pages, kind)
Get the set of referenced keys for one cross-reference kind.
Source code in mccole/check.py
202 203 204 205 206 207 208 209 210 211 212 213 214 | |
_check_bibliography_key_mismatch(options, pages)
Check that each bibliography span id matches its text content.
Source code in mccole/check.py
217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 | |
_check_bibliography_bare_isbns(options, pages)
Warn about ISBN strings in bibliography definitions that are not hyperlinked.
Source code in mccole/check.py
239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 | |
_check_unused_crossref_definitions(options, pages, kind)
Report defined cross-reference entries that are never referenced.
Source code in mccole/check.py
257 258 259 260 261 262 | |
_require(filepath, condition, message)
Manage warning messages.
Source code in mccole/check.py
265 266 267 268 269 | |