Functions | |
| argparse.Namespace | parse_args () |
| Parse command-line arguments. | |
| str | relative_script_path (Path page, Path html_dir) |
| Build the script reference for one page, correct for pages in subdirectories. | |
| tuple[int, int] | inject (Path html_dir, Path source) |
| Copy the script into the tree and reference it from every generated page. | |
| int | main () |
| Make the generated HTML tree self-contained with respect to theme syncing. | |
Variables | |
| str | SCRIPT_NAME = "theme-sync.js" |
Inject the theme-sync script into generated Doxygen HTML so the built tree is publishable as-is.
| argparse.Namespace inject_theme_sync.parse_args | ( | ) |
Parse command-line arguments.
Definition at line 15 of file inject_theme_sync.py.
| str inject_theme_sync.relative_script_path | ( | Path | page, |
| Path | html_dir | ||
| ) |
Build the script reference for one page, correct for pages in subdirectories.
| [in] | page | Generated HTML page. |
| [in] | html_dir | Root of the generated HTML tree. |
Definition at line 41 of file inject_theme_sync.py.
| 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.
| [in] | html_dir | Root of the generated HTML tree. |
| [in] | source | Authoritative theme-sync script in the repository. |
Definition at line 52 of file inject_theme_sync.py.
| int inject_theme_sync.main | ( | ) |
Make the generated HTML tree self-contained with respect to theme syncing.
Definition at line 76 of file inject_theme_sync.py.
| str inject_theme_sync.SCRIPT_NAME = "theme-sync.js" |
Definition at line 12 of file inject_theme_sync.py.