From 92e67d8955dc6360759abfc6debf6aae78ac539f Mon Sep 17 00:00:00 2001 From: albert-github Date: Mon, 23 Nov 2020 12:10:40 +0100 Subject: 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. --- src/filedef.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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() -- cgit v0.12 From 8a20dd6c10c08424dd0ead6e58c2f34d2f90c509 Mon Sep 17 00:00:00 2001 From: albert-github Date: Tue, 24 Nov 2020 14:31:31 +0100 Subject: Exclude markdown mapped documentation files from Files list Update of documentation --- doc/docblocks.doc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/doc/docblocks.doc b/doc/docblocks.doc index 96a2621..ac81bec 100644 --- a/doc/docblocks.doc +++ b/doc/docblocks.doc @@ -431,7 +431,9 @@ using structural commands: a case where the \\fn command is redundant and will only lead to problems. When you place a comment block in a file with one of the following extensions - `.dox`, `.txt`, or `.doc` then doxygen will hide this file from the file list. + `.dox`, `.txt`, `.doc`, `.md` or `.markdown` or when the extension maps to + `md` by means of the \ref cfg_extension_mapping "EXTENSION_MAPPING" + then doxygen will hide this file from the file list. If you have a file that doxygen cannot parse but still would like to document it, you can show it as-is using \ref cmdverbinclude "\\verbinclude", e.g. -- cgit v0.12