docs: add xceditor api tree and new resource docs

This commit is contained in:
2026-04-10 17:10:42 +08:00
parent 6b90c2f6c3
commit 66ae9ec919
189 changed files with 6613 additions and 30 deletions

View File

@@ -0,0 +1,32 @@
#!/usr/bin/env python3
from __future__ import annotations
import runpy
import sys
from pathlib import Path
SCRIPT_DIR = Path(__file__).resolve().parent
IMPLEMENTATION = SCRIPT_DIR / "generate_core_resources_canonical_pages.py"
REPO_ROOT = SCRIPT_DIR.parents[2]
XCEDITOR_INCLUDE_ROOT = REPO_ROOT / "new_editor" / "include" / "XCEditor"
def main() -> int:
old_argv = sys.argv
sys.argv = [
str(IMPLEMENTATION),
"--root-name",
"XCEditor",
"--include-root",
str(XCEDITOR_INCLUDE_ROOT),
]
try:
module_globals = runpy.run_path(str(IMPLEMENTATION))
return int(module_globals["main"]())
finally:
sys.argv = old_argv
if __name__ == "__main__":
raise SystemExit(main())