docs: make color scheme dirs as needed

This commit is contained in:
Wez Furlong committed 2022-07-09 23:07:31 -07:00
1 parent 6cc01251dc
commit ffe76bae3a
1 file changed
+1
+1
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: