DO: Keep Titles Concise
Ensure article titles are clear and descriptive. The title automatically populates the page header and the site sidebar navigation.
While Sveltia CMS provides a clean, visual interface for content creation, maintaining a high-tier Docs-as-Code knowledge base requires discipline. Because every save directly modifies underlying Markdown and MDX files in your Git repository, following consistent authoring patterns ensures your pages render cleanly and pass all automated CI checks.
When a subject matter expert or writer contributes to the knowledge base, they follow a streamlined four-step publishing routine:
/admin/) and authenticate securely using your GitHub account.
title, description) and compose the core content using the rich-text editor or raw Markdown mode.To prevent build failures and keep styling uniform across the entire documentation site, keep these core rules in mind:
DO: Keep Titles Concise
Ensure article titles are clear and descriptive. The title automatically populates the page header and the site sidebar navigation.
DON'T: Break Frontmatter
Never delete or alter required frontmatter fields like title or description. Missing fields will cause the Astro content schema validation to fail in CI.
DO: Use Markdown for Formatting
Rely on standard Markdown headers (##, ###), bullet points, and blockquotes rather than hardcoding HTML elements.
DON'T: Bypass Code Blocks
When including code snippets, always specify the programming language (e.g., ```javascript) so syntax highlighting renders correctly.
Linking between guides and component documentation creates a cohesive reading experience. In Sveltia CMS, you can easily link to existing articles without having to memorize or copy-paste route paths:
Creating standard markdown links inside body prose.
Cmd+K / Ctrl+K)./guides/voice-tone-accessibility/) and sets the link text if none was pre-selected.Enter to place the link.Highlighting prominent next steps or related reading.
When you want a high-visibility card pointing to another guide, click the Insert (+) dropdown in the editor toolbar and select Starlight Link Card. Pick the target article from the dropdown, customize the title or description if desired, and insert a styled Starlight <LinkCard> block with live preview in the CMS.
Images and diagrams are critical for effective technical documentation. Sveltia CMS handles media uploads seamlessly through its built-in asset manager:
When you upload an image via the media field, Sveltia automatically places the asset inside your project’s src/assets/ folder. This allows Astro’s image optimization pipeline to compress, resize, and convert the graphic into modern formats (like WebP) during build time.
sveltia-dashboard-preview.png instead of screenshot_123.png).