Lotus
Type to search documentation.

Getting Started

Page Actions

Configure copy, Markdown, and AI actions shown near the page title.

pageActions controls the compact action button shown near the documentation page title.

typescript
pageActions: [
{ type: 'copy-page' },
{ type: 'view-markdown' },
{ type: 'open-chatgpt' },
{ type: 'open-claude' },
{ type: 'open-grok' },
{ type: 'open-perplexity' },
]

Set it to an empty array to disable the control.

typescript
pageActions: []

Built-In Actions

Lotus includes six built-in action types.

TypeBehavior
copy-pageFetches the generated .md route and copies Markdown to the clipboard.
view-markdownOpens the generated .md route.
open-chatgptOpens ChatGPT with the current page URL.
open-claudeOpens Claude with the current page URL.
open-grokOpens Grok with the current page URL.
open-perplexityOpens Perplexity with the current page URL.

Built-in labels and icons can be overridden.

typescript
pageActions: [
{ type: 'copy-page', label: 'Copy Markdown' },
{ type: 'view-markdown', label: 'Markdown source' },
]

Custom Actions

Custom actions use label, icon, href, and optional external.

typescript
pageActions: [
{
label: 'Open issue',
icon: 'lucide:bug',
href: 'https://github.com/prosefly/astro-theme-lotus/issues/new?title={encodedTitle}',
external: true,
},
]

Custom href values can use page variables.

VariableValue
{title}Page title
{url}Current page URL
{markdownUrl}Generated Markdown URL
{encodedTitle}URL-encoded page title
{encodedUrl}URL-encoded page URL
{encodedMarkdownUrl}URL-encoded Markdown URL

Layout

The copy action is shown as an outline button. The remaining actions live in the dropdown opened by the chevron; Copy page is not repeated there.

Last updated Sep 3, 2026

Contributors