Skip to content

Commit 35a1623

Browse files
committed
Merge branch 'albert-github-feature/issue_11631'
2 parents c312576 + 306760b commit 35a1623

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/docnode.cpp

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -757,6 +757,18 @@ DocRef::DocRef(DocParser *parser,DocNodeVariant *parent,const QCString &target,c
757757
AUTO_TRACE_EXIT("section");
758758
return;
759759
}
760+
else if (Config_getBool(IMPLICIT_DIR_DOCS) && target.lower().endsWith("/readme.md"))
761+
{
762+
QCString dirTarget = target.left(target.length() - 9); // strip readme.md part
763+
const auto &dd = Doxygen::dirLinkedMap->find(dirTarget);
764+
if (dd)
765+
{
766+
m_text = target;
767+
m_file = dd->getOutputFileBase();
768+
AUTO_TRACE_EXIT("directory");
769+
return;
770+
}
771+
}
760772
else if (resolveLink(context,target,true,&compound,anchor,lang,parser->context.prefix))
761773
{
762774
bool isFile = compound ?

0 commit comments

Comments
 (0)