mirror of
https://github.com/gradio-app/gradio.git
synced 2025-01-12 10:34:32 +08:00
creting guides dir and correcting html
This commit is contained in:
parent
9f1f8503b4
commit
e0795cf0a7
@ -68,9 +68,10 @@ def render_guides_main():
|
||||
with open("src/guides_main_template.html", encoding='utf-8') as template_file:
|
||||
template = Template(template_file.read())
|
||||
output_html = template.render(guides=guides, navbar_html=navbar_html)
|
||||
os.makedirs(os.path.join("generated", "guides"), exist_ok=True)
|
||||
with open(os.path.join("generated", "guides", "index.html"), "w", encoding='utf-8') as generated_template:
|
||||
generated_template.write(output_html)
|
||||
with open(os.path.join("generated", "guide.html"), "w", encoding='utf-8') as generated_template:
|
||||
with open(os.path.join("generated", "guides.html"), "w", encoding='utf-8') as generated_template:
|
||||
generated_template.write(output_html)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user