diff options
author | Qt Continuous Integration System <qt-info@nokia.com> | 2011-11-11 17:53:07 (GMT) |
---|---|---|
committer | Qt Continuous Integration System <qt-info@nokia.com> | 2011-11-11 17:53:07 (GMT) |
commit | 350416c26fccc79621ba986794e6f6b48f2e1fe2 (patch) | |
tree | 23b971424d84b07297da8959e31e275bec0c34cc /tools | |
parent | a3fe722adf1b2dd1f637b28635ac895a39a81ba9 (diff) | |
parent | 3275f61d157af5237795b8539ad3d0de4c67b0ec (diff) | |
download | Qt-350416c26fccc79621ba986794e6f6b48f2e1fe2.zip Qt-350416c26fccc79621ba986794e6f6b48f2e1fe2.tar.gz Qt-350416c26fccc79621ba986794e6f6b48f2e1fe2.tar.bz2 |
Merge branch 'master' of scm.dev.nokia.troll.no:qt/qt-doc-staging into master-integration
* 'master' of scm.dev.nokia.troll.no:qt/qt-doc-staging:
Update supported platforms and remove commercial page.
qdoc3: Replace %REPLACEME% with the correct path
Diffstat (limited to 'tools')
-rw-r--r-- | tools/qdoc3/htmlgenerator.cpp | 8 | ||||
-rw-r--r-- | tools/qdoc3/htmlgenerator.h | 1 |
2 files changed, 7 insertions, 2 deletions
diff --git a/tools/qdoc3/htmlgenerator.cpp b/tools/qdoc3/htmlgenerator.cpp index 85ce9ac..923d523 100644 --- a/tools/qdoc3/htmlgenerator.cpp +++ b/tools/qdoc3/htmlgenerator.cpp @@ -217,6 +217,10 @@ void HtmlGenerator::initializeGenerator(const Config &config) headerStyles = config.getString(HtmlGenerator::format() + Config::dot + CONFIG_HEADERSTYLES); + + QString prefix = CONFIG_QHP + Config::dot + "Qt" + Config::dot; + manifestDir = "qthelp://" + config.getString(prefix + "namespace"); + manifestDir += "/" + config.getString(prefix + "virtualFolder") + "/"; } void HtmlGenerator::terminateGenerator() @@ -4398,7 +4402,7 @@ void HtmlGenerator::generateManifestFile(QString manifest, QString element) writer.writeStartElement(element); writer.writeAttribute("name", en->title()); //QString docUrl = projectUrl + "/" + en->fileBase() + ".html"; - QString docUrl = "%REPLACEME%/" + en->fileBase() + ".html"; + QString docUrl = manifestDir + en->fileBase() + ".html"; writer.writeAttribute("docUrl", docUrl); foreach (const Node* child, en->childNodes()) { if (child->subType() == Node::File) { @@ -4412,7 +4416,7 @@ void HtmlGenerator::generateManifestFile(QString manifest, QString element) } } //writer.writeAttribute("imageUrl", projectUrl + "/" + en->imageFileName()); - writer.writeAttribute("imageUrl", "%REPLACEME%/" + en->imageFileName()); + writer.writeAttribute("imageUrl", manifestDir + en->imageFileName()); writer.writeStartElement("description"); Text brief = en->doc().briefText(); if (!brief.isEmpty()) diff --git a/tools/qdoc3/htmlgenerator.h b/tools/qdoc3/htmlgenerator.h index 62a7f605..baf7c30 100644 --- a/tools/qdoc3/htmlgenerator.h +++ b/tools/qdoc3/htmlgenerator.h @@ -274,6 +274,7 @@ class HtmlGenerator : public PageGenerator QString projectDescription; QString projectUrl; QString navigationLinks; + QString manifestDir; QStringList stylesheets; QStringList customHeadElements; const Tree *myTree; |