diff options
author | Dimitri van Heesch <doxygen@gmail.com> | 2020-11-24 21:17:26 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-24 21:17:26 (GMT) |
commit | 6de91dc5e32e6d97a557fe6910a6cbf1d453ad9c (patch) | |
tree | a1872d7b4865858e71321b0c015f9c1e496fd7b7 | |
parent | 526a901c2ea1315727f8c60e48b799db39803fcd (diff) | |
parent | 8a20dd6c10c08424dd0ead6e58c2f34d2f90c509 (diff) | |
download | Doxygen-6de91dc5e32e6d97a557fe6910a6cbf1d453ad9c.zip Doxygen-6de91dc5e32e6d97a557fe6910a6cbf1d453ad9c.tar.gz Doxygen-6de91dc5e32e6d97a557fe6910a6cbf1d453ad9c.tar.bz2 |
Merge pull request #8196 from albert-github/feature/bug_shown_files
Exclude markdown mapped documentation files from Files list
-rw-r--r-- | doc/docblocks.doc | 4 | ||||
-rw-r--r-- | src/filedef.cpp | 3 |
2 files changed, 5 insertions, 2 deletions
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. 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() |