File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -119,7 +119,7 @@ def build_redirect(shortname, spec_folder):
119119 template = jinja_env .get_template ("redirect.html.j2" )
120120 contents = template .render (spec_folder = spec_folder )
121121
122- folder = os .path . join ("./csswg-drafts " , shortname )
122+ folder = os .join ("." , shortname )
123123 try :
124124 os .mkdir (folder )
125125 except FileExistsError :
@@ -147,7 +147,7 @@ def build_redirect(shortname, spec_folder):
147147
148148specgroups = defaultdict (list )
149149
150- for entry in os .scandir ("./csswg-drafts " ):
150+ for entry in os .scandir ("." ):
151151 if entry .is_dir ():
152152 # Not actual specs, just examples.
153153 if entry .name in ["css-module" ]:
@@ -198,6 +198,6 @@ def build_redirect(shortname, spec_folder):
198198 if shortname == "css-snapshot" :
199199 build_redirect ("css" , currentWorkDir )
200200
201- with open ("./csswg-drafts/ index.html" , mode = 'w' , encoding = "UTF-8" ) as f :
201+ with open ("./index.html" , mode = 'w' , encoding = "UTF-8" ) as f :
202202 template = jinja_env .get_template ("index.html.j2" )
203203 f .write (template .render (specgroups = specgroups ))
You can’t perform that action at this time.
0 commit comments