am c521e26
: AI 148186: Add support for using custom pdk templates. The m
Merge commit 'c521e266406d0393313e17ba29ae519315a5cf6e' into donut * commit 'c521e266406d0393313e17ba29ae519315a5cf6e': AI 148186: Add support for using custom pdk templates. The make rule for pdk docs should set LOCAL_DROIDDOC_OPTIONS += -hdf android.whichdoc online-pdk
This commit is contained in:
committed by
The Android Open Source Project
commit
a19801e060
@@ -116,6 +116,16 @@ public class DocFile
|
||||
|
||||
hdf.setValue("commentText", commentText);
|
||||
|
||||
// write the page using the appropriate root template, based on the
|
||||
// whichdoc value supplied by build
|
||||
String fromWhichmodule = hdf.getValue("android.whichmodule", "");
|
||||
if (fromWhichmodule.equals("online-pdk")) {
|
||||
//leaving this in just for temporary compatibility with pdk doc
|
||||
hdf.setValue("online-pdk", "true");
|
||||
// add any conditional login for root template here (such as
|
||||
// for custom left nav based on tab etc.
|
||||
ClearPage.write(hdf, "docpage.cs", outfile);
|
||||
} else {
|
||||
if (outfile.indexOf("sdk/") != -1) {
|
||||
hdf.setValue("sdk", "true");
|
||||
if (outfile.indexOf("index.html") != -1) {
|
||||
@@ -126,12 +136,9 @@ public class DocFile
|
||||
} else if (outfile.indexOf("guide/") != -1) {
|
||||
hdf.setValue("guide", "true");
|
||||
ClearPage.write(hdf, "docpage.cs", outfile);
|
||||
} else if (outfile.indexOf("publish/") != -1){
|
||||
hdf.setValue("publish", "true");
|
||||
ClearPage.write(hdf, "docpage.cs", outfile);
|
||||
} else {
|
||||
ClearPage.write(hdf, "nosidenavpage.cs", outfile);
|
||||
}
|
||||
}
|
||||
|
||||
} //writePage
|
||||
}
|
||||
|
Reference in New Issue
Block a user