# HG changeset patch
# User wenzelm
# Date 939130402 -7200
# Node ID 760021510e6bd049a17df2a7c3f93a3d8358f482
# Parent 280b15f1ae9caaf432ac13d187ff3b4e92e65eb5
begin_index: document;
verbatim_source;
diff -r 280b15f1ae9c -r 760021510e6b src/Pure/Thy/html.ML
--- a/src/Pure/Thy/html.ML Tue Oct 05 15:32:47 1999 +0200
+++ b/src/Pure/Thy/html.ML Tue Oct 05 15:33:22 1999 +0200
@@ -22,12 +22,13 @@
val para: text -> text
val preform: text -> text
val verbatim: string -> text
- val begin_index: Url.T * string -> Url.T * string -> Url.T option -> Url.T -> text
+ val begin_index: Url.T * string -> Url.T * string -> Url.T option
+ -> Url.T option -> Url.T -> text
val end_index: text
val applet_pages: string -> Url.T -> Url.T * string -> bool -> (string * string) list
val theory_entry: Url.T * string -> text
val session_entries: (Url.T * string) list -> text
- val source: (string, 'a) Source.source -> text
+ val verbatim_source: string list -> text
val begin_theory: Url.T * string -> string -> (Url.T option * string) list ->
(Url.T option * Url.T * bool option) list -> text -> text
val end_theory: text
@@ -153,10 +154,11 @@
(* session index *)
-fun begin_index up (index_path, session) opt_readme graph =
+fun begin_index up (index_path, session) opt_readme opt_doc graph =
begin_document ("Index of " ^ session) ^ up_link up ^
para ("View " ^ href_path graph "theory dependencies" ^
- (case opt_readme of None => "" | Some p => "
\nView " ^ href_path p "README")) ^
+ (case opt_readme of None => "" | Some p => "
\nView " ^ href_path p "README") ^
+ (case opt_doc of None => "" | Some p => "
\nView " ^ href_path p "document")) ^
"\n
" ^ output_source src ^ "\n
" ^ implode (output_symbols ss) ^ "\n