diff options
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/make_redirects.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/make_redirects.py b/bin/make_redirects.py index 7472734..f7347c6 100755 --- a/bin/make_redirects.py +++ b/bin/make_redirects.py @@ -24,6 +24,8 @@ def book_redirects(rs, spec_dir): for kwd, info in rs.items(): if os.path.isdir(os.path.join(spec_dir, kwd)): source = kwd + "/index.html" + elif any((os.path.isfile(os.path.join(spec_dir, kwd) + ext)) for ext in [".txt", ".md"]): + continue else: source = kwd + ".html" target = info['target'] |