The main description is in the Gitbook documentation
There are several examples in the repo
For submitting the integration, you just need to run this command:
gitbook publishAfter it, the command line will show the integration URL. Something like this:
🚀 Integration "GraphiQL" published
👉 https://app.gitbook.com/integrations/GraphiQLWhen the URL is browsed, and logged in in Gitbook, it automatically add the integration in the designed space, the one used for creating the API_KEY.
For connecting the integration to the local code, this command is needed:
gitbook dev 0CbiPo9O1vg65a4rm24QThat key is retrieved from the space UI. More info here
It is important to note that all the changes in the code are automatically pushed to Gitbook, except the ones in the gitbook-manifest.yaml
Two steps are needed in order to fill the required URL in the add-on: