summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Luc Brouillet <jeanluc@google.com>2015-04-30 11:12:40 -0700
committerJean-Luc Brouillet <jeanluc@google.com>2015-06-14 02:54:37 -0700
commit247c598d96c2445ab1a4c3a887438ce8c7353c06 (patch)
treef072bfe5824d3461bd1f02ae52cfa7e59b67e763
parentd3fe2229b74e7af0dbe2c7b8615d060ffa4462ef (diff)
downloadrs-247c598d96c2445ab1a4c3a887438ce8c7353c06.tar.gz
Fix offset problem when jumping to an anchor mid-pages.
BTW, I had tried to use <a id=''> instead of <a name=''> to be HTML5 compatible. This does not work with the current default.css file. Change-Id: I07b4273a0f9dabead668baf6b25dfac41021ab98 (cherry picked from commit 918944e41306198807728ae3f05a1799773895c5)
-rw-r--r--api/GenerateDocumentation.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/api/GenerateDocumentation.cpp b/api/GenerateDocumentation.cpp
index bb1e8103..b78edaeb 100644
--- a/api/GenerateDocumentation.cpp
+++ b/api/GenerateDocumentation.cpp
@@ -54,9 +54,11 @@ static void writeHeader(GeneratedFile* file, bool forVerification, const string&
*file << "page.title=RenderScript " << title << "\n\n";
*file << "@jd:body\n\n";
}
+ *file << "<div class='renderscript'>\n";
}
static void writeFooter(GeneratedFile* file, bool forVerification) {
+ *file << "</div>\n";
if (forVerification) {
*file << "</body></html>\n";
}
@@ -466,7 +468,7 @@ static bool writeDetailedConstant(GeneratedFile* file, Constant* constant) {
}
const string& name = constant->getName();
- *file << "<a id='android_rs:" << name << "'></a>\n";
+ *file << "<a name='android_rs:" << name << "'></a>\n";
*file << "<div class='jd-details'>\n";
*file << " <h4 class='jd-details-title'>\n";
*file << " <span class='sympad'>" << name << "</span>\n";
@@ -505,7 +507,7 @@ static bool writeDetailedType(GeneratedFile* file, Type* type) {
}
const string& name = type->getName();
- *file << "<a id='android_rs:" << name << "'></a>\n";
+ *file << "<a name='android_rs:" << name << "'></a>\n";
*file << "<div class='jd-details'>\n";
*file << " <h4 class='jd-details-title'>\n";
*file << " <span class='sympad'>" << name << "</span>\n";
@@ -534,7 +536,7 @@ static bool writeDetailedFunction(GeneratedFile* file, Function* function) {
}
const string& name = function->getName();
- *file << "<a id='android_rs:" << name << "'></a>\n";
+ *file << "<a name='android_rs:" << name << "'></a>\n";
*file << "<div class='jd-details'>\n";
*file << " <h4 class='jd-details-title'>\n";
*file << " <span class='sympad'>" << name << "</span>\n";