Loading...
Loading...
Compare original and translation side by side
write-docswrite-docswrite-docswrite-docsupdateChangeRequestContentwrite-docsreferences/api-cheatsheet.mdclaude mcp add --transport http gitbook-mcp https://mcp.gitbook.com/mcp/mcp--header "Authorization: Bearer $GITBOOK_TOKEN"codex mcp add gitbook-mcp --url https://mcp.gitbook.com/mcphttps://api.gitbook.com/v1GITBOOK_TOKEN[ -n "$GITBOOK_TOKEN" ] && echo "Token found" || echo "GITBOOK_TOKEN is not set"GITBOOK_TOKENexport GITBOOK_TOKEN=<pasted value>updateChangeRequestContentwrite-docsreferences/api-cheatsheet.mdclaude mcp add --transport http gitbook-mcp https://mcp.gitbook.com/mcp/mcp--header "Authorization: Bearer $GITBOOK_TOKEN"codex mcp add gitbook-mcp --url https://mcp.gitbook.com/mcphttps://api.gitbook.com/v1GITBOOK_TOKEN[ -n "$GITBOOK_TOKEN" ] && echo "Token found" || echo "GITBOOK_TOKEN is not set"GITBOOK_TOKENexport GITBOOK_TOKEN=<粘贴的值>references/git-sync-handoff.mdreferences/api-cheatsheet.mdreferences/git-sync-handoff.mdreferences/api-cheatsheet.mdorganizationIdtype: sitetype: basicbasicreferences/migration-from-other-platforms.mdbuiltin:openapireferences/block-ecosystem.mdreferences/api-cheatsheet.mdcleanmutedboldgradient[{title: "Guides", icon: "book-open", description: "Concepts and tutorials"}, {title: "API Reference", icon: "code", description: "REST API and SDKs"}, {title: "Changelog", icon: "clock-rotate-left", description: "Updates and release notes"}]ghglabreferences/api-cheatsheet.mdorganizationIdtype: sitetype: basicreferences/migration-from-other-platforms.mdbuiltin:openapireferences/block-ecosystem.mdreferences/api-cheatsheet.mdcleanmutedboldgradient[{title: "Guides", icon: "book-open", description: "Concepts and tutorials"}, {title: "API Reference", icon: "code", description: "REST API and SDKs"}, {title: "Changelog", icon: "clock-rotate-left", description: "Updates and release notes"}]ghglabreferences/api-cheatsheet.mdghglabghglabghglabghglabAbout to run, in org Acme Inc ():org_abc123
- Create site "Acme Platform Docs" (type: site, plan: ultimate, visibility: public)
- Create 3 empty spaces: Guides, API Reference, Changelog
- Add Guides as the default section; create sections for API Reference and Changelog
Proceed? (yes/no)
即将在组织 Acme Inc()中执行以下操作:org_abc123
- 创建站点 "Acme Platform Docs"(类型:site,计划:ultimate,可见性:公开)
- 创建3个空空间:Guides、API Reference、Changelog
- 将Guides设为默认分区;为API Reference和Changelog创建分区
是否继续?(是/否)
write-docsupdateChangeRequestContentcreate_change_requestsubmit_or_merge_change_requestinvoke_operationurls.appurls.publishedurls.preview/~/changes/<number>/write-docscr-creategetSpaceByIdlist_sitesget_site_structuregetSiteById.urls.previewGETwrite-docsupdateChangeRequestContentcreate_change_requestsubmit_or_merge_change_requestinvoke_operationurls.appurls.publishedurls.preview/~/changes/<number>/write-docscr-creategetSpaceByIdlist_sitesget_site_structuregetSiteById.urls.previewGETreferences/site-structure-design.mdreferences/site-structure-design.mdREADME.mdSUMMARY.md.gitbook/.gitbook.yamlmy-docs/
├── .gitignore
├── README.md # repo-level readme (not a space homepage)
├── guides/ # space 1
│ ├── README.md # space homepage
│ ├── SUMMARY.md
│ ├── .gitbook/
│ │ └── vars.yaml # optional: space-level variables
│ ├── getting-started/
│ │ ├── installation.md
│ │ └── quickstart.md
│ └── concepts/
│ └── ...
├── api-reference/ # space 2
│ ├── README.md
│ ├── SUMMARY.md
│ └── endpoints/
│ └── ...
└── changelog/ # space 3
├── README.md
└── SUMMARY.md.gitbook.yamlREADME.mdSUMMARY.md.gitbook.yamlreferences/example-site/.gitbook.yaml.gitbook/vars.yamlsupport_email: support@evolve.com{% vars.support_email %}.gitbook/includes/<name>.md{% include "...persona-switcher" %}guides/.gitbook.yamlroot: ./
structure:
readme: README.md
summary: SUMMARY.mdREADME.mdSUMMARY.md.gitbook/.gitbook.yamlmy-docs/
├── .gitignore
├── README.md # 仓库级README(非空间主页)
├── guides/ # 空间1
│ ├── README.md # 空间主页
│ ├── SUMMARY.md
│ ├── .gitbook/
│ │ └── vars.yaml # 可选:空间级变量
│ ├── getting-started/
│ │ ├── installation.md
│ │ └── quickstart.md
│ └── concepts/
│ └── ...
├── api-reference/ # 空间2
│ ├── README.md
│ ├── SUMMARY.md
│ └── endpoints/
│ └── ...
└── changelog/ # 空间3
├── README.md
└── SUMMARY.md.gitbook.yamlREADME.mdSUMMARY.md.gitbook.yamlreferences/example-site/.gitbook.yaml.gitbook/vars.yamlsupport_email: support@evolve.com{% vars.support_email %}.gitbook/includes/<name>.md{% include "...persona-switcher" %}guides/.gitbook.yamlroot: ./
structure:
readme: README.md
summary: SUMMARY.mdREADME.mdundefinedREADME.mdundefined
A `.gitignore` should keep OS junk and editor settings out of the repo. Reasonable default:
If the team has additional generated artifacts (e.g. an OpenAPI spec built from source elsewhere), add those.
`.gitignore`应排除系统垃圾文件和编辑器设置。合理的默认配置:
如果团队有其他生成的工件(例如从其他源码生成的OpenAPI规范),也添加到忽略列表中。# Table of contents
* [Space homepage](README.md)
* [Top-level page A](top-level-a.md)
* [Top-level page B](top-level-b.md)
## First group
* [Page in group](first-group/page.md)
* [Another page](first-group/another.md)
## Second group
* [Page](second-group/page.md)## Group nametype: builtin:openapireferences/api-cheatsheet.md* [Title](https://...)https://app.gitbook.com/s/<spaceId>/<path>.mdXSPACE_<KEY>references/cross-space-links.md# Table of contents
* [Space homepage](README.md)
* [Top-level page A](top-level-a.md)
* [Top-level page B](top-level-b.md)
## First group
* [Page in group](first-group/page.md)
* [Another page](first-group/another.md)
## Second group
* [Page](second-group/page.md)## Group nameconcepts/type: builtin:openapireferences/api-cheatsheet.md* [Title](https://...)https://app.gitbook.com/s/<spaceId>/<path>.mdXSPACE_<KEY>references/cross-space-links.mdREADME.mdSUMMARY.mdwrite-docsicon:fa-book-openbolthousecodepuzzle-pieceid-cardcircle-dollar-to-slotlayout: width: widecover:title.visibletableOfContents.visibleSUMMARY.md## Group nametype: builtin:openapi{% if visitor.claims... %}references/example-site/README.mdSUMMARY.mdwrite-docsicon:fa-book-openbolthousecodepuzzle-pieceid-cardcircle-dollar-to-slotlayout: width: widecover:title.visibletableOfContents.visibleSUMMARY.md## Group nametype: builtin:openapi{% if visitor.claims... %}references/example-site/{% updates %}{% update date="..." tags="..." %}.gitbook/tags.yaml## YYYY-MM-DDtype: builtin:openapi```mermaidlayout: width: wide<table data-view="cards">{% columns %}.gitbook/includes/<name>.md{% include "..." %}.gitbook/vars.yaml<code class="expression">space.vars.<name></code>{% tabs %}{% stepper %}references/block-ecosystem.md{% updates %}{% update date="..." tags="..." %}.gitbook/tags.yaml## YYYY-MM-DDtype: builtin:openapi```mermaidlayout: width: wide<table data-view="cards">{% columns %}.gitbook/includes/<name>.md{% include "..." %}.gitbook/vars.yaml<code class="expression">space.vars.<name></code>{% tabs %}{% stepper %}references/block-ecosystem.mdFor the conceptual side, see the [Authentication concept page](https://app.gitbook.com/s/<spaceId>/concepts/authentication).https://app.gitbook.com/s/<spaceId>/<path>ContentRefPageContentRefSpaceXSPACE_See the [Authentication concept page](https://app.gitbook.com/s/XSPACE_GUIDES/concepts/authentication).
For the full reference, see the [API Reference](https://app.gitbook.com/s/XSPACE_API/).XSPACE_<KEY>sed -i \
-e "s|XSPACE_GUIDES|${GUIDES_SPACE_ID}|g" \
-e "s|XSPACE_API|${API_SPACE_ID}|g" \
-e "s|XSPACE_CHANGELOG|${CHANGELOG_SPACE_ID}|g" \
$(find . -name '*.md' -not -path './.git/*')cross-space-links.yamlreferences/cross-space-links.mdapp.gitbook.com/s/<id>/...关于概念部分,请查看[Authentication概念页面](https://app.gitbook.com/s/<spaceId>/concepts/authentication)。https://app.gitbook.com/s/<spaceId>/<path>ContentRefPageContentRefSpaceXSPACE_请查看[Authentication概念页面](https://app.gitbook.com/s/XSPACE_GUIDES/concepts/authentication)。
完整参考请查看[API Reference](https://app.gitbook.com/s/XSPACE_API/)。XSPACE_<KEY>sed -i \
-e "s|XSPACE_GUIDES|${GUIDES_SPACE_ID}|g" \
-e "s|XSPACE_API|${API_SPACE_ID}|g" \
-e "s|XSPACE_CHANGELOG|${CHANGELOG_SPACE_ID}|g" \
$(find . -name '*.md' -not -path './.git/*')cross-space-links.yamlreferences/cross-space-links.mdapp.gitbook.com/s/<id>/...references/example-site/connections/references/example-site/PRUNE-NOTES.mdREADME.mdSUMMARY.md.gitbook/vars.yaml.gitbook/includes/developers/v2/developers/v1/developers/v3/structure.jsonconnections/blog/community/youtube/index.htmlcustomization.jsonstructure.json| Pattern | File to read |
|---|---|
| Updates block + tags | |
| |
| Mermaid diagrams (flowchart, sequence) | |
Layout | |
| Card-tables for navigation | |
Conditional content via | |
| Tabs and steppers used together | |
| Webhook docs with code samples | |
| Reusable content includes | |
| Any space's |
Grouped SUMMARY.md (sections via | Any of the per-space |
structure.jsoncd my-docs
git init
git add .
git commit -m "Initial scaffold"ghglabundefinedreferences/example-site/connections/references/example-site/PRUNE-NOTES.mdREADME.mdSUMMARY.md.gitbook/vars.yaml.gitbook/includes/developers/v2/developers/v1/developers/v3/structure.jsonconnections/blog/community/youtube/index.htmlcustomization.jsonstructure.json| 模式 | 参考文件 |
|---|---|
| Updates块 + 标签 | |
| |
| Mermaid图(流程图、序列图) | |
布局 | |
| 导航卡片表格 | |
通过 | |
| 选项卡和步骤器结合使用 | |
| 带代码示例的Webhook文档 | |
| 可复用内容包含 | |
| 任何空间的 |
分组SUMMARY.md(通过 | 任何空间的 |
structure.jsoncd my-docs
git init
git add .
git commit -m "Initial scaffold"ghglabundefined
If neither tool is available, **say so explicitly** before scaffolding finishes. Two valid paths:
- **Local-only repo + manual remote step in handoff.** Commit locally, leave the user a "Step 0" in their handoff that says: *"On your machine, create a private GitHub or GitLab repo named `<name>`, then `git remote add origin <url> && git push -u origin main` from this directory."* Put this above the GitBook UI steps — they need the repo pushed before Git Sync can connect to it.
- **Ask the user to install `gh` or `glab`.** If they're going to be doing more sites, the tool is worth having.
Don't quietly default to local-only — a repo with no remote and no instructions about how to add one is a footgun the user will discover when they try to wire up Git Sync.
如果两种工具都不可用,**在搭建完成前明确告知用户**。两种可行方案:
- **仅本地仓库 + 操作指南中的手动远程步骤**。本地提交,在用户操作指南的最顶部添加“步骤0”:*“在你的机器上,创建一个名为`<name>`的私有GitHub或GitLab仓库,然后在此目录中执行`git remote add origin <url> && git push -u origin main`。”* 将此步骤放在GitBook UI步骤之前——用户需要先推送仓库,才能配置Git Sync。
- **请求用户安装`gh`或`glab`**。如果用户要创建更多站点,这些工具值得安装。
不要默认仅本地仓库却不告知用户——没有远程仓库且无添加指南的仓库是隐患,用户在尝试配置Git Sync时会发现问题。references/migration-from-other-platforms.mdllms-full.txt/docs/...Source: <url>builtin:openapi/docs/....mdhttps://app.gitbook.com/s/<spaceId>/<path>rm -rf <space>/<space>/_generated/references/migration-from-other-platforms.mdllms-full.txt/docs/...Source: <url>builtin:openapi/docs/....mdhttps://app.gitbook.com/s/<spaceId>/<path>rm -rf <space>/<space>/_generated/references/api-cheatsheet.mdreferences/api-cheatsheet.md{title, type, visibility, spaces?}type: "site"type: "basic"spacesreferences/git-sync-handoff.mdXSPACE_<KEY>references/cross-space-links.md{light, dark}references/customization-recipes.md{title, type, visibility, spaces?}type: "site"type: "basic"spacesreferences/git-sync-handoff.mdXSPACE_<KEY>references/cross-space-links.md{light, dark}references/customization-recipes.mdsite-spacelanguagegitSyncPaymentsPayments (FR)Payments (DE)localizedTitlelocalizedTitle: {de: "...", fr: "...", ...}site-spacelanguagegitSyncPaymentsPayments (FR)Payments (DE)localizedTitlelocalizedTitle: {de: "...", fr: "...", ...}sectionssectionsSiteCustomizationSettingsreferences/example-site/customization.jsonlocalizedTitlestyling.backgroundheader.links[]links: []ContentRefreferences/customization-recipes.mdreferences/api-cheatsheet.mdreferences/customization-recipes.mdreferences/example-site/customization.jsonreferences/example-site/structure.jsonSiteCustomizationSettingsreferences/example-site/customization.jsonlocalizedTitlestyling.backgroundheader.links[]links: []ContentRefreferences/customization-recipes.mdreferences/api-cheatsheet.mdreferences/customization-recipes.mdreferences/example-site/customization.jsonreferences/example-site/structure.jsonmainguidesapi-referencereferences/git-sync-handoff.mdmainguidesapi-referencereferences/git-sync-handoff.mdwrite-docswrite-docsreferences/api-cheatsheet.mdreferences/site-structure-design.mdreferences/migration-from-other-platforms.mdreferences/block-ecosystem.mdreferences/cross-space-links.mdreferences/git-sync-handoff.mdreferences/customization-recipes.mdreferences/example-site/SUMMARY.md.gitbook/PRUNE-NOTES.mdreferences/example-site/customization.jsonreferences/example-site/structure.jsonreferences/api-cheatsheet.mdreferences/site-structure-design.mdreferences/migration-from-other-platforms.mdreferences/block-ecosystem.mdreferences/cross-space-links.mdreferences/git-sync-handoff.mdreferences/customization-recipes.mdreferences/example-site/SUMMARY.md.gitbook/PRUNE-NOTES.mdreferences/example-site/customization.jsonreferences/example-site/structure.json