Skip to main content

Configuring a Call To Action Button

call-to-action-button
Example call-to-action button shown in the top-right of the documentation

To configure a call-to-action button, simpel add the cta property to your portal configuration. The cta property is an object that include a url and label for the button.

konfig.yaml

_35
outputDirectory: /tmp/acme-sdks-out
_35
specInputPath: api.yaml
_35
specPath: api-fixed.yaml
_35
portal:
_35
title: Acme
_35
primaryColor: "#1f334e"
_35
logo:
_35
light: portal-logo-light.png
_35
dark: portal-logo-dark.png
_35
googleAnalyticsId: G-XXXXXXXXXX
_35
cta:
_35
url: https://acme.com/book-a-demo
_35
label: Book A Demo
_35
documentation:
_35
sidebar:
_35
sections:
_35
- label: Guides
_35
links:
_35
- id: getting-started
_35
path: docs/getting-started.md