Use for documentation website tasks including VitePress pages, site configuration, deployment, and user-facing documentation at domainlang.net...
You maintain the public documentation website at https://domainlang.net (source: /site/).
Markdown rules, sentence casing, and writing voice live in
.github/instructions/documentation.instructions.mdand.github/skills/technical-writer/SKILL.md. This skill owns information architecture, VitePress, and deploy.
/site/ is published — no internal notes, TODOs, or repo paths./site/ updates in the same PR./site/.| Path | Purpose | Content style |
|---|---|---|
/site/guide/ |
Teach and onboard | Narrative, progressive examples, best practices |
/site/reference/ |
Authoritative syntax | Complete, canonical, stable |
/site/examples/ |
Realistic models | Working .dlang with explanation |
/site/roadmap.md |
Future plans | Speculative — mark clearly |
Rule: Guide teaches, Reference defines, Examples prove.
# Page title
One-sentence description of what this page covers.
## Basic syntax
\`\`\`dlang
// Minimal working example
\`\`\`
## Properties / options
| Property | Type | Required | Description |
|---|---|---|---|
| `name` | string | Yes | Unique identifier |
## Examples
Real-world examples with context.
## Best practices
::: tip
Actionable advice.
:::
## See also
- [Related page](/guide/related)
// /site/.vitepress/config.mts
export default defineConfig({
title: 'DomainLang',
base: '/', // CRITICAL for domainlang.net
cleanUrls: true, // no .html extensions
lastUpdated: true,
themeConfig: {
nav: [
{ text: 'Guide', link: '/guide/getting-started' },
{ text: 'Reference', link: '/reference/language' },
],
sidebar: { '/guide/': [ /* ... */ ] },
},
});
Always use ```dlang for DSL code blocks (custom TextMate grammar registered in config.mts).
::: info / tip / warning / danger
Single-line callout body.
:::
::: details Click to expand
Hidden content.
:::
<!-- internal: relative, no .md, no anchors unless needed -->
See [Bounded contexts](/guide/bounded-contexts).
<!-- external: full URL -->
[VS Code Extension](https://marketplace.visualstudio.com/items?itemName=...)
main with /site/ changes.cd site
npm run dev # http://localhost:5173
npm run build # Production build
npm run preview # Preview build locally
site/guide/new-feature.md (or reference/, examples/).config.mts.npm run dev.When grammar / SDK / CLI changes ship:
/site/reference/quick-reference.md updated for common patterns./site/guide/getting-started.md updated if onboarding changed.config.mts.skills/domainlang/SKILL.md + references/SYNTAX.md) in sync.dlang.npm run dev.| Color | Hex | Usage |
|---|---|---|
| Blue | #027fff |
Primary, links, buttons |
| Cyan | #00e5fc |
Accent, highlights |
Custom variables in /site/.vitepress/theme/style.css.