equal
deleted
inserted
replaced
43 |
43 |
44 def make_preview(model: Document_Model, snapshot: Document.Snapshot): (String, String) = |
44 def make_preview(model: Document_Model, snapshot: Document.Snapshot): (String, String) = |
45 { |
45 { |
46 val label = "Preview " + quote(model.node_name.toString) |
46 val label = "Preview " + quote(model.node_name.toString) |
47 val content = |
47 val content = |
48 HTML.output_document(head = Nil, css = "", body = |
48 HTML.output_document(Nil, |
49 List( |
49 List( |
50 HTML.chapter("Theory " + quote(model.node_name.theory_base_name)), |
50 HTML.chapter("Theory " + quote(model.node_name.theory_base_name)), |
51 HTML.source(Symbol.decode(snapshot.node.commands.iterator.map(_.source).mkString)))) |
51 HTML.source(Symbol.decode(snapshot.node.commands.iterator.map(_.source).mkString))), |
|
52 css = Url.print_file(Path.explode("~~/etc/isabelle.css").file)) |
52 (label, content) |
53 (label, content) |
53 } |
54 } |
54 } |
55 } |