Skip to content
Clevera Help Center

Publish articles to GitLab

Connect GitLab.com and publish any Clevera article as a Markdown file, with its screenshots, to the project and folder you pick: permissions, protected branches, file names, images, updates and error messages.

Updated 10 min read

Connect GitLab once and you can publish any Clevera article to a GitLab project as a Markdown file, ready for a docs site, a docs/ folder or a project handbook. This article covers connecting, choosing the project and folder, what the file looks like and how updates work.

Before you start

  • Plan: publishing to GitLab 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 GitLab. Once it's connected, anyone who can edit an article can publish it.
  • GitLab.com only: Clevera connects to GitLab.com. Self-managed GitLab servers aren't supported.
  • Role in GitLab: Clevera lists projects where the connecting account has the Developer role or higher. To commit to a protected default branch, that account usually needs Maintainer (see Protected branches).
  • 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 GitLab

  1. Open Integrations

    In the sidebar, open the workspace menu and choose Integrations. Find GitLab under Code repositories and click Connect on its row.

  2. Sign in to GitLab and authorize

    Sign in to GitLab.com if you aren't already. GitLab asks you to authorize Clevera with these scopes:

    GitLab scope Why
    api GitLab's file API needs it to create and update files
    read_user To show your GitLab username in Clevera
    read_repository To check whether a file already exists
    write_repository To commit the Markdown file and its images

    Click Authorize.

  3. Check the connection

    You return to Integrations with "GitLab connected successfully to" followed by your GitLab username. Your GitLab username appears under GitLab, and also under Connected. Before you publish anything it reads "Nothing published yet".

Publish an article

  1. Open the Publish tab

    In the editor, click Share and open the Publish tab. Under Publish the article, click the GitLab 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.

  2. Choose the project and folder

    Under Where it goes, choose:

    Field What to pick Notes
    Repository The GitLab project for the file Projects where you're Developer or higher, most recently updated first. The first one is selected for you
    Folder A path such as docs or articles/guides "The Markdown file is created here. Leave it empty for the repository root." Starts as docs. Folders that don't exist yet are created

    Clevera remembers what you picked for next time.

    The Publish to GitLab form with the help-docs project and the docs/guides folder
    Projects where your GitLab account is Developer or higher.
  3. Publish

    Click Publish to GitLab. You see "Looking for an existing copy in GitLab", then Writing the page. When it's done you see "Published to GitLab." Click Open in GitLab 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 project's default branch (usually main). Clevera commits straight to it; it doesn't open a merge 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" becomes create-your-first-invoice.md. Titles in other scripts or with accents are spelled in Latin letters first ("Créer une facture" becomes creer-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>, or Update article: <title> when you update an existing file.
  • Commit author: the GitLab account that connected the integration.

Protected branches

GitLab protects the default branch by default, and usually only Maintainers can push to it. If the connected account is a Developer, the commit is refused with "GitLab refused the commit: you need Developer access or higher, and the branch must not be protected." Either give that account the Maintainer role, or allow Developers to push under Settings → Repository → Protected branches in the project.

What the file looks like

Clevera writes Markdown that GitLab renders, with a short front matter block at the top:

Front matter
---
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])
Tables Markdown tables
Code blocks Fenced code blocks with the language; a code title becomes a bold line above
Callouts GitLab alerts with the title on the same line, such as > [!WARNING] Careful: info and note as NOTE, tip and success as TIP, warning as WARNING, danger as CAUTION
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 A collapsible <details> section
Cards A list of links with their descriptions; card icons are left out
Highlight, superscript, subscript <mark>, <sup> and <sub> tags
Equations Math ($…$ and math blocks)
Screenshots and images Image files committed to the project, 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 project 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 project 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 GitLab Pages or another static-site generator (such as MkDocs, Docusaurus or Hugo) builds your docs from the project, point Folder at the folder it reads. Each publish is a normal commit, so your pipeline 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 GitLab never come back to Clevera.

When you publish to the same project and folder, Clevera finds the file with the same name and shows "This article is already in GitLab." Click View it to open the existing file, then choose:

Option What happens in GitLab Button
Update the existing article The same file and its images are overwritten in a new commit. Update in GitLab
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 GitLab yourself. Nothing in Clevera deletes files from your project.

Disconnect GitLab

  1. Open Integrations, click the ⋯ menu on your GitLab account and choose Disconnect (or click the account name, then Disconnect).
  2. Confirm Disconnect alexrivera? (with your username): "You can no longer publish to it from the editor. Content you already published stays in GitLab."
Disconnect alexrivera? with Cancel and Disconnect, before disconnecting GitLab

Disconnecting deletes Clevera's tokens. To revoke Clevera's access on GitLab too, open your GitLab avatar menu → Edit profile → Applications, find Clevera under Authorized applications and click Revoke.

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 GitLab on the Integrations page first." GitLab isn't connected in this workspace yet. Ask an owner or Administrator to connect it.
"No repositories in this account." The connected account isn't Developer or higher in any project. Add it to the project, or reconnect with another account.
A project is missing from the list Check that the connected account is Developer or higher in it. The list holds up to 1,000 projects, most recently updated first.
"Couldn’t load your GitLab locations" Click Try again. If it keeps happening, reconnect GitLab.
"GitLab refused the commit: you need Developer access or higher, and the branch must not be protected." Usually a protected default branch. See Protected branches.
"GitLab rejected the commit." followed by what GitLab said Read GitLab's reason, fix it in the project, then click Try again.
"The GitLab project was not found, or you no longer have access to it." The project was moved or deleted, or the account lost access. Pick another project, or fix the access in GitLab.
"GitLab rejected the access token. Please reconnect GitLab." or "No refresh token available. Please reconnect your GitLab account." Click Reconnect, or open Integrations and click Reconnect on your GitLab account.
"Failed to refresh GitLab token. Please reconnect." The authorization was revoked in GitLab. Reconnect.
"GitLab rate limit reached. Please wait a moment and try again." Wait a minute, then click Try again.
"Connection failed:" followed by GitLab's reason You declined the authorization or GitLab refused it. Click Connect again and authorize.
"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 GitLab. Please try again." Click Try again. If it keeps failing, reconnect GitLab and contact support.
The connection shows Needs attention or Error Click Reconnect on the row and authorize again.