Skip to content

Commit

Permalink
Exclude markdown mapped documentation files from Files list
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
albert-github committed Nov 23, 2020
1 parent 4e75d77 commit 92e67d8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/filedef.cpp
Expand Up @@ -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()
Expand Down

0 comments on commit 92e67d8

Please sign in to comment.