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.
Custom pages allow you to define a page structure/tree that organizes your pages and generates the page URL based on page slugs. The generated URL is shown at the bottom of the preview pane.
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"
The sidebar navigation menu that displays next to a page isn’t derived from this page structure.
It’s configured separately, as described in Dev Portal navigation.
Instead of manually constructing the page content container with components, you can use a layout that offers a built-in arrangement of a page’s regions. Set the layout in the page’s front matter with the layout property. A page that omits layout, or names one that doesn’t exist, uses custom.
The following layouts are available:
guide: Contains sidebar navigation on the left, content, and a table of contents on the right. Use this for long-form documentation where readers browse sibling pages and jump to a section.
reference: Contains sidebar navigation on the left, and centered content. Use this for shorter conceptual pages.
wide: Contains sidebar navigation on the left and content, but the contents space has a wider column. Use this for content that needs more horizontal room, like a wide table or a generated API reference.
center: A single centered column, without sidebars. Use this for release notes or articles.
custom (default): You must build the whole page yourself, including sidebars and header. Use this for a landing page or anything the other layouts don’t fit. Because custom doesn’t render a title or description from front matter, give the page its own heading in the body.
On guide, reference, wide, and center, the page header is built from front matter you’re already writing: title and description render in the header, and an optional tagline property renders as a short label above the title.
Any section a layout renders (a sidebar or the header) can be replaced with a snippet using the layout-options front matter property.
For information about how to customize a layout’s sidebars and header, or configure page navigation, see the Markdown Components reference:
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.
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/*
|
The login page is itself customizable, but the path is enforced for authentication to work properly.
|
^/login(?:\/.*)?
|
/register
|
The registration page is customizable; however, a default page is provided at this path if it does not exist.
|
^/register
|
/forgot-password
|
Forgot password
|
^/forgot-password
|
/reset-password
|
Reset password
|
^/reset-password
|
/logout
|
Log out
|
^/logout
|
/apps/*
|
Developer applications
|
^/apps(?:/.*)?
|
/account/*
|
Developer account, including Teams
|
^/account(?:/.*)?
|
/api/v*/
|
Portal API
|
^/api\/v\d+\/.*
|
/_core/*
|
Core Portal APIs
|
^/_core/.*
|
/api/*
|
Nuxt server endpoints
|
^/api\/(?!v\d+\/).*
|
/_api/*
|
Nuxt server endpoints
|
^/_api\/.*
|
/api/oauth/*
|
OAuth endpoints
|
^/api/oauth\/.*
|
/npm/*
|
CDN proxy
|
^/npm\/.*
|
/_preview-mode/*
|
Konnect previews
|
^/_preview-mode\/.*
|
/.well-known/*
|
Site-wide metadata and configurations
|
^/\.well-known\\/.*
|
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">
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
---