catch any files that aren't part of the hard coded paths so they still have a page type that's expected by the jd_lists builder.
bug: 31244539
Change-Id: I2cb2e53a55edf0390e8fdd5af0574e30ff76a547
diff --git a/src/com/google/doclava/DocFile.java b/src/com/google/doclava/DocFile.java
index 8992a08..a8c4c78 100644
--- a/src/com/google/doclava/DocFile.java
+++ b/src/com/google/doclava/DocFile.java
@@ -330,6 +330,10 @@
hdf.setValue("about", "true");
hdf.setValue("page.type", "about");
hdf.setValue("page.category", "tv");
+ } else {
+ hdf.setValue("about", "true");
+ hdf.setValue("page.type", "about");
+ hdf.setValue("page.category", "about");
}
} else {
//support the old mappings
@@ -427,6 +431,10 @@
hdf.setValue("auto", "true");
} else if (filename.indexOf("tv") == 0) {
hdf.setValue("tv", "true");
+ } else {
+ hdf.setValue("about", "true");
+ hdf.setValue("page.type", "about");
+ hdf.setValue("page.category", "about");
}
}
//set metadata for this file in jd_lists_unified