Publish articles to Bitbucket
Connect Bitbucket Cloud and publish any Clevera article as a Markdown file, with its screenshots, to the repository and folder you pick: permissions, branch restrictions, file names, images, updates and error messages.
Connect Bitbucket once and you can publish any Clevera article to a Bitbucket repository as a Markdown file, ready for a docs site or a docs/ folder next to your code. This article covers connecting, choosing the repository and folder, what the file looks like and how updates work.
Before you start
- Plan: publishing to Bitbucket is part of the Pro and Custom plans. On Free and Starter the Publish tab shows "Publishing to your tools is included in Pro". See Choose a plan.
- Role in Clevera: only the workspace owner or an Administrator can connect or disconnect Bitbucket. Once it's connected, anyone who can edit an article can publish it.
- Bitbucket Cloud only: Clevera connects to bitbucket.org. Bitbucket Data Center and Server aren't supported.
- Access in Bitbucket: the connecting account must be able to contribute to the repositories you want to publish to, with write access to the main branch.
- An article: you publish the article that belongs to a video or recording. Generate it first; see Turn a recording into an article.
Publishing uses no credits.
Connect Bitbucket
Open Integrations
In the sidebar, open the workspace menu and choose Integrations. Find Bitbucket under Code repositories and click Connect on its row.
Grant access in Bitbucket
Sign in to Bitbucket if you aren't already. Bitbucket asks you to grant Clevera access:
Bitbucket permission Why Account: read To show your Bitbucket name in Clevera Repositories: read To list repositories and check whether a file already exists Repositories: write To commit the Markdown file and its images Click Grant access.
Check the connection
You return to Integrations with "Bitbucket connected successfully to" followed by your Bitbucket name. Your Bitbucket name appears under Bitbucket, and also under Connected. Before you publish anything it reads "Nothing published yet".
Publish an article
Open the Publish tab
In the editor, click Share and open the Publish tab. Under Publish the article, click the Bitbucket tile under Ready to publish.
The article is published in the language you have open in the editor. Switch language in the top bar first to publish a translation.
Choose the repository and folder
Under Where it goes, choose:
Field What to pick Notes Repository The Bitbucket repository for the file Repositories you can contribute to, across your Bitbucket workspaces, most recently updated first. The first one is selected for you Folder A path such as docsorarticles/guides"The Markdown file is created here. Leave it empty for the repository root." Starts as docs. Folders that don't exist yet are createdClevera remembers what you picked for next time.

