Flude is under construction. Features, commands, limits and behavior described here may be incomplete or change without notice.
Skip to content

Getting started with Flude SaaS ​

Audience: someone who has never used Flude and wants documentation for a public C++ repository generated by the hosted service. Plan for about 15 minutes: five for the account and the key, five for the workflow, the rest for the first run.

Flude SaaS is the hosted version of the engine described in the rest of this guide. You do not install anything: a GitHub Action sends your repository address and commit to the service, the service clones the repository, builds the documentation and hands back an archive.

If you want to run the engine on your own machine instead, see Environment Requirements and the CLI Reference.

What you need ​

  • A public repository owned by a personal account (not an organization) on GitHub. GitLab and Bitbucket have their own integrations, see Other CI systems.
  • C++ sources with documentation comments (Doxygen style, see Commenting Rules).
  • A Flude account, created in step 1.

The free plan limits apply to every job.

1. Create an account and an API key ​

  1. Open app.flude.guide and sign in with your GitHub, GitLab or Bitbucket account.
  2. Open your account page and go to the API Keys tab. Create a key and copy it right away: keep it like a password. If you lose it, create a new key and delete the old one.
  3. In your GitHub repository open Settings → Secrets and variables → Actions and add a repository secret named FLUDE_API_TOKEN with the key as its value.

The key identifies your account. Anyone who has it can start jobs on your quota, so never put it in a workflow file or a commit.

2. Add the workflow ​

Create .github/workflows/flude-docs.yml in your repository:

yaml
name: Flude docs

on:
  workflow_dispatch:

jobs:
  docs:
    runs-on: ubuntu-latest
    steps:
      - name: Generate documentation with Flude
        id: flude
        uses: Flude-team/flude-action@v1
        with:
          api-token: ${{ secrets.FLUDE_API_TOKEN }}
          api-base-url: https://control-plane.flude.guide

      - name: Keep the result
        uses: actions/upload-artifact@v4
        with:
          name: flude-docs
          path: ${{ steps.flude.outputs.result-path }}

You do not need a checkout step: the action sends the repository and the commit of the workflow run, and the service clones the repository itself.

If your headers depend on macros or on include paths of your build, tell Flude about them with the defines, cpp-std, compile-commands-path, vcxproj-path or cmake-lists-path inputs. They are described in the README of the action.

3. Run it and read the result ​

  1. Open the Actions tab of your repository, choose Flude docs and press Run workflow.
  2. The step prints the job ID and follows the job: queued, then running, then succeeded. This usually takes a few minutes.
  3. When the job has succeeded, download the flude-docs artifact from the run page and unzip it.

The archive holds:

PathWhat it is
output/The generated pages, in Markdown with front matter that Hugo and Docusaurus read.
report.sarif, codequality.jsonThe documentation coverage audit: which classes and members have no comment.
output/warnings.txtPresent only when the build had something to tell you: warnings, and notices such as a file that could not be read.

The Markdown is the input of a static site generator; Flude does not host the site for you in the free plan.

If a file could not be documented, the notice names it, for example src/deep.h: the code is nested more than 100 levels deep, its entities are missing from the documentation. The rest of the repository is documented as usual.

4. Choose what is documented ​

Without any configuration the service documents the public C++ headers it finds. To narrow or widen the selection, put a .flude.yml file in the root of the repository. Its keys are described in Project Settings (.flude.yml). Keep the selection small: the sources that are documented must fit in the limit below.

Free plan limits ​

These are the limits of the free plan today. They can change while the service is being tested; the message of a refusal always names the current value.

LimitValue
RepositoriesPublic repositories owned by a personal account
Size of the repositoryup to 200 MB
Size of the sources selected for documentationup to 5 MB
Jobs per account5 a day in the first week, then 1 a day
LanguageC++

The service can also refuse jobs for a while when it is at capacity: try again after 00:00 UTC.

If something goes wrong ​

A refused or failed job says what happened and what to do. Every message has a short code, and each code has a section in Errors and refusals. Keep the job ID the action prints: it is how a failed job is found. If a job fails again after a retry, or a message does not help, write to [email protected] and include the job ID.

Other CI systems ​

Both use the same service, the same key and the same limits.