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 3d59435 commit 940ae08Copy full SHA for 940ae08
hooks.py
@@ -161,5 +161,6 @@ def on_post_build(config: MkDocsConfig):
161
template = '<!DOCTYPE html><html lang="en"><head><meta name="robots" content="noindex"><meta charset="utf-8"><meta http-equiv="refresh" content="0; url={}"></head></html>'
162
for redirect_page_uri, source_page_uri in REDIRECT_PAGES.items():
163
path = Path(redirect_page_uri)
164
- os.makedirs(path.parent)
165
- path.write_text(template.format(source_page_uri))
+ os.makedirs(path)
+ index_html = path / "index.html"
166
+ index_html.write_text(template.format(source_page_uri))
0 commit comments