@cleocode/cleo 2026.3.4 → 2026.3.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli/index.js +2277 -609
- package/dist/cli/index.js.map +4 -4
- package/dist/mcp/index.js +1838 -443
- package/dist/mcp/index.js.map +4 -4
- package/package.json +1 -1
- package/packages/ct-skills/index.js +1 -1
- package/packages/ct-skills/package.json +0 -2
- package/packages/ct-skills/profiles/core.json +1 -1
- package/packages/ct-skills/profiles/full.json +4 -5
- package/packages/ct-skills/profiles/minimal.json +3 -3
- package/packages/ct-skills/profiles/recommended.json +2 -2
- package/packages/ct-skills/provider-skills-map.json +97 -0
- package/packages/ct-skills/skills/_shared/skill-chaining-patterns.md +23 -26
- package/packages/ct-skills/skills/_shared/testing-framework-config.md +9 -9
- package/packages/ct-skills/skills/ct-cleo/SKILL.md +21 -1
- package/packages/ct-skills/skills/ct-dev-workflow/SKILL.md +1 -1
- package/packages/ct-skills/skills/ct-documentor/SKILL.md +1 -1
- package/packages/ct-skills/skills/ct-epic-architect/SKILL.md +1 -1
- package/packages/ct-skills/skills/ct-orchestrator/SKILL.md +119 -43
- package/packages/ct-skills/skills/ct-orchestrator/orchestrator-prompt.txt +17 -0
- package/packages/ct-skills/skills/ct-orchestrator/references/orchestrator-patterns.md +1 -1
- package/packages/ct-skills/skills/ct-research-agent/SKILL.md +1 -1
- package/packages/ct-skills/skills/ct-spec-writer/SKILL.md +1 -1
- package/packages/ct-skills/skills/ct-task-executor/SKILL.md +1 -1
- package/packages/ct-skills/skills/ct-validator/SKILL.md +1 -1
- package/packages/ct-skills/skills/manifest.json +217 -947
- package/packages/ct-skills/skills.json +244 -3
- package/templates/CLEO-INJECTION.md +24 -0
- package/packages/ct-skills/protocols/agent-protocol.md +0 -260
- package/packages/ct-skills/protocols/artifact-publish.md +0 -587
- package/packages/ct-skills/protocols/consensus.md +0 -309
- package/packages/ct-skills/protocols/contribution.md +0 -375
- package/packages/ct-skills/protocols/decomposition.md +0 -352
- package/packages/ct-skills/protocols/implementation.md +0 -344
- package/packages/ct-skills/protocols/provenance.md +0 -600
- package/packages/ct-skills/protocols/release.md +0 -635
- package/packages/ct-skills/protocols/research.md +0 -248
- package/packages/ct-skills/protocols/specification.md +0 -287
- package/packages/ct-skills/protocols/testing.md +0 -346
- package/packages/ct-skills/protocols/validation.md +0 -229
- package/packages/ct-skills/skills/ct-gitbook/SKILL.md +0 -516
- package/packages/ct-skills/skills/ct-gitbook/assets/SUMMARY.md +0 -28
- package/packages/ct-skills/skills/ct-gitbook/assets/gitbook.yaml +0 -14
- package/packages/ct-skills/skills/ct-gitbook/references/api-sdk.md +0 -318
- package/packages/ct-skills/skills/ct-gitbook/references/auth-sso.md +0 -208
- package/packages/ct-skills/skills/ct-gitbook/references/change-requests.md +0 -169
- package/packages/ct-skills/skills/ct-gitbook/references/content-blocks.md +0 -230
- package/packages/ct-skills/skills/ct-gitbook/references/docs-sites.md +0 -202
- package/packages/ct-skills/skills/ct-gitbook/references/git-sync.md +0 -175
- package/packages/ct-skills/skills/ct-gitbook/references/llm-ready.md +0 -178
- package/packages/ct-skills/skills/ct-gitbook/references/migration.md +0 -263
- package/packages/ct-skills/skills/ct-library-implementer-bash/SKILL.md +0 -316
- package/packages/ct-skills/skills/ct-skill-lookup/SKILL.md +0 -179
- package/packages/ct-skills/skills/ct-test-writer-bats/SKILL.md +0 -347
- package/packages/ct-skills/skills/railway-platform/SKILL.md +0 -506
- package/packages/ct-skills/skills/railway-platform/_shared/scripts/railway-api.sh +0 -180
- package/packages/ct-skills/skills/railway-platform/_shared/scripts/railway-common.sh +0 -262
- package/packages/ct-skills/skills/railway-platform/references/01-getting-started.md +0 -149
- package/packages/ct-skills/skills/railway-platform/references/02-projects.md +0 -116
- package/packages/ct-skills/skills/railway-platform/references/03-services.md +0 -147
- package/packages/ct-skills/skills/railway-platform/references/04-deployments.md +0 -210
- package/packages/ct-skills/skills/railway-platform/references/05-databases.md +0 -142
- package/packages/ct-skills/skills/railway-platform/references/06-environments.md +0 -261
- package/packages/ct-skills/skills/railway-platform/references/07-domains.md +0 -139
- package/packages/ct-skills/skills/railway-platform/references/08-volumes.md +0 -533
- package/packages/ct-skills/skills/railway-platform/references/09-networking.md +0 -592
- package/packages/ct-skills/skills/railway-platform/references/10-cron.md +0 -488
- package/packages/ct-skills/skills/railway-platform/references/11-functions.md +0 -170
- package/packages/ct-skills/skills/railway-platform/references/12-monorepo.md +0 -294
- package/packages/ct-skills/skills/railway-platform/references/13-troubleshooting.md +0 -335
- package/packages/ct-skills/skills/railway-platform/references/14-railway-metal.md +0 -197
|
@@ -1,178 +0,0 @@
|
|
|
1
|
-
# LLM-Ready Documentation Reference
|
|
2
|
-
|
|
3
|
-
llms.txt, MCP server, Markdown endpoints, and SEO for GitBook published sites.
|
|
4
|
-
|
|
5
|
-
## Overview
|
|
6
|
-
|
|
7
|
-
GitBook automatically generates LLM-optimized outputs for every published Docs Site. No configuration required — these features are enabled by default on all published sites.
|
|
8
|
-
|
|
9
|
-
## llms.txt
|
|
10
|
-
|
|
11
|
-
Every published site serves a plain-text index at `/llms.txt`:
|
|
12
|
-
|
|
13
|
-
```
|
|
14
|
-
https://docs.example.com/llms.txt
|
|
15
|
-
```
|
|
16
|
-
|
|
17
|
-
This file follows the emerging `llms.txt` standard, providing a structured index of all documentation pages with titles and URLs.
|
|
18
|
-
|
|
19
|
-
### llms-full.txt
|
|
20
|
-
|
|
21
|
-
A complete version containing the full text of all pages in a single file:
|
|
22
|
-
|
|
23
|
-
```
|
|
24
|
-
https://docs.example.com/llms-full.txt
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
Use this for bulk ingestion into LLM context windows or RAG pipelines.
|
|
28
|
-
|
|
29
|
-
### Format
|
|
30
|
-
|
|
31
|
-
```text
|
|
32
|
-
# docs.example.com
|
|
33
|
-
|
|
34
|
-
> Site description from settings
|
|
35
|
-
|
|
36
|
-
## Getting Started
|
|
37
|
-
- [Introduction](https://docs.example.com/getting-started)
|
|
38
|
-
- [Installation](https://docs.example.com/getting-started/installation)
|
|
39
|
-
|
|
40
|
-
## API Reference
|
|
41
|
-
- [Authentication](https://docs.example.com/api/authentication)
|
|
42
|
-
- [Endpoints](https://docs.example.com/api/endpoints)
|
|
43
|
-
```
|
|
44
|
-
|
|
45
|
-
### Use Cases
|
|
46
|
-
|
|
47
|
-
- **RAG pipelines**: Index documentation for retrieval-augmented generation
|
|
48
|
-
- **AI assistants**: Provide documentation context to chatbots
|
|
49
|
-
- **Search engines**: Alternative to sitemaps for AI crawlers
|
|
50
|
-
- **Documentation audits**: Quick machine-readable content inventory
|
|
51
|
-
|
|
52
|
-
## Markdown Endpoints
|
|
53
|
-
|
|
54
|
-
Every page on a GitBook site is available as raw Markdown by appending `.md` to the URL:
|
|
55
|
-
|
|
56
|
-
```
|
|
57
|
-
https://docs.example.com/getting-started.md
|
|
58
|
-
https://docs.example.com/api/authentication.md
|
|
59
|
-
```
|
|
60
|
-
|
|
61
|
-
### Benefits
|
|
62
|
-
|
|
63
|
-
- Clean Markdown without HTML rendering artifacts
|
|
64
|
-
- Ideal for LLM ingestion — no HTML parsing required
|
|
65
|
-
- Preserves content structure (headings, lists, code blocks)
|
|
66
|
-
- Lower token count compared to HTML
|
|
67
|
-
|
|
68
|
-
### Programmatic Access
|
|
69
|
-
|
|
70
|
-
```typescript
|
|
71
|
-
// Fetch a page as Markdown
|
|
72
|
-
const response = await fetch('https://docs.example.com/getting-started.md');
|
|
73
|
-
const markdown = await response.text();
|
|
74
|
-
|
|
75
|
-
// Use in an LLM prompt
|
|
76
|
-
const prompt = `Based on this documentation:\n\n${markdown}\n\nAnswer: ${question}`;
|
|
77
|
-
```
|
|
78
|
-
|
|
79
|
-
## MCP Server
|
|
80
|
-
|
|
81
|
-
Every published space exposes a Model Context Protocol (MCP) server for structured AI tool access.
|
|
82
|
-
|
|
83
|
-
### Endpoint
|
|
84
|
-
|
|
85
|
-
```
|
|
86
|
-
https://docs.example.com/~gitbook/mcp
|
|
87
|
-
```
|
|
88
|
-
|
|
89
|
-
### Configuration
|
|
90
|
-
|
|
91
|
-
Add to your agent's MCP server configuration:
|
|
92
|
-
|
|
93
|
-
```json
|
|
94
|
-
{
|
|
95
|
-
"mcpServers": {
|
|
96
|
-
"company-docs": {
|
|
97
|
-
"url": "https://docs.example.com/~gitbook/mcp"
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
```
|
|
102
|
-
|
|
103
|
-
### What MCP Provides
|
|
104
|
-
|
|
105
|
-
- **Resource discovery**: AI tools can list available documentation pages
|
|
106
|
-
- **Content retrieval**: Fetch specific pages or sections by path
|
|
107
|
-
- **Search**: Query documentation content programmatically
|
|
108
|
-
- **Structured access**: No scraping — clean, structured data
|
|
109
|
-
|
|
110
|
-
### Supported Agents
|
|
111
|
-
|
|
112
|
-
Any MCP-compatible agent can use the server, including:
|
|
113
|
-
- Claude Code (via MCP server config)
|
|
114
|
-
- Cursor (via MCP settings)
|
|
115
|
-
- VS Code with Copilot (via MCP extension)
|
|
116
|
-
- Custom agents using the MCP SDK
|
|
117
|
-
|
|
118
|
-
### Example — Claude Code Configuration
|
|
119
|
-
|
|
120
|
-
```json
|
|
121
|
-
{
|
|
122
|
-
"mcpServers": {
|
|
123
|
-
"project-docs": {
|
|
124
|
-
"url": "https://docs.example.com/~gitbook/mcp"
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
```
|
|
129
|
-
|
|
130
|
-
The agent can then query your documentation directly during coding sessions.
|
|
131
|
-
|
|
132
|
-
## SEO
|
|
133
|
-
|
|
134
|
-
GitBook generates SEO-optimized output automatically.
|
|
135
|
-
|
|
136
|
-
### Auto-Generated
|
|
137
|
-
|
|
138
|
-
| Feature | Description |
|
|
139
|
-
|---------|-------------|
|
|
140
|
-
| Sitemaps | `sitemap.xml` at site root |
|
|
141
|
-
| Open Graph | Meta tags for social sharing |
|
|
142
|
-
| Twitter Cards | Rich preview cards |
|
|
143
|
-
| JSON-LD | Structured data for search engines |
|
|
144
|
-
| Canonical URLs | Proper canonical tags for custom domains |
|
|
145
|
-
| Clean URLs | Slug-based paths, no file extensions |
|
|
146
|
-
|
|
147
|
-
### Custom Meta
|
|
148
|
-
|
|
149
|
-
Set per-page meta descriptions in the GitBook editor:
|
|
150
|
-
1. Open a page
|
|
151
|
-
2. Click the page settings (gear icon)
|
|
152
|
-
3. Add a custom description
|
|
153
|
-
|
|
154
|
-
This description appears in search engine results and social shares.
|
|
155
|
-
|
|
156
|
-
### Robots.txt
|
|
157
|
-
|
|
158
|
-
GitBook generates a `robots.txt` allowing all crawlers by default. For authenticated sites, the robots.txt blocks crawlers to prevent indexing of protected content.
|
|
159
|
-
|
|
160
|
-
## AI Readership Metrics
|
|
161
|
-
|
|
162
|
-
AI documentation readership increased over 500% in 2025. Optimizing for LLM consumption is no longer optional — it directly impacts how well AI tools can assist developers using your product.
|
|
163
|
-
|
|
164
|
-
## Feature Timeline
|
|
165
|
-
|
|
166
|
-
| Date | Feature |
|
|
167
|
-
|------|---------|
|
|
168
|
-
| January 2025 | `/llms.txt` support launched |
|
|
169
|
-
| June 2025 | `llms-full.txt` and `.md` page endpoints |
|
|
170
|
-
| September 2025 | MCP server for published spaces |
|
|
171
|
-
|
|
172
|
-
## Resources
|
|
173
|
-
|
|
174
|
-
- **LLM-Ready Docs**: https://gitbook.com/docs/publishing-documentation/llm-ready-docs
|
|
175
|
-
- **llms.txt Standard**: https://llmstxt.org/
|
|
176
|
-
- **Model Context Protocol**: https://modelcontextprotocol.io/
|
|
177
|
-
- **GitBook llms.txt**: https://docs.gitbook.com/llms.txt
|
|
178
|
-
- **GitBook llms-full.txt**: https://gitbook.com/docs/llms-full.txt
|
|
@@ -1,263 +0,0 @@
|
|
|
1
|
-
# Migration Reference
|
|
2
|
-
|
|
3
|
-
Migrate documentation from MkDocs, Docusaurus, or legacy GitBook (v1/v2) to the modern GitBook platform.
|
|
4
|
-
|
|
5
|
-
## Overview
|
|
6
|
-
|
|
7
|
-
GitBook accepts standard Markdown with a `SUMMARY.md` for structure. Migration from most documentation tools involves converting the navigation configuration and adjusting Markdown syntax for GitBook's extensions.
|
|
8
|
-
|
|
9
|
-
## From MkDocs
|
|
10
|
-
|
|
11
|
-
### Steps
|
|
12
|
-
|
|
13
|
-
1. **Copy content**: Move your `docs/` directory contents to the GitBook repo
|
|
14
|
-
2. **Convert navigation**: Transform `mkdocs.yml` `nav` to `SUMMARY.md`
|
|
15
|
-
3. **Convert admonitions**: Replace MkDocs admonition syntax with GitBook hints
|
|
16
|
-
4. **Add config**: Create `.gitbook.yaml`
|
|
17
|
-
5. **Fix links**: Ensure all internal links have `.md` extensions
|
|
18
|
-
6. **Connect Git Sync**: Link the repo to a GitBook space
|
|
19
|
-
|
|
20
|
-
### Navigation Conversion
|
|
21
|
-
|
|
22
|
-
**MkDocs (`mkdocs.yml`):**
|
|
23
|
-
```yaml
|
|
24
|
-
nav:
|
|
25
|
-
- Home: index.md
|
|
26
|
-
- Getting Started:
|
|
27
|
-
- Installation: getting-started/installation.md
|
|
28
|
-
- Quick Start: getting-started/quickstart.md
|
|
29
|
-
- API Reference:
|
|
30
|
-
- REST API: api/rest.md
|
|
31
|
-
- SDKs: api/sdks.md
|
|
32
|
-
```
|
|
33
|
-
|
|
34
|
-
**GitBook (`SUMMARY.md`):**
|
|
35
|
-
```markdown
|
|
36
|
-
# Summary
|
|
37
|
-
|
|
38
|
-
* [Home](README.md)
|
|
39
|
-
|
|
40
|
-
## Getting Started
|
|
41
|
-
* [Installation](getting-started/installation.md)
|
|
42
|
-
* [Quick Start](getting-started/quickstart.md)
|
|
43
|
-
|
|
44
|
-
## API Reference
|
|
45
|
-
* [REST API](api/rest.md)
|
|
46
|
-
* [SDKs](api/sdks.md)
|
|
47
|
-
```
|
|
48
|
-
|
|
49
|
-
### Admonition Conversion
|
|
50
|
-
|
|
51
|
-
| MkDocs | GitBook |
|
|
52
|
-
|--------|---------|
|
|
53
|
-
| `!!! note "Title"` | `{% hint style="info" %}` |
|
|
54
|
-
| `!!! warning "Title"` | `{% hint style="warning" %}` |
|
|
55
|
-
| `!!! tip "Title"` | `{% hint style="success" %}` |
|
|
56
|
-
| `!!! danger "Title"` | `{% hint style="danger" %}` |
|
|
57
|
-
|
|
58
|
-
**MkDocs:**
|
|
59
|
-
```markdown
|
|
60
|
-
!!! note "Important"
|
|
61
|
-
This is an important note.
|
|
62
|
-
```
|
|
63
|
-
|
|
64
|
-
**GitBook:**
|
|
65
|
-
```markdown
|
|
66
|
-
{% hint style="info" %}
|
|
67
|
-
**Important**: This is an important note.
|
|
68
|
-
{% endhint %}
|
|
69
|
-
```
|
|
70
|
-
|
|
71
|
-
### MkDocs Extensions Not Supported
|
|
72
|
-
|
|
73
|
-
| Extension | Alternative |
|
|
74
|
-
|-----------|-------------|
|
|
75
|
-
| `pymdownx.tabbed` | `{% tabs %}` blocks |
|
|
76
|
-
| `pymdownx.details` | `<details>` / `<summary>` |
|
|
77
|
-
| `pymdownx.superfences` | Standard fenced code blocks |
|
|
78
|
-
| `mkdocstrings` | Manual API docs or OpenAPI spec |
|
|
79
|
-
| Custom themes | GitBook branding customization |
|
|
80
|
-
| Plugins | GitBook integrations |
|
|
81
|
-
|
|
82
|
-
### .gitbook.yaml for MkDocs Migration
|
|
83
|
-
|
|
84
|
-
```yaml
|
|
85
|
-
root: ./
|
|
86
|
-
|
|
87
|
-
structure:
|
|
88
|
-
readme: README.md
|
|
89
|
-
summary: SUMMARY.md
|
|
90
|
-
```
|
|
91
|
-
|
|
92
|
-
Note: MkDocs uses `index.md` as the landing page. Rename to `README.md` or configure in `.gitbook.yaml`.
|
|
93
|
-
|
|
94
|
-
## From Docusaurus
|
|
95
|
-
|
|
96
|
-
### Steps
|
|
97
|
-
|
|
98
|
-
1. **Copy content**: Move `docs/` directory to the GitBook repo
|
|
99
|
-
2. **Convert sidebar**: Transform `sidebars.js` to `SUMMARY.md`
|
|
100
|
-
3. **Strip MDX**: Replace JSX/MDX components with Markdown equivalents
|
|
101
|
-
4. **Remove imports**: Delete `import` statements from Markdown files
|
|
102
|
-
5. **Convert frontmatter**: Remove Docusaurus-specific frontmatter fields
|
|
103
|
-
6. **Fix links**: Update relative links to include `.md` extensions
|
|
104
|
-
7. **Connect Git Sync**
|
|
105
|
-
|
|
106
|
-
### Sidebar Conversion
|
|
107
|
-
|
|
108
|
-
**Docusaurus (`sidebars.js`):**
|
|
109
|
-
```javascript
|
|
110
|
-
module.exports = {
|
|
111
|
-
docs: [
|
|
112
|
-
'intro',
|
|
113
|
-
{
|
|
114
|
-
type: 'category',
|
|
115
|
-
label: 'Getting Started',
|
|
116
|
-
items: ['installation', 'quickstart'],
|
|
117
|
-
},
|
|
118
|
-
{
|
|
119
|
-
type: 'category',
|
|
120
|
-
label: 'API',
|
|
121
|
-
items: ['api/rest', 'api/sdks'],
|
|
122
|
-
},
|
|
123
|
-
],
|
|
124
|
-
};
|
|
125
|
-
```
|
|
126
|
-
|
|
127
|
-
**GitBook (`SUMMARY.md`):**
|
|
128
|
-
```markdown
|
|
129
|
-
# Summary
|
|
130
|
-
|
|
131
|
-
* [Introduction](intro.md)
|
|
132
|
-
|
|
133
|
-
## Getting Started
|
|
134
|
-
* [Installation](installation.md)
|
|
135
|
-
* [Quick Start](quickstart.md)
|
|
136
|
-
|
|
137
|
-
## API
|
|
138
|
-
* [REST API](api/rest.md)
|
|
139
|
-
* [SDKs](api/sdks.md)
|
|
140
|
-
```
|
|
141
|
-
|
|
142
|
-
### MDX to Markdown
|
|
143
|
-
|
|
144
|
-
| Docusaurus MDX | GitBook Equivalent |
|
|
145
|
-
|----------------|-------------------|
|
|
146
|
-
| `<Tabs>` / `<TabItem>` | `{% tabs %}` / `{% tab %}` |
|
|
147
|
-
| `<Admonition type="note">` | `{% hint style="info" %}` |
|
|
148
|
-
| `<CodeBlock>` | Fenced code blocks |
|
|
149
|
-
| `import Component` | Remove entirely |
|
|
150
|
-
| `<Component />` | Replace with Markdown content |
|
|
151
|
-
| `:::note` | `{% hint style="info" %}` |
|
|
152
|
-
|
|
153
|
-
### Frontmatter Cleanup
|
|
154
|
-
|
|
155
|
-
Remove Docusaurus-specific fields:
|
|
156
|
-
|
|
157
|
-
```yaml
|
|
158
|
-
# Remove these:
|
|
159
|
-
# sidebar_position: 1
|
|
160
|
-
# sidebar_label: "Custom Label"
|
|
161
|
-
# slug: /custom-url
|
|
162
|
-
# custom_edit_url: ...
|
|
163
|
-
|
|
164
|
-
# Keep these (if used):
|
|
165
|
-
# title: Page Title
|
|
166
|
-
# description: Page description
|
|
167
|
-
```
|
|
168
|
-
|
|
169
|
-
GitBook uses `SUMMARY.md` for ordering, not frontmatter.
|
|
170
|
-
|
|
171
|
-
## From Legacy GitBook (v1/v2)
|
|
172
|
-
|
|
173
|
-
### Overview
|
|
174
|
-
|
|
175
|
-
Legacy GitBook (the open-source Node.js tool) used the same `SUMMARY.md` format. Migration is straightforward.
|
|
176
|
-
|
|
177
|
-
### Steps
|
|
178
|
-
|
|
179
|
-
1. **Export content**: Download or clone from the legacy instance
|
|
180
|
-
2. **Review SUMMARY.md**: Format is compatible — no conversion needed
|
|
181
|
-
3. **Remove plugins**: Legacy plugins are not supported; replace with native features
|
|
182
|
-
4. **Update .gitbook.yaml**: Add if not present
|
|
183
|
-
5. **Connect Git Sync**
|
|
184
|
-
|
|
185
|
-
### Plugin Replacements
|
|
186
|
-
|
|
187
|
-
| Legacy Plugin | Modern Equivalent |
|
|
188
|
-
|---------------|-------------------|
|
|
189
|
-
| `gitbook-plugin-search` | Built-in search |
|
|
190
|
-
| `gitbook-plugin-highlight` | Native syntax highlighting |
|
|
191
|
-
| `gitbook-plugin-sharing` | Built-in social sharing |
|
|
192
|
-
| `gitbook-plugin-fontsettings` | Theme customization |
|
|
193
|
-
| `gitbook-plugin-livereload` | N/A (cloud-hosted) |
|
|
194
|
-
| `gitbook-plugin-lunr` | Built-in search with AI |
|
|
195
|
-
| `gitbook-plugin-theme-*` | Branding customization |
|
|
196
|
-
|
|
197
|
-
### book.json to .gitbook.yaml
|
|
198
|
-
|
|
199
|
-
**Legacy (`book.json`):**
|
|
200
|
-
```json
|
|
201
|
-
{
|
|
202
|
-
"root": "./docs",
|
|
203
|
-
"structure": {
|
|
204
|
-
"readme": "README.md",
|
|
205
|
-
"summary": "SUMMARY.md"
|
|
206
|
-
},
|
|
207
|
-
"plugins": ["search", "highlight"]
|
|
208
|
-
}
|
|
209
|
-
```
|
|
210
|
-
|
|
211
|
-
**Modern (`.gitbook.yaml`):**
|
|
212
|
-
```yaml
|
|
213
|
-
root: ./docs/
|
|
214
|
-
|
|
215
|
-
structure:
|
|
216
|
-
readme: README.md
|
|
217
|
-
summary: SUMMARY.md
|
|
218
|
-
```
|
|
219
|
-
|
|
220
|
-
Plugins are removed — features are built into the platform.
|
|
221
|
-
|
|
222
|
-
## Common Post-Migration Tasks
|
|
223
|
-
|
|
224
|
-
### Fix Relative Links
|
|
225
|
-
|
|
226
|
-
Ensure all internal links use `.md` extensions:
|
|
227
|
-
|
|
228
|
-
```markdown
|
|
229
|
-
<!-- Correct -->
|
|
230
|
-
[Installation](getting-started/installation.md)
|
|
231
|
-
|
|
232
|
-
<!-- Incorrect — will break -->
|
|
233
|
-
[Installation](getting-started/installation)
|
|
234
|
-
[Installation](/getting-started/installation)
|
|
235
|
-
```
|
|
236
|
-
|
|
237
|
-
### Fix Image Paths
|
|
238
|
-
|
|
239
|
-
Use relative paths from the page file:
|
|
240
|
-
|
|
241
|
-
```markdown
|
|
242
|
-
<!-- From docs/guides/setup.md -->
|
|
243
|
-

|
|
244
|
-
|
|
245
|
-
<!-- Or use .gitbook/assets for shared images -->
|
|
246
|
-

|
|
247
|
-
```
|
|
248
|
-
|
|
249
|
-
### Validate Structure
|
|
250
|
-
|
|
251
|
-
After migration, verify:
|
|
252
|
-
- All files referenced in `SUMMARY.md` exist
|
|
253
|
-
- All images load correctly
|
|
254
|
-
- No broken internal links
|
|
255
|
-
- Code blocks have language tags
|
|
256
|
-
- GitBook renders pages as expected
|
|
257
|
-
|
|
258
|
-
## Resources
|
|
259
|
-
|
|
260
|
-
- **MkDocs**: https://www.mkdocs.org/
|
|
261
|
-
- **Docusaurus**: https://docusaurus.io/
|
|
262
|
-
- **Git Sync Configuration**: https://docs.gitbook.com/integrations/git-sync/content-configuration
|
|
263
|
-
- **Publishing Guide**: https://gitbook.com/docs/guides/editing-and-publishing-documentation/complete-guide-to-publishing-docs-gitbook
|