site.as
Preview MDXLD as a multi-page website
site.as - Multi-Page Website
Preview MDXLD document collections as complete websites through site.as.
What is site.as?
site.as renders a directory of MDXLD files as a fully-functional multi-page website with navigation, routing, and shared layouts.
Basic Example
# Directory structure
./my-site/
index.mdx # Homepage
about.mdx # About page
contact.mdx # Contact page
blog/
index.mdx # Blog index
post-1.mdx # Blog postEach file:
---
$type: Site
nav:
- Home: /
- About: /about
- Blog: /blog
- Contact: /contact
---Renders at: https://site.as/my-site
Features
- Multi-Page: Automatic routing from file structure
- Navigation: Shared nav/header/footer
- Layouts: Consistent design across pages
- Asset Management: Images, CSS, fonts
- SEO: Sitemap and robots.txt generation
- Analytics: Built-in analytics integration
Site Configuration
---
$type: Site
title: My Website
domain: example.com
theme: modern
nav:
logo: /logo.svg
links:
- Home: /
- Products: /products
- About: /about
footer:
copyright: 2025 Company Inc
social:
twitter: handle
github: username
---Preview URL
Try It
# Deploy directory as site
mdxe deploy ./my-site --preview site.as
# Opens: https://site.as/my-site