This page outlines the standards and best practices for writing Guides on the Lynx website. Guides are narrative documentation designed to teach concepts, explain architecture, or walk users through specific tasks.
For excellent examples of well-structured guides, refer to the Quick Start and Integrate with Existing Apps pages.
Every guide page is an .mdx file that starts with YAML frontmatter to define its metadata.
titleSets the page title displayed in the sidebar, browser tab, and search results.
contextDefines the framework or context for the page (e.g., react, vue, new). This is crucial for the DSL Switcher feature, which allows users to toggle the documentation view between different framework implementations.
When writing step-by-step tutorials, use the following components to create a structured and engaging flow.
<Steps>Use the <Steps> component to wrap sequential instructions. This renders a vertical line connecting the steps, improving readability.
Run the installation command...
Update your config file...
<PackageManagerTabs>When providing installation commands, use <PackageManagerTabs> to automatically show tabs for npm, pnpm, yarn, and bun.
<NextSteps>At the end of a guide, use <NextSteps> to suggest relevant follow-up reading. This helps users navigate a learning path.
Lynx runs on multiple platforms (Android, iOS, Web, etc.). When writing guides, it is essential to clearly distinguish content that varies by platform.
Use the <PlatformTabs> component to organize platform-specific instructions. This component persists the user's platform selection as they navigate the site.
iOS specific instructions...
Use <PlatformBadge> or specific platform icons (like <AndroidOnly />) to explicitly mark features or caveats that apply only to certain platforms.
See MDX Components Reference for usage details.