qdoc3: Change suffix of DITA files to .dita
The files output by the DITA XML generator now have .dita on the end instead of .xml, but the ditamap files still use .ditamap . Task-number: Mzilla bug - 7291 Change-Id: Idb8b70c5d3f2ac2c4fdf195e385393f7ac68b7ba Reviewed-by: Casper van Donderen <casper.vandonderen@nokia.com>
This commit is contained in:
parent
44159a0b3b
commit
33ea784aa8
@ -207,7 +207,7 @@ void CppCodeParser::initializeParser(const Config &config)
|
|||||||
if (!exampleFilePatterns.isEmpty())
|
if (!exampleFilePatterns.isEmpty())
|
||||||
exampleNameFilter = exampleFilePatterns.join(" ");
|
exampleNameFilter = exampleFilePatterns.join(" ");
|
||||||
else
|
else
|
||||||
exampleNameFilter = "*.cpp *.h *.js *.xq *.svg *.xml *.ui";
|
exampleNameFilter = "*.cpp *.h *.js *.xq *.svg *.xml *.dita *.ui";
|
||||||
|
|
||||||
QStringList exampleImagePatterns = config.getStringList(
|
QStringList exampleImagePatterns = config.getStringList(
|
||||||
CONFIG_EXAMPLES + Config::dot + CONFIG_IMAGEEXTENSIONS);
|
CONFIG_EXAMPLES + Config::dot + CONFIG_IMAGEEXTENSIONS);
|
||||||
|
@ -2390,11 +2390,11 @@ void DitaXmlGenerator::writeRelatedLinks(const FakeNode* node, CodeMarker* marke
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
Returns "xml" for this subclass of class Generator.
|
Returns "dita" for this subclass of class Generator.
|
||||||
*/
|
*/
|
||||||
QString DitaXmlGenerator::fileExtension(const Node * /* node */) const
|
QString DitaXmlGenerator::fileExtension(const Node * /* node */) const
|
||||||
{
|
{
|
||||||
return "xml";
|
return "dita";
|
||||||
}
|
}
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
@ -3238,8 +3238,6 @@ void DitaXmlGenerator::generateQmlItem(const Node* node,
|
|||||||
marked.remove("<@type>");
|
marked.remove("<@type>");
|
||||||
marked.remove("</@type>");
|
marked.remove("</@type>");
|
||||||
}
|
}
|
||||||
if (marked.contains("setAudioAlertEnabled"))
|
|
||||||
qDebug() << "MARKED:" << marked;
|
|
||||||
writeText(marked, marker, relative);
|
writeText(marked, marker, relative);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -4267,7 +4265,8 @@ QString DitaXmlGenerator::getLink(const Atom* atom,
|
|||||||
QString guid = lookupGuid(link,refForAtom(targetAtom,*node));
|
QString guid = lookupGuid(link,refForAtom(targetAtom,*node));
|
||||||
link += QLatin1Char('#') + guid;
|
link += QLatin1Char('#') + guid;
|
||||||
}
|
}
|
||||||
else if (!link.isEmpty() && *node && link.endsWith(".xml")) {
|
else if (!link.isEmpty() && *node &&
|
||||||
|
(link.endsWith(".xml") || link.endsWith(".dita"))) {
|
||||||
link += QLatin1Char('#') + (*node)->guid();
|
link += QLatin1Char('#') + (*node)->guid();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -5669,7 +5668,8 @@ DitaXmlGenerator::generateInnerNode(const InnerNode* node)
|
|||||||
CodeMarker *marker = CodeMarker::markerForFileName(node->location().filePath());
|
CodeMarker *marker = CodeMarker::markerForFileName(node->location().filePath());
|
||||||
|
|
||||||
if (node->parent() != 0) {
|
if (node->parent() != 0) {
|
||||||
beginSubPage(node, fileName(node));
|
if (!node->name().endsWith(".ditamap"))
|
||||||
|
beginSubPage(node, fileName(node));
|
||||||
if (node->type() == Node::Namespace || node->type() == Node::Class) {
|
if (node->type() == Node::Namespace || node->type() == Node::Class) {
|
||||||
generateClassLikeNode(node, marker);
|
generateClassLikeNode(node, marker);
|
||||||
}
|
}
|
||||||
@ -5681,7 +5681,8 @@ DitaXmlGenerator::generateInnerNode(const InnerNode* node)
|
|||||||
else
|
else
|
||||||
generateFakeNode(static_cast<const FakeNode*>(node), marker);
|
generateFakeNode(static_cast<const FakeNode*>(node), marker);
|
||||||
}
|
}
|
||||||
endSubPage();
|
if (!node->name().endsWith(".ditamap"))
|
||||||
|
endSubPage();
|
||||||
}
|
}
|
||||||
|
|
||||||
NodeList::ConstIterator c = node->childNodes().begin();
|
NodeList::ConstIterator c = node->childNodes().begin();
|
||||||
|
@ -514,8 +514,8 @@ QString Node::ditaXmlHref()
|
|||||||
else {
|
else {
|
||||||
href = fileBase();
|
href = fileBase();
|
||||||
}
|
}
|
||||||
if (!href.endsWith(".xml"))
|
if (!href.endsWith(".xml") && !href.endsWith(".dita"))
|
||||||
href += ".xml";
|
href += ".dita";
|
||||||
return href + QLatin1Char('#') + guid();
|
return href + QLatin1Char('#') + guid();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -125,7 +125,7 @@ Quoter::Quoter()
|
|||||||
//! [<id>]
|
//! [<id>]
|
||||||
* .pro, .py files:
|
* .pro, .py files:
|
||||||
#! [<id>]
|
#! [<id>]
|
||||||
* .html, .qrc, .ui, .xq, .xml files:
|
* .html, .qrc, .ui, .xq, .xml .dita files:
|
||||||
<!-- [<id>] -->
|
<!-- [<id>] -->
|
||||||
*/
|
*/
|
||||||
commentHash["pro"] = "#!";
|
commentHash["pro"] = "#!";
|
||||||
@ -134,6 +134,7 @@ Quoter::Quoter()
|
|||||||
commentHash["qrc"] = "<!--";
|
commentHash["qrc"] = "<!--";
|
||||||
commentHash["ui"] = "<!--";
|
commentHash["ui"] = "<!--";
|
||||||
commentHash["xml"] = "<!--";
|
commentHash["xml"] = "<!--";
|
||||||
|
commentHash["dita"] = "<!--";
|
||||||
commentHash["xq"] = "<!--";
|
commentHash["xq"] = "<!--";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user