Check
Check site.
check(options)
Check the site.
Source code in src/mccole/check.py
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 | |
_check_all_html(pages)
Validate generated HTML.
Source code in src/mccole/check.py
45 46 47 48 | |
_check_cross_references(options, pages, kind)
Check that all cross-references match entries.
Source code in src/mccole/check.py
51 52 53 54 55 56 57 58 59 60 | |
_check_figure_structure(options, filepath, doc)
Check that all figures have IDs and captions.
Source code in src/mccole/check.py
63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 | |
_check_glossary_redefinitions(pages)
Check for glossary terms that are defined more than once.
Source code in src/mccole/check.py
80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 | |
_check_single_h1(options, filepath, doc)
Check that all pages have a single H1.
Source code in src/mccole/check.py
98 99 100 101 | |
_check_table_structure(options, filepath, doc)
Check that all tables have proper structure and IDs.
Source code in src/mccole/check.py
104 105 106 107 108 109 110 111 112 113 114 115 116 | |
_check_unknown_links(options, filepath, doc)
Look for unresolved Markdown links.
Source code in src/mccole/check.py
119 120 121 122 123 124 125 126 127 | |
_get_crossref_definitions(options, pages, kind)
Get set of known cross-reference keys.
Source code in src/mccole/check.py
130 131 132 133 134 135 136 137 138 139 140 | |
_require(filepath, condition, message)
Manage warning messages.
Source code in src/mccole/check.py
143 144 145 146 147 | |