httk.core.docs.redirect¶
Generate the relative root redirect for a versioned documentation site.
Functions¶
|
Return a complete HTML5 document redirecting to a relative site path. |
|
Write |
Module Contents¶
- httk.core.docs.redirect.root_redirect_html(target_relative_path)¶
Return a complete HTML5 document redirecting to a relative site path.
- httk.core.docs.redirect.write_root_redirect(site_root, target)¶
Write
index.htmlat site_root with a relative redirect to target.- Parameters:
site_root (str | pathlib.Path) – Site root receiving the redirect file.
target (str) – Relative path receiving the redirect.