chore: update renamed documentation repository references (#118)

Co-authored-by: dadachann <[email protected]>
This commit is contained in:
Hyu
2026-09-05 01:59:28 +08:00
committed by GitHub
co-authored by dadachann
parent a63d60a2a9
commit 2c5035c5c7
6 changed files with 9 additions and 9 deletions
+1 -1
View File
@@ -46,7 +46,7 @@ jobs:
echo "LangBot Blog articles are already synchronized."
exit 0
fi
git config user.name "langbot-wiki-bot"
git config user.name "langbot-docs-bot"
git config user.email "[email protected]"
git add docs.json en/articles zh/articles ja/articles images/articles scripts/blog-articles-manifest.json
git commit -m "docs(articles): sync LangBot Blog"
+2 -2
View File
@@ -81,7 +81,7 @@ jobs:
echo "GitHub Wiki is already up to date."
exit 0
fi
git config user.name "langbot-wiki-sync[bot]"
git config user.name "langbot-docs-sync[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git commit -m "docs: sync from langbot-wiki@${SOURCE_SHA::7}"
git commit -m "docs: sync from langbot-docs@${SOURCE_SHA::7}"
git push origin HEAD:master
+1 -1
View File
@@ -1,4 +1,4 @@
{
"url": "https://context7.com/langbot-app/langbot-wiki",
"url": "https://context7.com/langbot-app/langbot-docs",
"public_key": "pk_lYnjPxdPQabvC87DxU34F"
}
+3 -3
View File
@@ -73,7 +73,7 @@ def rewrite_url(source: PurePosixPath, target: str, *, image: bool = False) -> s
return target
if image:
path = parsed.path.lstrip("/") if parsed.path.startswith("/") else (source.parent / parsed.path).as_posix()
return urlunsplit(("https", "raw.githubusercontent.com", f"/langbot-app/langbot-wiki/main/{path}", parsed.query, parsed.fragment))
return urlunsplit(("https", "raw.githubusercontent.com", f"/langbot-app/langbot-docs/main/{path}", parsed.query, parsed.fragment))
return resolve_doc_target(source, target) or target
@@ -235,7 +235,7 @@ def build(root: Path, output: Path) -> int:
home = [
"# LangBot Documentation",
"",
"This GitHub Wiki is automatically synchronized from [langbot-app/langbot-wiki](https://github.com/langbot-app/langbot-wiki).",
"This GitHub Wiki is automatically synchronized from [langbot-app/langbot-docs](https://github.com/langbot-app/langbot-docs).",
"",
]
for language, label in LANGUAGES.items():
@@ -246,7 +246,7 @@ def build(root: Path, output: Path) -> int:
(output / "Home.md").write_text("\n".join(home).rstrip() + "\n", encoding="utf-8")
(output / "_Sidebar.md").write_text(build_sidebar(root, titles), encoding="utf-8")
(output / "_Footer.md").write_text(
"Automatically synchronized from [langbot-app/langbot-wiki](https://github.com/langbot-app/langbot-wiki).\n",
"Automatically synchronized from [langbot-app/langbot-docs](https://github.com/langbot-app/langbot-docs).\n",
encoding="utf-8",
)
return len(documents)
+1 -1
View File
@@ -340,7 +340,7 @@ async function main() {
if (!args.source) throw new Error("Pass --source /path/to/langbot-landing-page or set LANGBOT_LANDING_REPO");
if (!existsSync(path.join(args.source, "src/content/blog"))) throw new Error(`Not a LangBot landing repository: ${args.source}`);
const { byLocale, slugs } = await loadPosts(args.source);
const outputRoot = await mkdtemp(path.join(tmpdir(), "langbot-wiki-article-sync-"));
const outputRoot = await mkdtemp(path.join(tmpdir(), "langbot-docs-article-sync-"));
const assetRoot = args.check ? outputRoot : ROOT;
const imageCache = new Map();
const localePosts = new Map();
+1 -1
View File
@@ -36,7 +36,7 @@ description: "ignored"
self.assertIn("> **提示**", output)
self.assertIn("[模型文档](zh-usage-models-readme)", output)
self.assertIn(
"https://raw.githubusercontent.com/langbot-app/langbot-wiki/main/images/ui.png",
"https://raw.githubusercontent.com/langbot-app/langbot-docs/main/images/ui.png",
output,
)