src/Pure/Tools/build.ML
changeset 67471 bddfa23a4ea9
parent 67297 86a099f896fc
child 67493 c4e9e0c50487
--- a/src/Pure/Tools/build.ML	Fri Jan 19 14:55:00 2018 +0100
+++ b/src/Pure/Tools/build.ML	Fri Jan 19 14:55:46 2018 +0100
@@ -150,6 +150,7 @@
   master_dir: Path.T,
   theories: (Options.T * (string * Position.T) list) list,
   sessions: string list,
+  doc_names: string list,
   global_theories: (string * string) list,
   loaded_theories: string list,
   known_theories: (string * string) list,
@@ -161,14 +162,14 @@
     val position = Position.of_properties o properties;
     val (symbol_codes, (command_timings, (do_output, (verbose, (browser_info,
       (document_files, (graph_file, (parent_name, (chapter, (name, (master_dir,
-      (theories, (sessions, (global_theories, (loaded_theories,
-      (known_theories, bibtex_entries)))))))))))))))) =
+      (theories, (sessions, (doc_names, (global_theories, (loaded_theories,
+      (known_theories, bibtex_entries))))))))))))))))) =
       pair (list (pair string int)) (pair (list properties) (pair bool (pair bool (pair string
         (pair (list (pair string string)) (pair string (pair string (pair string (pair string
           (pair string
             (pair (((list (pair Options.decode (list (pair string position))))))
-              (pair (list string) (pair (list (pair string string)) (pair (list string)
-                (pair (list (pair string string)) (list string))))))))))))))))
+              (pair (list string) (pair (list string) (pair (list (pair string string)) (pair (list string)
+                (pair (list (pair string string)) (list string)))))))))))))))))
       (YXML.parse_body yxml);
   in
     Args {symbol_codes = symbol_codes, command_timings = command_timings, do_output = do_output,
@@ -176,19 +177,20 @@
       document_files = map (apply2 Path.explode) document_files,
       graph_file = Path.explode graph_file, parent_name = parent_name, chapter = chapter,
       name = name, master_dir = Path.explode master_dir, theories = theories, sessions = sessions,
-      global_theories = global_theories, loaded_theories = loaded_theories,
+      doc_names = doc_names, global_theories = global_theories, loaded_theories = loaded_theories,
       known_theories = known_theories, bibtex_entries = bibtex_entries}
   end;
 
 fun build_session (Args {symbol_codes, command_timings, do_output, verbose, browser_info,
     document_files, graph_file, parent_name, chapter, name, master_dir, theories, sessions,
-    global_theories, loaded_theories, known_theories, bibtex_entries}) =
+    doc_names, global_theories, loaded_theories, known_theories, bibtex_entries}) =
   let
     val symbols = HTML.make_symbols symbol_codes;
 
     val _ =
       Resources.init_session_base
         {sessions = sessions,
+         doc_names = doc_names,
          global_theories = global_theories,
          loaded_theories = loaded_theories,
          known_theories = known_theories};