Skip to main content
Version: 22.2

Topic Documentation

You can embed your topic's documentation into the Redpanda Console user interface by providing access to a GitHub repository that hosts your documentation files in Markdown format.

Integrating topic documentation into Redpanda Console

Redpanda Console clones the provided GitHub repository, recursively iterates through all directories in the repository (up to a max depth of 5) and stores all .md files it finds in memory. The "Documentation" tab in the frontend will show the markdown of the file matching the name of the Kafka topic.

Path/FilenameKafka Topic NameMatches
ordersv2.mdorders-v2
Orders-v2.mdorders-v2
orders-v2.mdorders-v2
/orders/orders-v2.mdorders-v2

Configuration

In addition to the repository URL and branch, you usually need to configure authentication credentials so that you can access private repositories. Redpanda Console supports SSH as well as basic auth. If neither is specified you could still pull publicly accessible repositories.

Following is the configuration:

console:
topicDocumentation:
enabled: true
git:
enabled: true
repository:
url: https://github.com/redpanda-data/topic-docs
branch: master
# How often Console shall pull the repository to look for new files.
# Set to 0 to disable periodic pulls
refreshInterval: 1m
# Basic Auth
# If you want to use GitHub's personal access tokens use `token` as username
# and pass the token as password
basicAuth:
enabled: true
username: token
password: ""
# SSH Auth
ssh:
enabled: false
username: ""
privateKey: ""
privateKeyFilepath: ""
passphrase: ""