(config, **kwargs)
| 16 | |
| 17 | |
| 18 | def on_config(config, **kwargs): |
| 19 | global site_url |
| 20 | |
| 21 | # Normalize API site url |
| 22 | site_url = config.get("site_url") or "/" |
| 23 | if site_url and site_url[-1] != "/": |
| 24 | site_url = f"{site_url}/" |
| 25 | |
| 26 | |
| 27 | def process_cli_links(markdown_content: str) -> str: |