Transition sample code projects overviews to _index.jd.
Support doc-defined hdf metadata as well as make or doclava-defined hdf metadata. Make breadcrumb dirs optionally linkable and generate index files.
Change-Id: I0b45868033a1136c87bfae7ecdf5a150c85906a5
diff --git a/src/com/google/doclava/DocFile.java b/src/com/google/doclava/DocFile.java
index f699f58..06e64cc 100644
--- a/src/com/google/doclava/DocFile.java
+++ b/src/com/google/doclava/DocFile.java
@@ -72,14 +72,15 @@
return outFrag;
}
- public static void writePage(String docfile, String relative, String outfile) {
- Data hdf = Doclava.makeHDF();
+ public static void writePage(String docfile, String relative, String outfile, Data hdf) {
/*
* System.out.println("docfile='" + docfile + "' relative='" + relative + "'" + "' outfile='" +
* outfile + "'");
*/
-
+ if (hdf == null) {
+ hdf = Doclava.makeHDF();
+ }
String filedata = readFile(docfile);
// The document is properties up until the line "@jd:body".