refactor: conform standards docs to doc-forge wiki/lib layout; generic build.py; static kind links
This commit is contained in:
@@ -336,7 +336,12 @@ def collect(config: dict, dry_run: bool = False) -> list[str]:
|
||||
if (entry.get("docs") or {}).get(kind):
|
||||
kind_urls[(name, kind)] = f"/{name}/{_find_home_for_kind(dest, kind)}"
|
||||
for entry in config.get("static", []):
|
||||
home_urls[entry["repo"]] = f"/{entry['repo']}/{_find_home(ROOT / entry['repo'])}"
|
||||
name = entry["repo"]
|
||||
dest = ROOT / name
|
||||
home_urls[name] = f"/{name}/{_find_home(dest)}"
|
||||
for kind in ("lib", "api", "wiki"):
|
||||
if (entry.get("docs") or {}).get(kind):
|
||||
kind_urls[(name, kind)] = f"/{name}/{_find_home_for_kind(dest, kind)}"
|
||||
|
||||
# ── regenerate outputs ──────────────────────────────────────────────
|
||||
index_html = build_index_html(config, home_urls, kind_urls)
|
||||
|
||||
Reference in New Issue
Block a user