Build HTML site from source files.
build(opt)
Main driver.
Source code in mccole/build.py
14 15 16 17 18 19 |
|
construct_parser(parser)
Parse command-line arguments.
Source code in mccole/build.py
22 23 24 25 26 27 28 |
|
_do_bibliography_links(opt, dest, doc)
Handle 'b:' bibliography links.
Source code in mccole/build.py
31 32 33 34 35 36 37 38 39 |
|
_do_glossary_links(opt, dest, doc)
Handle 'g:' glossary links.
Source code in mccole/build.py
42 43 44 45 46 47 48 49 |
|
_do_root_links(opt, dest, doc)
Handle '@/' links.
Source code in mccole/build.py
52 53 54 55 56 57 58 59 60 61 62 63 64 |
|
_do_title(opt, dest, doc)
Make sure title element is filled in.
Source code in mccole/build.py
67 68 69 70 71 72 73 74 |
|
_find_files(opt)
Collect all interesting files.
Source code in mccole/build.py
77 78 79 80 81 |
|
_handle_markdown(opt, files)
Handle Markdown files.
Source code in mccole/build.py
84 85 86 87 88 89 90 |
|
_handle_others(opt, files)
Handle copy-only files.
Source code in mccole/build.py
93 94 95 96 97 98 |
|
_is_interesting_file(opt, path)
Is this file worth copying over?
Source code in mccole/build.py
101 102 103 104 105 106 107 108 109 110 111 112 113 |
|
_make_output_path(opt, source)
Build output path.
Source code in mccole/build.py
116 117 118 119 120 121 122 123 124 |
|
_make_root_prefix(opt, path)
Create prefix to root for path.
Source code in mccole/build.py
127 128 129 130 131 132 |
|
_render_markdown(opt, env, source, dest)
Convert Markdown to HTML.
Source code in mccole/build.py
135 136 137 138 139 140 141 142 143 144 145 146 |
|
_separate_files(files)
Divide files into categories.
Source code in mccole/build.py
149 150 151 152 153 154 155 156 157 158 |
|
_warn(msg)
Print warning.
Source code in mccole/build.py
161 162 163 |
|