Skip to content

Commit 4939390

Browse files
authored
fix: Support config.yml, config.yaml (#111)
1 parent 4da7e6f commit 4939390

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

apps/smartdoc/conf.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ def from_yaml(self, filename, silent=False):
174174
return True
175175

176176
def load_from_yml(self):
177-
for i in ['config_example.yml', 'config.yaml']:
177+
for i in ['config_example.yml', 'config.yaml', 'config.yml']:
178178
if not os.path.isfile(os.path.join(self.root_path, i)):
179179
continue
180180
loaded = self.from_yaml(i)
@@ -197,7 +197,8 @@ def load_user_config(cls, root_path=None, config_class=None):
197197
198198
Error: No config file found.
199199
200-
You can run `cp config_example.yml {root_path}/config_example.yml`, and edit it.
200+
You can run `cp config_example.yml {root_path}/config.yml`, and edit it.
201+
201202
"""
202203
raise ImportError(msg)
203204
return config

0 commit comments

Comments
 (0)