1
1
mirror of https://github.com/wez/wezterm.git synced 2024-09-19 02:37:51 +03:00

docs: make color scheme dirs as needed

This commit is contained in:
Wez Furlong 2022-07-09 23:07:31 -07:00
parent 6cc01251dc
commit ffe76bae3a

View File

@ -188,6 +188,7 @@ class GenColorScheme(object):
children = []
for scheme_prefix in sorted(by_prefix.keys()):
scheme_filename = f"{self.dirname}/{scheme_prefix}/index.md"
os.makedirs(os.path.dirname(scheme_filename), exist_ok=True)
children.append(Page(scheme_prefix, scheme_filename))
with open(scheme_filename, "w") as idx: