Publish articles to GitBook
Connect GitBook with a personal access key and publish Clevera articles as pages in your GitBook spaces. Where to create the key, picking sites, how hints, steps and tabs convert, what updating does, and common errors.
Publish a Clevera article as a page in a GitBook space. GitBook connects with a personal access key instead of a sign-in, and the page appears at the top level of the space you pick.
Before you start
- In Clevera: the workspace is on the Pro or Custom plan, and you are an owner or admin to connect GitBook. Once it's connected, anyone who can edit an article can publish it. See Connect your tools on the Integrations page.
- In GitBook: any plan. The key acts as the GitBook user who created it, so that person needs edit access to the spaces you publish to.
- An article: generate it first. Publishing sends the article only. To include a video, place it inside the article; see Show a video in an article.
Create a GitBook access key
- In GitBook, open your account settings and go to Developer (
app.gitbook.com/account/developer). - Create a new personal access token, give it a name such as "Clevera", and copy it. GitBook shows it only once.
Connect GitBook
Open the connect window
In Clevera, click your workspace name in the sidebar, choose Integrations, find GitBook and click Connect. The Connect GitBook window says "Paste a key. We check it before saving anything." and has an Open GitBook link to the Developer page.
Paste and check the key
Paste the key into Access key and click Check key. When GitBook accepts it you see "Key accepted."
Choose the sites
Under Sites to publish to, Clevera lists your docs sites (or spaces) and selects all of them. Open the list to untick any you don't want, for example "2 of 3 selected", then click Connect. You see "GitBook connected.".

Clevera checks the key before it saves anything.
If your GitBook account has no spaces at all, Clevera creates one named "Clevera" in your first organization so you can publish straight away.
The key doesn't expire on Clevera's side. To change the key or the sites, open the ⋯ menu on your GitBook account on Integrations, choose Reconnect and go through the same window; the new key and choice replace the old ones.
Publish an article to GitBook
Open the Publish tab
In the editor, click Share → Publish and click the GitBook tile under Ready to publish.
Choose a space
Under Where it goes, the list shows the spaces behind the sites you chose, with their icons.

Publish
Click Publish to GitBook. Clevera looks for an existing copy first; if a page with the same title is already in the space, choose what to do (see Update a page you published). When it's done you see "Published to GitBook." Click Open in GitBook to see the page.
You can close the Share window while it runs; a notification tells you when it's done.
The page is added at the top level of the space, and its address comes from the title: "Set up billing" becomes /set-up-billing. Titles in other scripts or with accents are spelled in Latin letters first; a title with nothing left to spell gets a short fixed code. Move or rename the page in GitBook afterwards if you like.
What the page looks like in GitBook
The page title is the article's title. The page holds the article only: the video the article came from isn't added.
| In Clevera | In GitBook |
|---|---|
| Headings, paragraphs | Headings and text |
| Bold, italic, strikethrough, inline code, links | Kept |
| Highlight, superscript, subscript | Kept |
| Bulleted and numbered lists, checklists | Lists and task lists |
| Quotes | Quotes |
| Code blocks | Code blocks with the language and the code title |
| Dividers | Dividers |
| Tables | Tables with the text of each cell |
| Callouts | Hint blocks: info → Info, note → Info, tip → Success, success → Success, warning → Warning, danger → Danger |
| Numbered steps | A GitBook stepper, one step per step |
| Tabs | GitBook tabs |
| Collapsible sections | Expandable blocks |
| Cards | A list of links with their descriptions; card icons are left out |
| Equations | GitBook math |
| Screenshots | Images uploaded to the space, with the caption |
| Videos and embeds in the article | Embed blocks. A Clevera video is included only when that video's share link is on. |
Screenshots are uploaded into the space as files, so they keep working even if you delete the article in Clevera. A video file uploaded into the article stays a link to Clevera that expires after a while; publish again to renew it.
Update a page you published
Publishing only goes one way. The GitBook page doesn't update when you edit the article in Clevera, and edits made in GitBook never come back to Clevera. After you edit the article, publish it again to the same space. Clevera looks for a page with the same title (capitalization doesn't matter) or the same address and shows "This article is already in GitBook."
- Update the existing article overwrites that page's content and title. The address stays the same. Changes made in GitBook since are overwritten; GitBook's history lets you get them back. Click Update in GitBook.
- Create a new article adds a second page under the New title you enter (Clevera suggests one such as "Set up billing (2)"), with its own address. Click Create new article.
Disconnect and revoke access
- In Clevera, open Integrations, open the ⋯ menu on your GitBook account, choose Disconnect and confirm. Pages you already published stay in GitBook.
- In GitBook, delete the access key on the Developer page so it can't be used again.
Troubleshooting
| You see | What to do |
|---|---|
| "Paste a key first." | The key field is empty. |
| "Invalid GitBook access key. Please check and try again." | The key is wrong or was deleted. Create a new one and paste it. |
| "Failed to validate GitBook access key." or "We could not check that key. Try again." | GitBook didn't answer. Try again in a moment. |
| "Pick at least one site." | Tick at least one site before Connect. |
| "No GitBook spaces or docs sites found, and we could not create one automatically. Please create a space in GitBook and try again." | Create a space in GitBook, then connect again. |
| "Failed to connect to GitBook. Please check your access key." | Check the key and connect again. |
| "Could not load your GitBook spaces. Please try again." | Click Try again. If it repeats, reconnect GitBook. |
| "Please select a space to publish to." | Pick a space first. |
| A space is missing from the list | It isn't part of the sites you chose, or the key's user can't see it. Reconnect and pick the site. |
| "GitBook rejected the page content" or "GitBook could not merge the change request", with GitBook's reason | The key's user can't edit that space, or GitBook refused the change. Check access in GitBook, then click Try again. |
| "Access key not found. Please reconnect GitBook." | Reconnect GitBook with a key. |
| "Article content is empty or invalid." | The article has no content yet. Open it, check it, then publish. |
| "The page to replace was not found in GitBook. It may have been moved or deleted." | Choose Create a new article instead. |
| "Failed to publish to GitBook. Please try again." or "Failed to update page in GitBook. Please try again." | Click Try again. If it keeps failing, reconnect with a fresh key. |