src/Pure/Thy/presentation.scala
changeset 75892 c8a8b3bff1b4
parent 75891 a63ccf1a583e
child 75893 2b7841f71e24
equal deleted inserted replaced
75891:a63ccf1a583e 75892:c8a8b3bff1b4
   569       Library.separate(HTML.break ::: HTML.nl,
   569       Library.separate(HTML.break ::: HTML.nl,
   570         (deps_link :: readme_links ::: document_links).
   570         (deps_link :: readme_links ::: document_links).
   571           map(link => HTML.text("View ") ::: List(link))).flatten
   571           map(link => HTML.text("View ") ::: List(link))).flatten
   572     }
   572     }
   573 
   573 
   574     def entity_context(name: Document.Node.Name): Entity_Context =
       
   575       Entity_Context.make(session, name, html_context)
       
   576 
       
   577 
       
   578     sealed case class Seen_File(
   574     sealed case class Seen_File(
   579       src_path: Path,
   575       src_path: Path,
   580       thy_name: Document.Node.Name,
   576       thy_name: Document.Node.Name,
   581       thy_session: String
   577       thy_session: String
   582     ) {
   578     ) {
   613               make_html(Entity_Context.empty, thy_elements, xml)))
   609               make_html(Entity_Context.empty, thy_elements, xml)))
   614           }
   610           }
   615 
   611 
   616         val thy_html =
   612         val thy_html =
   617           html_context.source(
   613           html_context.source(
   618             make_html(entity_context(name), thy_elements,
   614             make_html(Entity_Context.make(session, name, html_context),
   619               snapshot.xml_markup(elements = thy_elements.html)))
   615               thy_elements, snapshot.xml_markup(elements = thy_elements.html)))
   620 
   616 
   621         val thy_session = html_context.theory_session_info(name).name
   617         val thy_session = html_context.theory_session_info(name).name
   622         val thy_dir = Isabelle_System.make_directory(html_context.theory_dir(name))
   618         val thy_dir = Isabelle_System.make_directory(html_context.theory_dir(name))
   623         val files =
   619         val files =
   624           for { (src_path, file_html) <- files_html }
   620           for { (src_path, file_html) <- files_html }