Skip to content

Commit

Permalink
Fix countfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
LivInTheLookingGlass committed Sep 5, 2024
1 parent 8e5a2bf commit c6b9e17
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,13 +211,14 @@

def countfiles(lang):
templates = {
'Makefile': lambda _, filename: filename == 'Makefile',
'Python': lambda root, filename: fnmatch(filename, '*.py') and 'docs' not in root,
'C': lambda _, filename: fnmatch(filename, '*.c') or fnmatch(filename, '*.h'),
'C++': lambda _, filename: fnmatch(filename, '*.cpp') or fnmatch(filename, '*.h') or fnmatch(filename, '*.hpp'),
'C#': lambda _, filename: fnmatch(filename, '*.cs'),
'Java': lambda _, filename: fnmatch(filename, '*.java'),
'JavaScript': lambda _, filename: fnmatch(filename, '*.js'),
'Lua': lambda _, filename: fnmatch(filename, '*.lua'),
'Makefile': lambda _, filename: filename == 'Makefile',
'Python': lambda root, filename: fnmatch(filename, '*.py'),
'Rust': lambda _, filename: fnmatch(filename, '*.rs'),
}
exclude_patterns = {
Expand Down

0 comments on commit c6b9e17

Please sign in to comment.