page.as
Preview MDXLD as a single web page
page.as - Single Page Preview
Preview MDXLD documents as standalone web pages through page.as.
What is page.as?
page.as renders any MDXLD document as a single web page, automatically applying appropriate styling and layout based on the $type.
Basic Example
---
$type: Page
$id: https://pages.do/about
title: About Us
description: Learn about our company
---
# About Us
We build amazing products for amazing people.Renders at: https://page.as/about
Features
- Universal Rendering: Any
$typerenders as a page - Automatic Layout: Type-appropriate styling
- Responsive: Mobile-first design
- Fast: Edge-rendered on Cloudflare
- SEO Optimized: Meta tags from frontmatter
- Custom Themes: Override default styles
Page Types
Different $type values render differently:
---
$type: Article
---
# Article
Renders with article layout, reading time, author info---
$type: Product
---
# Product
Renders with product gallery, price, buy button---
$type: Documentation
---
# Docs
Renders with sidebar, search, table of contentsPreview URL
Try It
# Create page
echo "---\n\$type: Page\ntitle: Hello\n---\n# Hello World" > hello.mdx
# Preview
mdxe deploy hello.mdx --preview page.as
# Opens: https://page.as/hello