Dev Portal pages and content

Beta and uses: Dev Portal
Related Documentation
OpenAPI Specifications
Incompatible with
on-prem
Tags

In your Dev Portal, you can create pages that contain content such as text, buttons, tabs, and more. Pages are used to convey information about your API and Dev Portal to users. They are highly customizable using Markdown Components (MDC), allowing you to create nested page structures to organize pages and generate URLs or slugs. You can also stage new pages or restrict access to logged-in developers by using visibility controls and publishing status.

Dev Portal Editor

Figure 1: The Portal Editor UI in Dev Portal.

Pages

You can create multiple pages in the Dev Portal, similar to how a website is structured. Pages can contain text and other objects, like containers and buttons. To get started creating pages, navigate to your Dev Portal and click Portal Editor in the sidebar. Pages are built using Markdown Components (MDC). Additional documentation on syntax, as well as tools for generating components, are available on a dedicated MDC site.

Page structure

On the left panel inside the Portal Editor, you’ll see a list of pages in your Dev Portal. The name for each page is a slug, and will be used to build the URL for that page. You can nest child pages under other pages. If pages are nested, the slugs will be combined to build the URL.

For example, if about has a child page called contact, its URL will be /about/contact.

about         ← URL: "/about"
└ contact    ← URL: "/about/contact"

Page visibility and publishing

You can choose to make a page public or private and publish or unpublish it. To control page visibility and publishing, click a page in the Portal Editor and click the menu at the top right.

Reserved paths

Dev Portal reserves certain paths from the root of the URL to properly function. You can’t override these paths with custom pages or other functionality.

The following table lists the reserved paths:

Path

Description

RegExp

/login/* Login ^/login(?:\/.*)?
/register Registration ^/register
/forgot-password Forgot password ^/forgot-password
/reset-password Reset password ^/reset-password
/logout Log out ^/logout
/apps/* Developer applications ^/apps
/api/v*/ Portal API ^/api\/v\d+\/.*
/_proxy/* Proxied APIs ^/_proxy/.*
/api/* Nuxt server endpoints ^/api\/(?!v\d+\/).*
/_api/* Nuxt server endpoints ^/_api\/.*
/npm/* CDN proxy ^/npm\/.*
/_preview-mode/* Konnect previews ^/_preview-mode\/.*

Metadata

Dev Portal will use the front matter you set in a page, like the title and description, and render HTML tags.

For example:

---
title: Home
description: Start building and innovating with our APIs
---

Will render this:

<title>Home | Developer Portal</title>
<meta name="description" content="Start building and innovating with our APIs">
<meta property="og:title" content="Home | Developer Portal">
<meta property="og:description" content="Start building and innovating with our APIs">

OpenGraph

The Dev Portal automatically generates an Open Graph image for each page on the site that uses a default design, and incorporates your brand color, light or dark mode, and the page’s title and description. This image may be used in search results and when sharing links that render page previews.

If you would like to provide a custom Open Graph image, you can specify it in the page’s front matter with the image property as a string:

---
title: Home
description: Start building and innovating with our APIs
image: https://example.com/images/my-image.png
---

If you would like more control over the image, the front matter property also accepts an object interface:

---
title: Home
description: Start building and innovating with our APIs
image:
  url: https://example.com/images/my-image.png
  alt: A description of the image
  width: 300px
  height: 200px
---

Reuse content with snippets

You can reuse content on multiple pages by using snippets. Snippets allow you to store and write content in one location and use that content in multiple pages. You can also use snippets to publish content temporarily, like system outages or special events.

Snippets are built using Markdown Components (MDC). See the dedicated MDC site for more information about Snippet syntax and usage.

To get started creating snippets, navigate to your Dev Portal and click Portal editor, then click Snippets.

FAQs

Pages are created using the Default Visibility setting configured in your Portal Settings.

When previewing a page, the generated URL is shown at the bottom of the preview window.

The home page represents the / root path of your Dev Portal. If it is deleted, you’ll need to recreate it using the Pages API.

Yes. Custom pages are limited to a maximum of 1,000,000 characters.

The preview may not be able to display parameterized values. When the page is rendered in the Portal, parameters will be resolved. Depending on the syntax used, the preview may not accurately reflect those values in Page or Snippet views.

Snippets are published by default, but they won’t appear in the Portal unless they are reused in a page.

Snippets are created with the default page visibility setting configured in your Portal settings.

Yes. Snippets are limited to a maximum of 1,000,000 characters.

Something wrong?

Help us make these docs great!

Kong Developer docs are open source. If you find these useful and want to make them better, contribute today!