src/Pure/Tools/build.scala
changeset 74770 32c2587cda4f
parent 74767 0579ff142613
child 74782 0a87ea7eb76f
equal deleted inserted replaced
74769:5d84f0312a3a 74770:32c2587cda4f
   504         for ((chapter, infos) <- presentation_sessions.groupBy(_.chapter).iterator) {
   504         for ((chapter, infos) <- presentation_sessions.groupBy(_.chapter).iterator) {
   505           val entries = infos.map(info => (info.name, info.description))
   505           val entries = infos.map(info => (info.name, info.description))
   506           Presentation.update_chapter(presentation_dir, chapter, entries)
   506           Presentation.update_chapter(presentation_dir, chapter, entries)
   507         }
   507         }
   508 
   508 
   509         val html_context =
       
   510           new Presentation.HTML_Context { override val cache: Term.Cache = store.cache }
       
   511 
       
   512         using(store.open_database_context())(db_context =>
   509         using(store.open_database_context())(db_context =>
   513           for (info <- presentation_sessions) {
   510           for (session <- presentation_sessions.map(_.name)) {
   514             progress.expose_interrupt()
   511             progress.expose_interrupt()
   515             progress.echo("Presenting " + info.name + " ...")
   512             progress.echo("Presenting " + session + " ...")
       
   513 
       
   514             val html_context =
       
   515               new Presentation.HTML_Context {
       
   516                 override val cache: Term.Cache = store.cache
       
   517                 override def root_dir: Path = presentation_dir
       
   518                 override def theory_session(name: Document.Node.Name): Sessions.Info =
       
   519                   deps.sessions_structure(deps(session).theory_qualifier(name))
       
   520               }
   516             Presentation.session_html(
   521             Presentation.session_html(
   517               info.name, deps, db_context, progress = progress,
   522               session, deps, db_context, progress = progress,
   518               verbose = verbose, html_context = html_context,
   523               verbose = verbose, html_context = html_context,
   519               Presentation.elements1, presentation = presentation)
   524               Presentation.elements1)
   520           })
   525           })
   521       }
   526       }
   522     }
   527     }
   523 
   528 
   524     results
   529     results