File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change 11"""Generate list of configuration options."""
22
3- import os
3+ import importlib
44from dataclasses import fields
55from pathlib import Path
66from typing import TextIO
77
88import mkdocs_gen_files
99
10+ import stagpy .config
11+
1012
1113def print_config_list (fd : TextIO ) -> None :
14+ importlib .reload (stagpy .config )
1215 from stagpy .config import Config
1316
1417 stagpy_conf = Config .default_ ()
@@ -39,8 +42,4 @@ def print_config_list(fd: TextIO) -> None:
3942with mkdocs_gen_files .open (full_doc_path , "w" ) as fd :
4043 print ("List of configuration options" , file = fd )
4144 print ("===" , file = 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 )
45+ print_config_list (fd )
You can’t perform that action at this time.
0 commit comments