| name | gitbook-common-issues |
| description | Sub-skill of gitbook: Common Issues. |
| version | 1.0.0 |
| category | development |
| type | reference |
| scripts_exempt | true |
Common Issues
Common Issues
Issue: 401 Unauthorized
curl -s -H "Authorization: Bearer $GITBOOK_API_TOKEN" \
"https://api.gitbook.com/v1/user"
Issue: Git sync not updating
curl -s -X POST -H "Authorization: Bearer $GITBOOK_API_TOKEN" \
"https://api.gitbook.com/v1/spaces/SPACE_ID/git/sync"
Issue: Broken links after migration
import re
content = path.read_text()
content = re.sub(
r'\[([^\]]+)\]\((?!http)([^)]+)(?<!\.md)\)',
r'[\1](\2.md)',
content
)
Issue: Images not displaying
<!-- Use absolute paths from root -->

<!-- Or relative from current file -->
