Skip to content

Bulk export spaces from GitBook to markdown

License

Notifications You must be signed in to change notification settings

conversation/gitbook-to-md

Repository files navigation

Gitbook to Markdown exporter

Getting started

npm run build

# Fetch and parse an entire space
API_TOKEN=xxxx npm run get-content -- [organisation id]
API_TOKEN=xxxx npm run get-pages -- [space name]
npm run parse-pages -- [space name]

# See documents in data/

# Parse a single page
npm run gitbook-to-md -- [page.json]

Testing

# Run tests
npm run test

# Continually watch tests
npm run test:watch

# Check types
npm run types

Credits

H/T to Steven G. Harms whose gist kick-started this project.

About

Bulk export spaces from GitBook to markdown

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published