We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 89ea9ce commit 9c2fccaCopy full SHA for 9c2fcca
scripts/gen_conf_list.py
@@ -1,5 +1,6 @@
1
"""Generate list of configuration options."""
2
3
+import os
4
from dataclasses import fields
5
from pathlib import Path
6
from typing import TextIO
@@ -38,4 +39,8 @@ def print_config_list(fd: TextIO) -> None:
38
39
with mkdocs_gen_files.open(full_doc_path, "w") as fd:
40
print("List of configuration options", file=fd)
41
print("===", file=fd)
- print_config_list(fd)
42
+ if os.environ.get("STAGPY_DOC_CONFIG") is None:
43
+ print(file=fd)
44
+ print("Set `STAGPY_DOC_CONFIG` environment variable to generate.", file=fd)
45
+ else:
46
+ print_config_list(fd)
0 commit comments