@@ -101,23 +101,23 @@ def run_doxygen_if_needed(
101101@contextmanager
102102def generate_docs_configuration (
103103 * ,
104- project : str = "" ,
105- title : str = "" ,
106- module : str = "" ,
107- description : str = "" ,
108- author : str = "" ,
109- copyright : str = "" ,
110- version : str = "" ,
111- theme : str = "furo" ,
112- docs_root : str = "" ,
113- root : str = "" ,
114- cname : str = "" ,
104+ project : Optional [ str ] = None ,
105+ title : Optional [ str ] = None ,
106+ module : Optional [ str ] = None ,
107+ description : Optional [ str ] = None ,
108+ author : Optional [ str ] = None ,
109+ copyright : Optional [ str ] = None ,
110+ version : Optional [ str ] = None ,
111+ theme : Optional [ str ] = None ,
112+ docs_root : Optional [ str ] = None ,
113+ root : Optional [ str ] = None ,
114+ cname : Optional [ str ] = None ,
115115 pages : Optional [List ] = None ,
116116 use_autoapi : Optional [bool ] = None ,
117117 autoapi_ignore : Optional [List ] = None ,
118118 custom_css : Optional [Path ] = None ,
119119 custom_js : Optional [Path ] = None ,
120- config_base : str = "tool.yardang" ,
120+ config_base : Optional [ str ] = None ,
121121 previous_versions : Optional [bool ] = False ,
122122 adjust_arguments : Callable = None ,
123123 adjust_template : Callable = None ,
@@ -195,6 +195,7 @@ def customize(args):
195195 - ``show-include``: Show #include directives (default: True)
196196 - ``use-project-refids``: Prefix refids with project name (default: True)
197197 """
198+ config_base = config_base if config_base is not None else "tool.yardang"
198199 if os .path .exists ("conf.py" ):
199200 # yield folder path to sphinx build
200201 yield os .path .curdir
@@ -221,7 +222,7 @@ def customize(args):
221222 if isinstance (author , dict ):
222223 author = author ["name" ]
223224 copyright = copyright if copyright is not None else author
224- theme = theme if theme is not None else get_config (section = "theme" , base = config_base )
225+ theme = theme if theme is not None else get_config (section = "theme" , base = config_base ) or "furo"
225226 version = version if version is not None else get_config (section = "version" , base = "project" )
226227 docs_root = (
227228 docs_root
0 commit comments