We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f7d6a7 commit 20f5679Copy full SHA for 20f5679
_tools/c_postprocess_html.py
@@ -69,9 +69,6 @@ def main():
69
if not doc_dir.exists():
70
fail(f"Build the HTML docs first; {doc_dir} does not exist")
71
72
- if jekyll_dir.exists():
73
- rmtree(jekyll_dir)
74
-
75
for version in versions:
76
doc_dir_version = doc_dir / version
77
jekyll_dir_version = jekyll_dir / version
@@ -83,6 +80,9 @@ def main():
83
80
continue
84
81
85
82
print(jekyll_dir_version)
+ if jekyll_dir_version.exists():
+ rmtree(jekyll_dir_version)
+
86
jekyll_dir_version.mkdir(parents=True, exist_ok=True)
87
for html_file in doc_dir_version.glob("*.html"):
88
jekyll_html_file = jekyll_dir_version / html_file.name
0 commit comments