Open a page
Open a specific documentation page, or one section of it, with /docs page.
Use /docs page when you know which page you want:
/docs page slug:reference/markdownChoosing a page #
As you type in slug, Discord suggests pages by title. Choosing a suggestion fills in the page's address for you, so you don't need to know it.
The reply shows the page title, its description, where it sits in your docs, and an Open page button.
If you type text that isn't a page, such as slug:tiktok, the bot searches for it and shows the results, as /ask would.
Choosing a section #
Add header to show one section of the page:
/docs page slug:reference/markdown header:HeadingsOnce slug is filled in, header suggests that page's headings. The reply then shows:
- Title:
Page › Section. - Text: the section's content, up to the next heading at the same level or above. Code blocks, bold text, lists, and callouts are kept. Long sections are cut at about 1,500 characters.
- Open page: opens the page in the browser, scrolled to that heading.
If header doesn't match a heading on the page, for example because it was typed by hand, the bot shows the whole page instead.
Page summaries #
For whole-page replies, the bot shows the page's description from its frontmatter, or its excerpt if it has no description. An excerpt is a good place for a short, Discord-friendly summary:
---
title: Callouts
description: Highlight important information with configurable callout blocks.
excerpt: Use note, tip, warning, and danger blocks to draw attention to important information.
---