Skip to content
Clevera Help Center

Publish articles to GitHub

Connect GitHub and publish any Clevera article as a Markdown file, with its screenshots, to the repository and folder you pick: permissions, file names, front matter, images, updates and error messages.

Updated 10 min read

Connect GitHub once and you can publish any Clevera article to a repository as a Markdown file, ready for a docs site, a wiki-style docs/ folder or a README collection. This article covers connecting, choosing the repository and folder, what the file looks like and how updates work.

Before you start

  • Plan: publishing to GitHub 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 GitHub. Once it's connected, anyone who can edit an article can publish it.
  • Access in GitHub: the person who connects needs write access to the repositories you want to publish to, and the right to install a GitHub App on that personal account or organization (or an organization owner to approve it).
  • 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 GitHub

  1. Open Integrations

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

    Integrations, Code repositories: GitHub, GitLab and Bitbucket, with Connect on the GitHub row
    For everyone else, Connect is greyed out.
  2. Authorize Clevera on GitHub

    GitHub asks you to authorize the Clevera AI app. It requests read access to your organization memberships, so Clevera can list the accounts you belong to. Click Authorize.

  3. Install the app on your repositories

    GitHub then opens the Clevera AI app installation page. Pick your personal account or an organization, then choose All repositories or Only select repositories. The app asks for:

    GitHub permission Why
    Contents: read and write To create and update the Markdown file and its images
    Metadata: read-only Required by GitHub for every app; lets Clevera list repositories

    Click Install. Repeat for each organization you want to publish to.

  4. Check the connection

    Back on Integrations, your GitHub account or organization name appears under GitHub, and also under Connected. Before you publish anything it reads "Nothing published yet".

    GitHub on the Integrations page with the acme-inc account and Nothing published yet

Add or remove repositories later

Clevera only sees repositories the app is installed on. To change that, open Integrations, click your GitHub account name (or choose Details in its ⋯ menu), and under Access click Repository access. On GitHub, open the account, click Configure and change the repository list. New repositories show up the next time you open the Publish tab.

The GitHub account details with the Repository access link
Repository access opens GitHub, where you choose which repositories Clevera can see.

Publish an article

  1. Open the Publish tab

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

    Under Where it goes, choose:

    Field What to pick Notes
    Account Your personal account or an organization Only shown when your repositories belong to more than one account
    Repository The repository for the file 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 GitHub form with the docs-site repository and the docs folder
    The file goes to the repository's default branch, in the folder you type.
  3. Publish

    Click Publish to GitHub. You see "Looking for an existing copy in GitHub", then Writing the page. When it's done you see "Published to GitHub." Click Open in GitHub 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 default branch (usually main). 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" 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 GitHub account that connected the integration.

What the file looks like

Clevera writes GitHub-flavored Markdown 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 GitHub alerts: info and note as [!NOTE], tip and success as [!TIP], warning as [!WARNING], danger as [!CAUTION]. The title is bold inside the alert
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, which GitHub renders
Equations GitHub math ($…$ and math blocks)
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

Most static-site generators that build from a repository (such as Docusaurus, MkDocs, Jekyll or Hugo) read title from the front matter and ignore fields they don't know. A common setup:

  1. Point the Folder at the folder your docs site reads, for example docs or content/guides.
  2. Publish each article there; your site's normal build picks up the new commit.
  3. Check whether your generator renders GitHub alerts, math and <details>; some show alerts as plain quotes.

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 on GitHub 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 GitHub." Click View it to open the existing file, then choose:

Option What happens on GitHub Button
Update the existing article The same file and its images are overwritten in a new commit. Update in GitHub
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
The duplicate prompt for GitHub: update the existing article or create a new one, with Update in GitHub

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 on GitHub yourself.

Nothing in Clevera deletes files from your repository.

Disconnect GitHub

  1. Open Integrations, click the ⋯ menu on your GitHub account and choose Disconnect (or click the account name, then Disconnect).
  2. Confirm. "You can no longer publish to it from the editor. Content you already published stays in GitHub."

Disconnecting deletes Clevera's access token. To remove Clevera's access on GitHub too, uninstall the Clevera AI app (GitHub Settings → Applications → Installed GitHub Apps → Configure → Uninstall) and revoke the authorization under Authorized GitHub Apps.

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 GitHub on the Integrations page first." GitHub isn't connected in this workspace yet. Ask an owner or Administrator to connect it.
"No repositories in this account." Install the Clevera AI app on that account, or add the repository to it through Repository access. If repositories were there before, reconnect GitHub.
A repository is missing from the list Check that the Clevera AI app is installed on it. The list holds up to 1,000 repositories, most recently updated first.
"Couldn’t load your GitHub locations" Click Try again. If it keeps happening, reconnect GitHub.
"Could not publish to acme-inc/docs-site." followed by what GitHub said GitHub refused the commit. Usually the connected account can't push to the default branch: branch protection that requires pull requests or reviews blocks it. Allow the commit, or publish to a repository without that rule.
"GitHub rate limit reached. Please wait a moment and try again." Wait a minute, then click Try again.
"Your GitHub connection has expired. Please reconnect GitHub." Click Reconnect, or open Integrations and click Reconnect on your GitHub account.
"Connection failed:" followed by GitHub's reason You declined the authorization or GitHub 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.
"Too many connection attempts. Please try again later." Wait a minute; you can start up to 5 connections a minute.
"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 GitHub. Please try again." Click Try again. If it keeps failing, reconnect GitHub and contact support.
The connection shows Needs attention or Error Click Reconnect on the row and authorize again.