equal
deleted
inserted
replaced
223 } |
223 } |
224 |
224 |
225 |
225 |
226 /* document directory */ |
226 /* document directory */ |
227 |
227 |
|
228 def isabelle_css: Path = Path.explode("~~/etc/isabelle.css") |
|
229 |
228 def init_dir(dir: Path) |
230 def init_dir(dir: Path) |
229 { |
231 { |
230 Isabelle_System.mkdirs(dir) |
232 Isabelle_System.mkdirs(dir) |
231 File.copy(Path.explode("~~/etc/isabelle.css"), dir) |
233 File.copy(isabelle_css, dir) |
232 } |
234 } |
233 |
235 |
234 def write_document(dir: Path, name: String, head: XML.Body, body: XML.Body, |
236 def write_document(dir: Path, name: String, head: XML.Body, body: XML.Body, |
235 css: String = "isabelle.css", hidden: Boolean = true) |
237 css: String = isabelle_css.base.implode, hidden: Boolean = true) |
236 { |
238 { |
237 init_dir(dir) |
239 init_dir(dir) |
238 File.write(dir + Path.basic(name), output_document(head, body, css = css, hidden = hidden)) |
240 File.write(dir + Path.basic(name), output_document(head, body, css = css, hidden = hidden)) |
239 } |
241 } |
240 } |
242 } |