Build
Convert Markdown to HTML.
build(opt)
Main driver.
Source code in mccole/build.py
30 31 32 33 34 35 36 37 38 39 40 41 42 43 |
|
choose_template(env, source)
Select a template.
Source code in mccole/build.py
46 47 48 49 50 |
|
do_bibliography_links(doc, source, context)
Turn 'b:key' links into bibliography references.
Source code in mccole/build.py
53 54 55 56 57 |
|
do_cross_links(doc, source, context)
Fix .md links in HTML.
Source code in mccole/build.py
60 61 62 63 64 65 66 |
|
do_glossary(doc, source, context)
Turn 'g:key' links into glossary references and insert list of terms.
Source code in mccole/build.py
69 70 71 72 73 74 75 76 77 |
|
do_inclusion_classes(doc, source, context)
Adjust classes of file inclusions.
Source code in mccole/build.py
80 81 82 83 84 85 86 87 88 |
|
do_title(doc, source, context)
Make sure title element is filled in.
Source code in mccole/build.py
91 92 93 94 95 96 97 |
|
do_root_path_prefix(doc, source, context)
Fix @root links in HTML.
Source code in mccole/build.py
100 101 102 103 104 105 106 107 108 109 110 111 112 |
|
handle_also_html(env, opt, config, files)
Handle files that are also saved as HTML files.
Source code in mccole/build.py
115 116 117 118 119 120 121 122 123 |
|
handle_markdown(env, opt, config, files)
Handle Markdown files.
Source code in mccole/build.py
126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 |
|
handle_others(env, opt, config, files)
Handle copy-only files.
Source code in mccole/build.py
144 145 146 147 148 |
|
insert_defined_terms(doc, source, seen, context)
Insert list of defined terms.
Source code in mccole/build.py
151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 |
|
make_output_path(output_dir, renames, source)
Build output path.
Source code in mccole/build.py
172 173 174 175 176 177 |
|
parse_args(parser)
Parse command-line arguments.
Source code in mccole/build.py
180 181 182 183 184 185 186 187 |
|
render_markdown(env, opt, source, content, context={})
Convert Markdown to HTML.
Source code in mccole/build.py
190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 |
|
split_files(files)
Divide files into categories.
Source code in mccole/build.py
214 215 216 217 218 219 220 221 222 223 224 225 226 |
|