Publish
Click Publish to Bitbucket. You see "Looking for an existing copy in Bitbucket", then Writing the page. When it's done you see "Published to Bitbucket." Click Open in Bitbucket to see the file.
You can close the Share window while it runs; a notification tells you when it's done.
Where the file goes
- Branch: the repository's main branch (usually
mainormaster). Clevera commits straight to it; it doesn't open a pull request and you can't pick another branch. - File name: the title in lowercase, with spaces turned into hyphens, ending in
.md. "Create your first invoice" becomescreate-your-first-invoice.md. Titles in other scripts or with accents are spelled in Latin letters first ("Créer une facture" becomescreer-une-facture.md). A title with nothing left to spell, such as one made only of emoji, gets a short fixed code instead (article-plus 8 characters). Names are cut at 80 characters. - Images: the article's screenshots go in
assets/<file name>/inside the same folder, in the same commit. - Commit message:
Add article: <title>, orUpdate article: <title>when you update an existing file. - Commit author: the Bitbucket account that connected the integration.
Branch restrictions
If the repository has a branch restriction on its main branch (for example, changes only through pull requests, or writes limited to certain people), Clevera's commit is refused, for example with "You need write access to commit to this Bitbucket repository." Add the connected account to the people who can write to the branch under Repository settings → Branch restrictions, or publish to a repository without that rule.
What the file looks like
Clevera writes plain Markdown that Bitbucket's file view can show, with a short front matter block at the top. It contains no raw HTML, because Bitbucket doesn't render it.
---
title: "Create your first invoice"
created_at: "2026-10-12T09:30:00+00:00"
updated_at: "2026-10-12T10:05:00+00:00"
source: "Clevera"
---
| In the Clevera article | In the Markdown file |
|---|---|
| Headings, bold, italic, strikethrough, inline code | Standard Markdown |
| Links | Kept. Links to other Clevera pages keep their text only, because they wouldn't work in a repository |
| Bulleted, numbered and nested lists | Standard Markdown lists |
| Checklists | Task lists (- [ ] / - [x]); Bitbucket may show the boxes as text |
| Tables | Markdown tables |
| Code blocks | Fenced code blocks with the language; a code title becomes a bold line above |
| Callouts | A quote that starts with an emoji and the callout title in bold: info ℹ️, tip 💡, warning ⚠️, note 📝, success ✅, danger 🚨 |
| Numbered steps | A numbered list: each step's title in bold, its content nested under it |
| Tabs | Each tab's label in bold, followed by its content |
| Toggles | The summary in bold, followed by the content, always open |
| Cards | A list of links with their descriptions; card icons are left out |
| Highlight, superscript, subscript | Plain text |
| Equations | Math blocks as math code blocks, inline equations as inline code (Bitbucket doesn't render math) |
| Screenshots and images | Image files committed to the repository, with the caption in italics |
| Videos and embeds | A poster or YouTube thumbnail that links to the video, plus a ▶ link with its title |
The video the article came from isn't added to the file. A Clevera video placed inside the article becomes a link to its player, only when that video's share link is on. See Show a video in an article.
Images
Screenshots are committed to your repository next to the file, and the Markdown links to them by relative path (assets/<file name>/…). They keep working without Clevera, and in a private repository they stay as private as the rest of it.
A video file you uploaded into the article isn't committed. It stays a link to Clevera that expires after a while; publish again to renew it.
Use it with a docs site
If a static-site generator (such as MkDocs, Docusaurus or Hugo) builds your docs from the repository, point Folder at the folder it reads. Each publish is a normal commit, so Bitbucket Pipelines or your other build runs as usual. Most generators read title from the front matter and ignore fields they don't know.
Update an article you already published
Publishing only goes one way. Edits you make in Clevera stay in Clevera until you publish again, and changes made to the file in Bitbucket never come back to Clevera.
When you publish to the same repository and folder, Clevera finds the file with the same name and shows "This article is already in Bitbucket." Click View it to open the existing file, then choose:
| Option | What happens in Bitbucket | Button |
|---|---|---|
| Update the existing article | The same file and its images are overwritten in a new commit. | Update in Bitbucket |
| Create a new article | "Keep the existing one and add this under a new title." Clevera suggests a New title such as "Create your first invoice (2)", which becomes a new file. | Create new article |
If the title changed in Clevera, the file name changes too, so publishing creates a new file next to the old one. Delete or rename the old file in Bitbucket yourself. Nothing in Clevera deletes files from your repository.
Disconnect Bitbucket
- Open Integrations, click the ⋯ menu on your Bitbucket account and choose Disconnect (or click the account name, then Disconnect).
- Confirm. "You can no longer publish to it from the editor. Content you already published stays in Bitbucket."
Disconnecting deletes Clevera's tokens. To revoke Clevera's access on Bitbucket too, open your Bitbucket Personal settings, go to App authorizations and revoke Clevera.
Troubleshooting
| You see | What to do |
|---|---|
| "Integrations are included in Pro and Custom plans." | Upgrade the workspace to Pro. See Choose a plan. |
| Connect is greyed out on the Integrations page | Only an owner or admin can connect. Ask one of them. |
| "You can view this item but not publish it. Ask someone who can edit it." | You need edit access to the article to publish it. |
| "Connect Bitbucket on the Integrations page first." | Bitbucket isn't connected in this workspace yet. Ask an owner or Administrator to connect it. |
| "No repositories in this account." | The connected account can't contribute to any repository. Give it access, or reconnect with another account. |
| A repository is missing from the list | Check that the connected account can contribute to it. The list holds up to 1,000 repositories, most recently updated first. |
| "Couldn’t load your Bitbucket locations" | Click Try again. If it keeps happening, reconnect Bitbucket. |
| "You need write access to commit to this Bitbucket repository." | Usually a branch restriction or missing write access. See Branch restrictions. |
| "Bitbucket rejected the commit." followed by what Bitbucket said | Read Bitbucket's reason, fix it in the repository, then click Try again. |
| "The Bitbucket repository was not found, or you no longer have access to it." | The repository was moved or deleted, or the account lost access. Pick another repository, or fix the access in Bitbucket. |
| "Bitbucket rejected the access token. Please reconnect Bitbucket." or "No refresh token available. Please reconnect your Bitbucket account." | Click Reconnect, or open Integrations and click Reconnect on your Bitbucket account. |
| "Failed to refresh Bitbucket token. Please reconnect." | The access was revoked in Bitbucket. Reconnect. |
| "Bitbucket rate limit reached. Please wait a moment and try again." | Wait a minute, then click Try again. |
| "Connection failed:" followed by Bitbucket's reason | You declined access or Bitbucket refused it. Click Connect again and grant access. |
| "Invalid authorization state. Please try again." or "Authorization expired. Please try again." | The sign-in took too long or ran in another tab. Start again from Connect. |
| "Article content is empty or invalid." | The article has no content in this language. Generate or write it, then publish again. |
| "No article found. Please generate an article first." | The video has no article in the language you have open. Generate it, or switch language. |
| "Too many publish attempts. Please wait a moment before trying again." | You can publish up to 20 times a minute. Wait a minute. |
| "Failed to publish to Bitbucket. Please try again." | Click Try again. If it keeps failing, reconnect Bitbucket and contact support. |
| The connection shows Needs attention or Error | Click Reconnect on the row and grant access again. |