equal
deleted
inserted
replaced
30 ) { |
30 ) { |
31 /* directory structure and resources */ |
31 /* directory structure and resources */ |
32 |
32 |
33 def theory_session(name: Document.Node.Name): String = |
33 def theory_session(name: Document.Node.Name): String = |
34 sessions_structure.theory_qualifier(name) |
34 sessions_structure.theory_qualifier(name) |
35 def theory_session_info(name: Document.Node.Name): Sessions.Info = |
35 |
36 sessions_structure(theory_session(name)) |
36 def session_dir(name: String): Path = |
37 |
37 root_dir + Path.explode(sessions_structure(name).chapter_session) |
38 def session_dir(info: Sessions.Info): Path = |
38 |
39 root_dir + Path.explode(info.chapter_session) |
|
40 def theory_dir(name: Document.Node.Name): Path = |
39 def theory_dir(name: Document.Node.Name): Path = |
41 session_dir(theory_session_info(name)) |
40 session_dir(theory_session(name)) |
|
41 |
42 def files_path(name: Document.Node.Name, path: Path): Path = |
42 def files_path(name: Document.Node.Name, path: Path): Path = |
43 theory_dir(name) + Path.explode("files") + path.squash.html |
43 theory_dir(name) + Path.explode("files") + path.squash.html |
44 |
44 |
45 private def session_relative(session0: String, session1: String): Option[String] = { |
45 private def session_relative(session0: String, session1: String): Option[String] = { |
46 for { |
46 for { |
534 val session = session_context.session_name |
534 val session = session_context.session_name |
535 val info = session_context.sessions_structure(session) |
535 val info = session_context.sessions_structure(session) |
536 val options = info.options |
536 val options = info.options |
537 val base = session_context.session_base |
537 val base = session_context.session_base |
538 |
538 |
539 val session_dir = Isabelle_System.make_directory(html_context.session_dir(info)) |
539 val session_dir = Isabelle_System.make_directory(html_context.session_dir(session)) |
540 |
540 |
541 Bytes.write(session_dir + session_graph_path, |
541 Bytes.write(session_dir + session_graph_path, |
542 graphview.Graph_File.make_pdf(options, base.session_graph_display)) |
542 graphview.Graph_File.make_pdf(options, base.session_graph_display)) |
543 |
543 |
544 val documents = |
544 val documents = |