summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2020-11-23 11:10:40 (GMT)
committeralbert-github <albert.tests@gmail.com>2020-11-23 11:10:40 (GMT)
commit92e67d8955dc6360759abfc6debf6aae78ac539f (patch)
tree6e8e4315374aa8f44446849f870193b64076a4b7
parent4e75d77f60bd173019247177686376ce36ace90b (diff)
downloadDoxygen-92e67d8955dc6360759abfc6debf6aae78ac539f.zip
Doxygen-92e67d8955dc6360759abfc6debf6aae78ac539f.tar.gz
Doxygen-92e67d8955dc6360759abfc6debf6aae78ac539f.tar.bz2
Exclude markdown mapped documentation files from Files list
The files with an obvious documentation extension are excluded from the "Files list" (e.g in top blue bar). Files that are mapped through `EXTENSION_MAPPING` to markdown files are also documentation files and should also be excluded.
-rw-r--r--src/filedef.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/filedef.cpp b/src/filedef.cpp
index 45dde1f..c2020e1 100644
--- a/src/filedef.cpp
+++ b/src/filedef.cpp
@@ -1918,7 +1918,8 @@ bool FileDefImpl::isDocumentationFile() const
name().right(4)==".txt" ||
name().right(4)==".dox" ||
name().right(3)==".md" ||
- name().right(9)==".markdown";
+ name().right(9)==".markdown" ||
+ getLanguageFromFileName(getFileNameExtension(name())) == SrcLangExt_Markdown;
}
void FileDefImpl::acquireFileVersion()