Skip to content

Commit 5f4750a

Browse files
committed
Incorrect links in HTML with IMPLICIT_DIR_DOCS
As a side effect of issue doxygen#11583 (comment doxygen#11583 (comment), doxygen#11583 (comment) for example and doxygen#11583 (comment)) it was found that in the searchindex and also regarding links theer were some incorrect references. This was all due the possibility of `IMPLICIT_DIR_DOCS` was not taken into account for anchors / sections. Regarding HTML this has been solved.
1 parent 22c1725 commit 5f4750a

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

src/doxygen.cpp

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12976,6 +12976,24 @@ void parseInput()
1297612976
findSectionsInDocumentation();
1297712977
g_s.end();
1297812978

12979+
g_s.begin("Finding leftover anchors and sections...\n");
12980+
if (Config_getBool(IMPLICIT_DIR_DOCS))
12981+
{
12982+
for (const auto &si : SectionManager::instance())
12983+
{
12984+
QCString m_file = si->fileName();
12985+
if (m_file.lower().endsWith("/readme.md"))
12986+
{
12987+
m_file = m_file.left(m_file.length()-9);
12988+
for (const auto &dd : *Doxygen::dirLinkedMap)
12989+
{
12990+
if (dd->name() == m_file) {si->setFileName(dd->getOutputFileBase()); break;}
12991+
}
12992+
}
12993+
}
12994+
}
12995+
g_s.end();
12996+
1297912997
g_s.begin("Transferring function references...\n");
1298012998
transferFunctionReferences();
1298112999
g_s.end();

0 commit comments

Comments
 (0)