Skip to content

Commit 360c0a9

Browse files
committed
docs: generate config options API reference
1 parent d37765a commit 360c0a9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

scripts/gen_ref_pages.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@
3131
with mkdocs_gen_files.open(full_doc_path, "w") as fd:
3232
identifier = ".".join(parts)
3333
print("::: " + identifier, file=fd)
34+
if parts[-1] == "config":
35+
print(" options:", file=fd)
36+
print(" show_if_no_docstring: true", file=fd)
37+
print(' filters: ["!^_"]', file=fd)
3438

3539
with mkdocs_gen_files.open("reference/SUMMARY.md", "w") as nav_file:
3640
nav_file.writelines(nav.build_literate_nav())

0 commit comments

Comments
 (0)