Go to the source code of this file.
Namespaces | |
| namespace | inject_theme_sync |
Functions | |
| argparse.Namespace | inject_theme_sync.parse_args () |
| Parse command-line arguments. | |
| str | inject_theme_sync.relative_script_path (Path page, Path html_dir) |
| Build the script reference for one page, correct for pages in subdirectories. | |
| tuple[int, int] | inject_theme_sync.inject (Path html_dir, Path source) |
| Copy the script into the tree and reference it from every generated page. | |
| int | inject_theme_sync.main () |
| Make the generated HTML tree self-contained with respect to theme syncing. | |
Variables | |
| str | inject_theme_sync.SCRIPT_NAME = "theme-sync.js" |