Skip to content

Commit

Permalink
Exclude tests from docs
Browse files Browse the repository at this point in the history
  • Loading branch information
oashour committed Apr 26, 2024
1 parent bb761d6 commit 1c33591
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/gen_ref_pages.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
parts = parts[:-1]
doc_path = doc_path.with_name("index.md")
full_doc_path = full_doc_path.with_name("index.md")
elif parts[-1] in ("__main__", "run", "gen_ref_pages"):
elif parts[-1] in ("__main__", "run", "gen_ref_pages") or "tests" in parts:
continue

nav[parts] = doc_path.as_posix()
Expand Down

0 comments on commit 1c33591

Please sign in to comment.