Tal Gluck, GitBook
Welcome! Today we're going to set up a docs site with GitBook that contains both product docs and auto-updating API docs.
You'll learn how to quickly get up-and-running with a GitBook docs site, customize that site, add an OpenAPI spec, build and customize docs from that spec, and use the GitBook AI Assistant to ask questions about your docs and API.
Here are the steps:
- Fork this repo (use your personal org instead of a company one to keep permissions easy for now)
- Sign up for GitBook
- Create your GitBook org and site
- Set up Git Sync with your newly forked repo (under Monorepo, specify the
./docs-beforedirectory) - Open a change request and make a simple modification
- Publish and view the docs
- Customize the docs - change the styling, the fonts, the icons - then republish
- Add your OpenAPI spec - use the "before" spec
- Add an OpenAPI block to your page
- Add a set of OpenAPI pages to your docs and re-publish your docs
- Customize your OpenAPI spec, push changes, refresh the spec, and see the changes
- Ask some questions about the spec to the GitBook Assistant
Examples:
