equal
deleted
inserted
replaced
28 val root_dir: Path, |
28 val root_dir: Path, |
29 val nodes: Nodes |
29 val nodes: Nodes |
30 ) { |
30 ) { |
31 /* directory structure and resources */ |
31 /* directory structure and resources */ |
32 |
32 |
|
33 def theory_session(name: Document.Node.Name): String = |
|
34 sessions_structure.theory_qualifier(name) |
33 def theory_session_info(name: Document.Node.Name): Sessions.Info = |
35 def theory_session_info(name: Document.Node.Name): Sessions.Info = |
34 sessions_structure(sessions_structure.theory_qualifier(name)) |
36 sessions_structure(theory_session(name)) |
35 |
37 |
36 def session_dir(info: Sessions.Info): Path = |
38 def session_dir(info: Sessions.Info): Path = |
37 root_dir + Path.explode(info.chapter_session) |
39 root_dir + Path.explode(info.chapter_session) |
38 def theory_dir(name: Document.Node.Name): Path = |
40 def theory_dir(name: Document.Node.Name): Path = |
39 session_dir(theory_session_info(name)) |
41 session_dir(theory_session_info(name)) |
612 val thy_html = |
614 val thy_html = |
613 html_context.source( |
615 html_context.source( |
614 make_html(Entity_Context.make(session, name, html_context), |
616 make_html(Entity_Context.make(session, name, html_context), |
615 thy_elements, snapshot.xml_markup(elements = thy_elements.html))) |
617 thy_elements, snapshot.xml_markup(elements = thy_elements.html))) |
616 |
618 |
617 val thy_session = html_context.theory_session_info(name).name |
619 val thy_session = html_context.theory_session(name) |
618 val thy_dir = Isabelle_System.make_directory(html_context.theory_dir(name)) |
620 val thy_dir = Isabelle_System.make_directory(html_context.theory_dir(name)) |
619 val files = |
621 val files = |
620 for { (src_path, file_html) <- files_html } |
622 for { (src_path, file_html) <- files_html } |
621 yield { |
623 yield { |
622 seen_files.find(_.check(src_path, name, thy_session)) match { |
624 seen_files.find(_.check(src_path, name, thy_session)) match { |