{"id":80642,"date":"2026-12-04T11:06:02","date_gmt":"2026-12-04T11:06:02","guid":{"rendered":"https:\/\/www.devopsschool.com\/blog\/?p=80642"},"modified":"2026-12-04T11:06:04","modified_gmt":"2026-12-04T11:06:04","slug":"a-practical-end-to-end-guide-for-customer-facing-documentation","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/a-practical-end-to-end-guide-for-customer-facing-documentation\/","title":{"rendered":"A practical, end-to-end guide for customer-facing documentation"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1200\" height=\"630\" src=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2026\/12\/featured-illustration-showing-an-astro-starlight-d.jpeg\" alt=\"Featured illustration showing an Astro Starlight documentation portal, feature list, and a deployment path from Markdown and MDX through GitHub Actions to Amazon S3 and CloudFront.\" class=\"wp-image-80643\" srcset=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2026\/12\/featured-illustration-showing-an-astro-starlight-d.jpeg 1200w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2026\/12\/featured-illustration-showing-an-astro-starlight-d-300x158.jpeg 300w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2026\/12\/featured-illustration-showing-an-astro-starlight-d-1024x538.jpeg 1024w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2026\/12\/featured-illustration-showing-an-astro-starlight-d-768x403.jpeg 768w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2026\/12\/featured-illustration-showing-an-astro-starlight-d-820x430.jpeg 820w\" sizes=\"auto, (max-width: 1200px) 100vw, 1200px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"image-caption wp-block-paragraph\">\n  Featured image: Build a Product Documentation Website with Astro Starlight (1200 \u00d7 630 pixels).\n<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">WordPress SEO Publishing Details<\/h1>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td><p><strong>Field<\/strong>\n<\/p><\/td><td><p><strong>Recommended value<\/strong>\n<\/p><\/td><\/tr><tr><td><p>\n  SEO title\n<\/p><\/td><td><p>\n  Astro Starlight Tutorial: Build a Product Documentation Website\n<\/p><\/td><\/tr><tr><td><p>\n  Meta description\n<\/p><\/td><td><p>\n  Learn how to build a fast, searchable customer documentation website with Astro Starlight. Set up Markdown, navigation, SEO, search, CI\/CD and AWS hosting.\n<\/p><\/td><\/tr><tr><td><p>\n  Focus keyword\n<\/p><\/td><td><p>\n  Astro Starlight\n<\/p><\/td><\/tr><tr><td><p>\n  Secondary keywords\n<\/p><\/td><td><p>\n  Astro Starlight tutorial; product documentation website; Astro documentation theme; customer help center; Markdown documentation; static documentation site\n<\/p><\/td><\/tr><tr><td><p>\n  URL slug\n<\/p><\/td><td><p>\n  astro-starlight-product-documentation-guide\n<\/p><\/td><\/tr><tr><td><p>\n  Categories\n<\/p><\/td><td><p>\n  Web Development; Documentation; DevOps\n<\/p><\/td><\/tr><tr><td><p>\n  Tags\n<\/p><\/td><td><p>\n  Astro; Starlight; Markdown; MDX; Documentation; AWS; CloudFront; GitHub Actions; SEO\n<\/p><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\">Editorial note: Commands in this tutorial are based on the official documentation available at the time of preparation. They are documented examples, not commands independently executed in your environment. Validate package versions and AWS resource settings in a staging account before production use.<\/p>\n<\/blockquote>\n\n\n\n<h1 class=\"wp-block-heading\">Table of Contents<\/h1>\n\n\n\n<ul class=\"wp-block-list\">\n<li><br>    1. Introduction<br>  <\/li>\n\n\n\n<li><br>    2. What is Astro Starlight?<br>  <\/li>\n\n\n\n<li><br>    3. When should you choose Starlight?<br>  <\/li>\n\n\n\n<li><br>    4. Plan the documentation information architecture<br>  <\/li>\n\n\n\n<li><br>    5. Install and run Starlight<br>  <\/li>\n\n\n\n<li><br>    6. Understand the project structure<br>  <\/li>\n\n\n\n<li><br>    7. Configure the site<br>  <\/li>\n\n\n\n<li><br>    8. Create customer documentation<br>  <\/li>\n\n\n\n<li><br>    9. Build navigation and content patterns<br>  <\/li>\n\n\n\n<li><br>    10. Search, SEO and accessibility<br>  <\/li>\n\n\n\n<li><br>    11. Branding and customization<br>  <\/li>\n\n\n\n<li><br>    12. Deploy to AWS S3 and CloudFront<br>  <\/li>\n\n\n\n<li><br>    13. CI\/CD with GitHub Actions<br>  <\/li>\n\n\n\n<li><br>    14. Quality, security and maintenance<br>  <\/li>\n\n\n\n<li><br>    15. Practical hands-on exercise<br>  <\/li>\n\n\n\n<li><br>    16. Troubleshooting<br>  <\/li>\n\n\n\n<li><br>    17. Best practices<br>  <\/li>\n\n\n\n<li><br>    18. Frequently asked questions<br>  <\/li>\n\n\n\n<li><br>    19. Conclusion<br>  <\/li>\n\n\n\n<li><br>    Official references<br>  <\/li>\n<\/ul>\n\n\n\n<h1 class=\"wp-block-heading\">1. Introduction<\/h1>\n\n\n\n<p class=\"wp-block-paragraph\">\n  A product can be powerful and still feel difficult to use when customers cannot find clear answers. Good documentation reduces friction during onboarding, explains workflows, helps users recover from common errors, and gives support teams a reliable place to direct customers.\n<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\n  Astro Starlight is an open-source documentation framework built on Astro. It provides a ready-made documentation experience with navigation, search, internationalization, SEO foundations, code highlighting, accessible typography and theme support. It lets a team focus on the content and product experience instead of building a documentation interface from scratch.\n<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\n  This guide builds a public customer documentation site. The example uses a fictional product named Acme Desk and a deployment pattern using Git, GitHub Actions, Amazon S3 and CloudFront. Adapt names, regions, domains and AWS resources to your own environment.\n<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">2. What is Astro Starlight?<\/h1>\n\n\n\n<p class=\"wp-block-paragraph\">\n  Starlight is an Astro integration and documentation theme. Pages are authored as Markdown, MDX or Markdoc files and organized in a content directory. Starlight generates a static site by default, which can be hosted on a static web host or delivered through a CDN.\n<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td><p><strong>Built-in capability<\/strong>\n<\/p><\/td><td><p><strong>What it means for customer docs<\/strong>\n<\/p><\/td><\/tr><tr><td><p>\n  Navigation and sidebar\n<\/p><\/td><td><p>\n  Group onboarding, feature guides, account help and troubleshooting.\n<\/p><\/td><\/tr><tr><td><p>\n  Full-text search\n<\/p><\/td><td><p>\n  Customers can search indexed documentation pages.\n<\/p><\/td><\/tr><tr><td><p>\n  Markdown, MDX and Markdoc\n<\/p><\/td><td><p>\n  Writers can author structured content; MDX also supports components.\n<\/p><\/td><\/tr><tr><td><p>\n  SEO foundations\n<\/p><\/td><td><p>\n  Page titles, descriptions, canonical URL configuration and sitemap integrations can support discoverability.\n<\/p><\/td><\/tr><tr><td><p>\n  Internationalization\n<\/p><\/td><td><p>\n  Organize localized documentation with locale-aware routes and fallback content.\n<\/p><\/td><\/tr><tr><td><p>\n  Code highlighting\n<\/p><\/td><td><p>\n  Present commands and technical examples in readable code blocks.\n<\/p><\/td><\/tr><tr><td><p>\n  Theme support\n<\/p><\/td><td><p>\n  Offer light\/dark appearance and customize the visual identity.\n<\/p><\/td><\/tr><tr><td><p>\n  Astro integrations\n<\/p><\/td><td><p>\n  Add analytics, integrations and custom UI where required.\n<\/p><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\">Starlight includes full-text search powered by Pagefind by default. The search index is generated during the build, so search does not require a separate hosted search service for a typical static documentation site.<\/p>\n<\/blockquote>\n\n\n\n<h1 class=\"wp-block-heading\">3. When should you choose Starlight?<\/h1>\n\n\n\n<h2 class=\"wp-block-heading\">3.1 A strong fit<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><br>    Your team is comfortable with Git and pull requests.<br>  <\/li>\n\n\n\n<li><br>    You want ownership of the content repository and generated site.<br>  <\/li>\n\n\n\n<li><br>    You need a fast public site with predictable hosting costs.<br>  <\/li>\n\n\n\n<li><br>    You want to customize navigation, layout, branding and components.<br>  <\/li>\n\n\n\n<li><br>    Your documentation is mostly guides, tutorials, FAQs, product workflows and reference pages.<br>  <\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">3.2 When a managed knowledge base may be better<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\n  If non-technical support writers need a browser-based editor, approval workflows, article ownership dashboards and support-ticket integrations without using Git, compare managed platforms such as GitBook or Document360. Starlight is a framework: your team owns the editorial workflow, hosting and integrations.\n<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td><p><strong>Need<\/strong>\n<\/p><\/td><td><p><strong>Suggested direction<\/strong>\n<\/p><\/td><\/tr><tr><td><p>\n  Developer-managed docs with full control\n<\/p><\/td><td><p>\n  Astro Starlight\n<\/p><\/td><\/tr><tr><td><p>\n  Browser-first editing for support writers\n<\/p><\/td><td><p>\n  GitBook or Document360\n<\/p><\/td><\/tr><tr><td><p>\n  Interactive API reference and API try-it-out\n<\/p><\/td><td><p>\n  Dedicated API documentation platform alongside Starlight\n<\/p><\/td><\/tr><tr><td><p>\n  Private, permission-controlled knowledge base\n<\/p><\/td><td><p>\n  Evaluate a platform with authentication and access controls\n<\/p><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h1 class=\"wp-block-heading\">4. Plan the documentation information architecture<\/h1>\n\n\n\n<p class=\"wp-block-paragraph\">\n  Start with customer tasks rather than your internal engineering team structure. Customers generally think in terms of what they are trying to accomplish: create an account, configure a feature, invite a teammate, connect an integration, understand a bill, or fix a problem.\n<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1781\" height=\"954\" src=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2026\/12\/information-architecture-diagram-showing-a-documen.png\" alt=\"Information architecture diagram showing a documentation home branching into Start Here, Use the Product, Manage Account and Get Help, with a consistent article structure beneath each category.\" class=\"wp-image-80644\" srcset=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2026\/12\/information-architecture-diagram-showing-a-documen.png 1781w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2026\/12\/information-architecture-diagram-showing-a-documen-300x161.png 300w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2026\/12\/information-architecture-diagram-showing-a-documen-1024x549.png 1024w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2026\/12\/information-architecture-diagram-showing-a-documen-768x411.png 768w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2026\/12\/information-architecture-diagram-showing-a-documen-1536x823.png 1536w\" sizes=\"auto, (max-width: 1781px) 100vw, 1781px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"image-caption wp-block-paragraph\">\n  Figure 1. A customer-task-oriented documentation information architecture.\n<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">4.1 Recommended top-level sections<\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td><p><strong>Section<\/strong>\n<\/p><\/td><td><p><strong>Example articles<\/strong>\n<\/p><\/td><\/tr><tr><td><p>\n  Getting started\n<\/p><\/td><td><p>\n  Welcome; create an account; first login; initial setup; quick start\n<\/p><\/td><\/tr><tr><td><p>\n  Product overview\n<\/p><\/td><td><p>\n  What the product does; key concepts; roles and permissions\n<\/p><\/td><\/tr><tr><td><p>\n  Features\n<\/p><\/td><td><p>\n  Feature overview; configuration; workflows; limitations\n<\/p><\/td><\/tr><tr><td><p>\n  Tutorials\n<\/p><\/td><td><p>\n  Complete a common task; real-world examples; guided walkthroughs\n<\/p><\/td><\/tr><tr><td><p>\n  Integrations\n<\/p><\/td><td><p>\n  Connect supported services; authentication; sync behavior\n<\/p><\/td><\/tr><tr><td><p>\n  Account and settings\n<\/p><\/td><td><p>\n  Profile; team members; security settings; notifications\n<\/p><\/td><\/tr><tr><td><p>\n  Billing and subscription\n<\/p><\/td><td><p>\n  Plans; invoices; payment methods; cancellation\n<\/p><\/td><\/tr><tr><td><p>\n  Troubleshooting\n<\/p><\/td><td><p>\n  Common errors; diagnostics; known limitations; recovery steps\n<\/p><\/td><\/tr><tr><td><p>\n  What&#8217;s new\n<\/p><\/td><td><p>\n  Release notes; deprecations; migration notices\n<\/p><\/td><\/tr><tr><td><p>\n  Contact support\n<\/p><\/td><td><p>\n  Support channels; what information to include; response expectations\n<\/p><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">4.2 Article template<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\n  Use a repeatable structure so customers know what to expect.\n<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><br>  Title that describes the task or question.<br><\/li>\n\n\n\n<li><br>  Short outcome statement: what the reader will achieve.<br><\/li>\n\n\n\n<li><br>  Prerequisites, permissions and required plan, if any.<br><\/li>\n\n\n\n<li><br>  Numbered steps using the exact labels shown in the product UI.<br><\/li>\n\n\n\n<li><br>  Expected result or verification step.<br><\/li>\n\n\n\n<li><br>  Troubleshooting notes and known limitations.<br><\/li>\n\n\n\n<li><br>  Related articles and a clear next step.<br><\/li>\n\n\n\n<li><br>  Review owner and last-reviewed date in the content process.<br><\/li>\n<\/ol>\n\n\n\n<h1 class=\"wp-block-heading\">5. Install and run Starlight<\/h1>\n\n\n\n<p class=\"wp-block-paragraph\">\n  Prerequisites: a supported Node.js release, npm (or another package manager), Git, and a code editor. Check the current Astro and Starlight requirements before selecting a Node.js version for a new project.\n<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">5.1 Create the project<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>BASH<\/strong>\n<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">npm create astro@latest -- --template starlight<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\n  The official Starlight quick start uses the Astro project creator with the Starlight template. Follow the prompts to name the project and choose a package manager.\n<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">5.2 Install dependencies and start the development server<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>BASH<\/strong>\n<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">cd my-docs\nnpm install\nnpm run dev<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\n  Open the local URL printed by the development server. Keep the process running while editing pages; Astro refreshes the preview as files change.\n<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">5.3 Build the production site<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>BASH<\/strong>\n<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">npm run build\nnpm run preview<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\n  The production build is normally written to the dist\/ directory. The preview command serves the built output locally so you can inspect the production result before deployment.\n<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\n  Verification: confirm the homepage loads, sidebar links work, search returns relevant results, images load, and the browser console has no unexpected errors. These checks are recommended validation steps; they have not been run against your own project.\n<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">6. Understand the project structure<\/h1>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>TEXT<\/strong>\n<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">my-docs\/\n\u251c\u2500\u2500 public\/\n\u2502   \u2514\u2500\u2500 images\/\n\u251c\u2500\u2500 src\/\n\u2502   \u251c\u2500\u2500 assets\/\n\u2502   \u251c\u2500\u2500 content\/\n\u2502   \u2502   \u2514\u2500\u2500 docs\/\n\u2502   \u2502       \u251c\u2500\u2500 index.mdx\n\u2502   \u2502       \u251c\u2500\u2500 getting-started\/\n\u2502   \u2502       \u251c\u2500\u2500 features\/\n\u2502   \u2502       \u251c\u2500\u2500 tutorials\/\n\u2502   \u2502       \u251c\u2500\u2500 account\/\n\u2502   \u2502       \u2514\u2500\u2500 troubleshooting\/\n\u2502   \u2514\u2500\u2500 content.config.ts\n\u251c\u2500\u2500 astro.config.mjs\n\u251c\u2500\u2500 package.json\n\u2514\u2500\u2500 tsconfig.json<\/pre>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td><p><strong>Path<\/strong>\n<\/p><\/td><td><p><strong>Purpose<\/strong>\n<\/p><\/td><\/tr><tr><td><p>\n  src\/content\/docs\/\n<\/p><\/td><td><p>\n  Markdown, MDX and Markdoc documentation pages.\n<\/p><\/td><\/tr><tr><td><p>\n  public\/\n<\/p><\/td><td><p>\n  Static files copied to the build output without content processing.\n<\/p><\/td><\/tr><tr><td><p>\n  src\/assets\/\n<\/p><\/td><td><p>\n  Assets imported and processed by Astro.\n<\/p><\/td><\/tr><tr><td><p>\n  astro.config.mjs\n<\/p><\/td><td><p>\n  Astro and Starlight integration configuration.\n<\/p><\/td><\/tr><tr><td><p>\n  package.json\n<\/p><\/td><td><p>\n  Scripts and package dependencies.\n<\/p><\/td><\/tr><tr><td><p>\n  dist\/\n<\/p><\/td><td><p>\n  Generated production website; normally created by the build.\n<\/p><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h1 class=\"wp-block-heading\">7. Configure the site<\/h1>\n\n\n\n<h2 class=\"wp-block-heading\">7.1 Basic Astro configuration<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>JAVASCRIPT<\/strong>\n<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">import { defineConfig } from 'astro\/config';\nimport starlight from '@astrojs\/starlight';\n \nexport default defineConfig({\n  integrations: [\n    starlight({\n      title: 'Acme Desk Help Center',\n      description: 'Guides and answers for Acme Desk customers',\n      social: {\n        \/\/ Add your official social links when available.\n      },\n      sidebar: [\n        {\n          label: 'Getting started',\n          items: [\n            { slug: 'getting-started\/index' },\n            { slug: 'getting-started\/create-account' },\n            { slug: 'getting-started\/first-project' },\n          ],\n        },\n        {\n          label: 'Use Acme Desk',\n          autogenerate: { directory: 'features' },\n        },\n        {\n          label: 'Troubleshooting',\n          autogenerate: { directory: 'troubleshooting' },\n        },\n      ],\n    }),\n  ],\n});<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\n  This is an illustrative configuration. Keep only options supported by the Starlight version installed in your project. The sidebar can use explicit links, groups, slugs and autogenerated directory entries.\n<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">7.2 Site identity and URL<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\n  Choose a stable public URL such as docs.example.com. Configure the Astro site URL using your production origin so generated canonical URLs and sitemap output can use the correct domain. Ensure DNS and HTTPS are configured before announcing the documentation site.\n<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>JAVASCRIPT<\/strong>\n<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">export default defineConfig({\n  site: 'https:\/\/docs.example.com',\n  integrations: [\n    starlight({\n      title: 'Acme Desk Help Center',\n      description: 'Customer guides, tutorials and troubleshooting.',\n    }),\n  ],\n});<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\n  Do not publish staging URLs as canonical URLs. If the documentation lives under a path rather than a dedicated subdomain, configure the base path and hosting rewrite behavior consistently.\n<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">8. Create customer documentation<\/h1>\n\n\n\n<h2 class=\"wp-block-heading\">8.1 Create a Markdown page<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>MARKDOWN<\/strong>\n<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">---\ntitle: Create your first workspace\ndescription: Set up a workspace and invite your team.\n---\n \nA workspace is the shared area where your team organizes its work.\n \n## Before you begin\n \n- You need an active Acme Desk account.\n- Your account must have permission to create workspaces.\n \n## Create a workspace\n \n1. Sign in to Acme Desk.\n2. Open **Workspaces**.\n3. Select **Create workspace**.\n4. Enter a name and select **Create**.\n \n## Verify the result\n \nThe new workspace appears in your workspace list.<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">8.2 Use MDX when you need interactive components<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\n  MDX lets you combine Markdown with JSX components. Use it sparingly for reusable callouts, tabs, cards or other interface elements. Keep essential instructions readable even if a custom component fails to load.\n<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>MDX<\/strong>\n<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">---\ntitle: Connect an integration\ndescription: Connect a supported service to Acme Desk.\n---\n \n## Before you begin\n \nConfirm that you have administrator access to both services.\n \n{\/* Example: use Starlight components where appropriate. *\/}\n \n## Steps\n \n1. Open **Settings**.\n2. Select **Integrations**.\n3. Choose the service you want to connect.\n4. Follow the authorization prompts.\n \n## Confirm the connection\n \nReturn to the integrations page and verify that the status is **Connected**.<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">8.3 Write for customer outcomes<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><br>    Use the same terminology as the product interface.<br>  <\/li>\n\n\n\n<li><br>    Write one task per article where practical.<br>  <\/li>\n\n\n\n<li><br>    Use numbered steps for sequences and bullets for unordered requirements.<br>  <\/li>\n\n\n\n<li><br>    Explain what a successful result looks like.<br>  <\/li>\n\n\n\n<li><br>    Call out plan restrictions, role permissions and regional differences.<br>  <\/li>\n\n\n\n<li><br>    Avoid screenshots that contain real customer data, secrets or personal information.<br>  <\/li>\n<\/ul>\n\n\n\n<h1 class=\"wp-block-heading\">9. Build navigation and content patterns<\/h1>\n\n\n\n<h2 class=\"wp-block-heading\">9.1 Sidebar design<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\n  Keep the primary navigation short and task-oriented. Avoid exposing every article at the same level. Use groups for broad topics and autogenerated entries for directories whose contents change frequently.\n<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">9.2 Page frontmatter<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>YAML<\/strong>\n<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">---\ntitle: Reset your password\ndescription: Recover access if you cannot sign in.\nsidebar:\n  order: 2\n---<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\n  Use frontmatter for page-specific metadata supported by Starlight. Validate exact frontmatter properties against the version-specific reference documentation.\n<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">9.3 Versioning strategy<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\n  For customer documentation, version content when product behavior differs materially between supported releases. Do not create versions merely because a deployment happened. State which product version or plan an instruction applies to, and publish migration guidance when steps change.\n<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">10. Search, SEO and accessibility<\/h1>\n\n\n\n<h2 class=\"wp-block-heading\">10.1 Search<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\n  Starlight includes Pagefind-powered full-text search by default. Search quality still depends on clear article titles, descriptive headings and consistent terminology. Test searches using the words customers actually use, including common abbreviations and error messages.\n<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">10.2 SEO checklist<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><br>    Set a unique, descriptive title for every article.<br>  <\/li>\n\n\n\n<li><br>    Write a concise description that explains the page&#8217;s purpose.<br>  <\/li>\n\n\n\n<li><br>    Use meaningful headings that match customer questions.<br>  <\/li>\n\n\n\n<li><br>    Use descriptive internal links rather than &#8216;click here&#8217;.<br>  <\/li>\n\n\n\n<li><br>    Set the production site URL and validate canonical URLs.<br>  <\/li>\n\n\n\n<li><br>    Generate and submit a sitemap where appropriate.<br>  <\/li>\n\n\n\n<li><br>    Avoid duplicate articles with only minor wording changes.<br>  <\/li>\n\n\n\n<li><br>    Keep important customer help pages crawlable if they are intended for public search.<br>  <\/li>\n\n\n\n<li><br>    Use redirects when moving or renaming important URLs.<br>  <\/li>\n\n\n\n<li><br>    Add useful image alternative text; do not stuff keywords into alt text.<br>  <\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">10.3 Accessibility<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><br>    Use a logical heading hierarchy.<br>  <\/li>\n\n\n\n<li><br>    Ensure keyboard users can navigate menus, links and interactive components.<br>  <\/li>\n\n\n\n<li><br>    Provide text alternatives for meaningful images.<br>  <\/li>\n\n\n\n<li><br>    Do not communicate status using color alone.<br>  <\/li>\n\n\n\n<li><br>    Use descriptive link text and meaningful button labels.<br>  <\/li>\n\n\n\n<li><br>    Check contrast and test at mobile widths.<br>  <\/li>\n\n\n\n<li><br>    Prefer real text over screenshots of text.<br>  <\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">\n  SEO and accessibility are ongoing quality practices, not a one-time plugin setting. Review representative pages with browser tools and accessibility testing before launch.\n<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">11. Branding and customization<\/h1>\n\n\n\n<p class=\"wp-block-paragraph\">\n  Starlight can be extended with Astro components, CSS and integrations. Start with the built-in theme and customize only what supports your product identity or improves task completion.\n<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">11.1 Custom CSS<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>CSS<\/strong>\n<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">\/* src\/styles\/custom.css *\/\n:root {\n  --sl-color-accent-low: #dbeafe;\n  --sl-color-accent: #2563eb;\n  --sl-color-accent-high: #1e3a8a;\n}\n \n\/* Example: make article content easier to scan. *\/\n.sl-markdown-content h2 {\n  margin-top: 2rem;\n}<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\n  Import custom CSS using the supported customCss configuration for your installed Starlight version. Treat CSS selectors tied to internal theme markup as implementation details and re-test them after upgrades.\n<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">11.2 Images and screenshots<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><br>    Capture the current production UI or a stable staging environment.<br>  <\/li>\n\n\n\n<li><br>    Use synthetic accounts and non-sensitive sample data.<br>  <\/li>\n\n\n\n<li><br>    Crop screenshots to the relevant control or workflow.<br>  <\/li>\n\n\n\n<li><br>    Add a caption when the screenshot needs context.<br>  <\/li>\n\n\n\n<li><br>    Provide alt text that explains the purpose of the image.<br>  <\/li>\n\n\n\n<li><br>    Compress large screenshots and avoid unnecessarily huge source images.<br>  <\/li>\n<\/ul>\n\n\n\n<h1 class=\"wp-block-heading\">12. Deploy to AWS S3 and CloudFront<\/h1>\n\n\n\n<p class=\"wp-block-paragraph\">\n  A Starlight site built as a static site can be hosted from object storage and delivered through a CDN. A common AWS pattern is private S3 origin access through CloudFront, HTTPS with an ACM certificate, and a DNS alias for docs.example.com. Astro&#8217;s AWS deployment guide also documents S3 and CloudFront deployment approaches.\n<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"2141\" height=\"989\" src=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2026\/12\/architecture-diagram-showing-documentation-authors.png\" alt=\"Architecture diagram showing documentation authors committing Markdown and MDX to Git, a CI pipeline building and validating the static site, Amazon S3 storing the output, and CloudFront delivering the public docs domain.\" class=\"wp-image-80645\" srcset=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2026\/12\/architecture-diagram-showing-documentation-authors.png 2141w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2026\/12\/architecture-diagram-showing-documentation-authors-300x139.png 300w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2026\/12\/architecture-diagram-showing-documentation-authors-1024x473.png 1024w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2026\/12\/architecture-diagram-showing-documentation-authors-768x355.png 768w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2026\/12\/architecture-diagram-showing-documentation-authors-1536x710.png 1536w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2026\/12\/architecture-diagram-showing-documentation-authors-2048x946.png 2048w\" sizes=\"auto, (max-width: 2141px) 100vw, 2141px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"image-caption wp-block-paragraph\">\n  Figure 2. Reference architecture for static documentation delivery on AWS.\n<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">12.1 Build locally<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>BASH<\/strong>\n<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">npm ci\nnpm run build\nls -la dist\/<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\n  Confirm that the output directory contains the generated HTML, assets and search index before uploading.\n<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">12.2 Create AWS resources<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">12.2.1 Keep the S3 origin private<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\">Use CloudFront Origin Access Control (OAC) with an S3 REST origin for a private bucket design. Block public access at the bucket level and grant CloudFront access through a narrowly scoped bucket policy. Avoid combining OAC with an S3 website endpoint, because website endpoints do not support OAC.<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">\n  Create an S3 bucket for the static site output and a CloudFront distribution. For a production design, prefer a private S3 bucket accessed through CloudFront Origin Access Control (OAC), rather than making the bucket publicly readable. Configure the default root object, HTTPS redirect, custom error handling and cache policies deliberately.\n<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\n  The exact CloudFront origin and access settings depend on whether you use the S3 REST origin with OAC or the S3 website endpoint. OAC is designed for the S3 REST origin; do not mix the two configurations.\n<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">12.3 Upload the build output<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>BASH<\/strong>\n<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">aws s3 sync .\/dist\/ s3:\/\/YOUR_DOCS_BUCKET\/ --delete<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\n  The &#8211;delete option removes objects in the destination that no longer exist in the local build output. Use it only when the bucket or prefix is dedicated to this documentation site and you understand the effect.\n<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">12.4 Invalidate cached objects<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">12.4.1 Choose cache behavior deliberately<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\">Use long-lived caching for fingerprinted assets and shorter caching for HTML documents that change frequently. If you deploy content-hashed filenames, customers can keep cached assets safely while new HTML points to the new versions.<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>BASH<\/strong>\n<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">aws cloudfront create-invalidation \\\n  --distribution-id YOUR_DISTRIBUTION_ID \\\n  --paths '\/*'<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\n  For a mature setup, prefer content-hashed assets and carefully designed cache headers. Invalidate only paths that need refreshing; broad invalidations can increase deployment cost and reduce cache efficiency.\n<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">12.5 DNS and TLS<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li><br>  Request or import an ACM certificate in the AWS Region required by CloudFront (typically us-east-1 for CloudFront viewer certificates).<br><\/li>\n\n\n\n<li><br>  Add the certificate and docs.example.com as an alternate domain name on the distribution.<br><\/li>\n\n\n\n<li><br>  Create the appropriate DNS alias or CNAME record to the CloudFront distribution.<br><\/li>\n\n\n\n<li><br>  Wait for distribution deployment and DNS propagation.<br><\/li>\n\n\n\n<li><br>  Test HTTPS, redirects, canonical URLs, 404 behavior and search.<br><\/li>\n<\/ol>\n\n\n\n<h1 class=\"wp-block-heading\">13. CI\/CD with GitHub Actions<\/h1>\n\n\n\n<p class=\"wp-block-paragraph\">\n  A practical workflow builds and validates the documentation on pull requests, then deploys after changes are merged to the production branch. Prefer short-lived AWS credentials through GitHub Actions OIDC and an AWS IAM role instead of long-lived access keys where your environment supports it.\n<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1961\" height=\"882\" src=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2026\/12\/workflow-diagram-showing-documentation-planning-m.png\" alt=\"Workflow diagram showing documentation planning, Markdown\/MDX authoring, pull request review, publication, and quality checks for links, build, spelling, accessibility and SEO.\" class=\"wp-image-80646\" srcset=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2026\/12\/workflow-diagram-showing-documentation-planning-m.png 1961w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2026\/12\/workflow-diagram-showing-documentation-planning-m-300x135.png 300w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2026\/12\/workflow-diagram-showing-documentation-planning-m-1024x461.png 1024w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2026\/12\/workflow-diagram-showing-documentation-planning-m-768x345.png 768w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2026\/12\/workflow-diagram-showing-documentation-planning-m-1536x691.png 1536w\" sizes=\"auto, (max-width: 1961px) 100vw, 1961px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"image-caption wp-block-paragraph\">\n  Figure 3. Documentation publishing workflow with quality gates.\n<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">13.1 Example GitHub Actions workflow<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\n  This is an illustrative workflow. Pin third-party actions to reviewed immutable commit SHAs in production, and configure the AWS role trust policy and permissions for your repository.\n<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>YAML<\/strong>\n<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">name: Build and deploy documentation\n \non:\n  pull_request:\n  push:\n    branches: [main]\n \npermissions:\n  contents: read\n  id-token: write\n \njobs:\n  build:\n    runs-on: ubuntu-latest\n    steps:\n      - name: Check out repository\n        uses: actions\/checkout@v4\n \n      - name: Set up Node.js\n        uses: actions\/setup-node@v4\n        with:\n          node-version: 22\n          cache: npm\n \n      - name: Install dependencies\n        run: npm ci\n \n      - name: Build documentation\n        run: npm run build\n \n      - name: Upload build artifact\n        uses: actions\/upload-artifact@v4\n        with:\n          name: documentation-site\n          path: dist\/\n \n  deploy:\n    if: github.event_name == 'push' &amp;&amp; github.ref == 'refs\/heads\/main'\n    needs: build\n    runs-on: ubuntu-latest\n    environment: production\n    steps:\n      - name: Check out repository\n        uses: actions\/checkout@v4\n \n      - name: Set up Node.js\n        uses: actions\/setup-node@v4\n        with:\n          node-version: 22\n          cache: npm\n \n      - name: Install dependencies\n        run: npm ci\n \n      - name: Build documentation\n        run: npm run build\n \n      - name: Configure AWS credentials using OIDC\n        uses: aws-actions\/configure-aws-credentials@v4\n        with:\n          role-to-assume: ${{ secrets.AWS_DEPLOY_ROLE_ARN }}\n          aws-region: ${{ vars.AWS_REGION }}\n \n      - name: Sync static site to S3\n        run: aws s3 sync .\/dist\/ s3:\/\/${{ vars.DOCS_BUCKET }}\/ --delete\n \n      - name: Invalidate CloudFront\n        run: |\n          aws cloudfront create-invalidation \\\n            --distribution-id \"${{ vars.CLOUDFRONT_DISTRIBUTION_ID }}\" \\\n            --paths '\/*'<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\n  For stronger efficiency, build once and promote the same artifact to production rather than rebuilding in the deploy job. The sample repeats the build to keep the workflow self-contained and easy to follow; production teams should generally pass the artifact between jobs.\n<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">13.2 IAM permissions<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\n  Grant only the permissions needed to list the dedicated bucket, write and delete objects under the documentation prefix, and create invalidations for the target CloudFront distribution. Scope resources to exact ARNs. Avoid broad administrator policies.\n<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\n  Use GitHub environment protection rules for production deployments, require review where appropriate, and restrict the OIDC trust policy to the intended repository, branch or environment.\n<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">14. Quality, security and maintenance<\/h1>\n\n\n\n<h2 class=\"wp-block-heading\">14.1 Documentation quality gates<\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td><p><strong>Check<\/strong>\n<\/p><\/td><td><p><strong>Why it matters<\/strong>\n<\/p><\/td><td><p><strong>Suggested method<\/strong>\n<\/p><\/td><\/tr><tr><td><p>\n  Production build\n<\/p><\/td><td><p>\n  Detects invalid content or configuration\n<\/p><\/td><td><p>\n  npm run build\n<\/p><\/td><\/tr><tr><td><p>\n  Broken links\n<\/p><\/td><td><p>\n  Prevents dead ends\n<\/p><\/td><td><p>\n  Link checker in CI and periodic crawl\n<\/p><\/td><\/tr><tr><td><p>\n  Search relevance\n<\/p><\/td><td><p>\n  Helps customers find answers\n<\/p><\/td><td><p>\n  Test real customer queries\n<\/p><\/td><\/tr><tr><td><p>\n  Mobile layout\n<\/p><\/td><td><p>\n  Many customers read on phones\n<\/p><\/td><td><p>\n  Responsive browser testing\n<\/p><\/td><\/tr><tr><td><p>\n  Accessibility\n<\/p><\/td><td><p>\n  Supports a wider range of users\n<\/p><\/td><td><p>\n  Keyboard and automated checks\n<\/p><\/td><\/tr><tr><td><p>\n  Content freshness\n<\/p><\/td><td><p>\n  Prevents outdated instructions\n<\/p><\/td><td><p>\n  Owner and review cadence\n<\/p><\/td><\/tr><tr><td><p>\n  Security review\n<\/p><\/td><td><p>\n  Avoids accidental exposure\n<\/p><\/td><td><p>\n  Secret scanning and screenshot review\n<\/p><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">14.2 Security considerations<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><br>    Never commit API keys, tokens, private certificates or customer credentials.<br>  <\/li>\n\n\n\n<li><br>    Do not publish private support notes or internal runbooks in a public docs repository.<br>  <\/li>\n\n\n\n<li><br>    Review screenshots for email addresses, tenant IDs, access tokens and personal information.<br>  <\/li>\n\n\n\n<li><br>    Treat MDX and custom components as executable project code; review changes before merging.<br>  <\/li>\n\n\n\n<li><br>    Keep dependencies updated and review security advisories.<br>  <\/li>\n\n\n\n<li><br>    Restrict deployment credentials and use OIDC where practical.<br>  <\/li>\n\n\n\n<li><br>    If you need private documentation, design authentication and authorization explicitly; a public static site is not a private knowledge base.<br>  <\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">14.3 Content ownership and review<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\n  Assign an owner to each major documentation area. Review high-impact onboarding, billing, security and troubleshooting content whenever the product changes and on a scheduled cadence. Add a visible feedback mechanism and review low-rated or frequently searched pages.\n<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">15. Practical hands-on exercise<\/h1>\n\n\n\n<p class=\"wp-block-paragraph\">\n  Build a small customer help center for a fictional task-management product. Complete the following exercise in a local Starlight project.\n<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Exercise A: Create the first sections<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li><br>  Create a Getting Started directory with a welcome page and account setup page.<br><\/li>\n\n\n\n<li><br>  Create a Features directory with one feature overview and one task-based tutorial.<br><\/li>\n\n\n\n<li><br>  Create a Troubleshooting directory with at least two common problems.<br><\/li>\n\n\n\n<li><br>  Add meaningful page titles and descriptions.<br><\/li>\n\n\n\n<li><br>  Add sidebar navigation for the new sections.<br><\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">Exercise B: Add a customer task article<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>MARKDOWN<\/strong>\n<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">---\ntitle: Invite a teammate\ndescription: Add a teammate to your workspace.\n---\n \n## Before you begin\n \nYou must have permission to manage workspace members.\n \n## Steps\n \n1. Open **Workspace settings**.\n2. Select **Members**.\n3. Choose **Invite member**.\n4. Enter the teammate's work email address.\n5. Select a role and send the invitation.\n \n## Verify\n \nThe teammate appears with a pending invitation status until they accept.\n \n## Troubleshooting\n \nIf the invitation option is unavailable, check your role and workspace plan.<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Exercise C: Validate and publish<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li><br>  Run the local development server and inspect every new page.<br><\/li>\n\n\n\n<li><br>  Run a production build and resolve errors.<br><\/li>\n\n\n\n<li><br>  Test search with phrases from the article titles and body text.<br><\/li>\n\n\n\n<li><br>  Review heading order, link labels, image alt text and mobile layout.<br><\/li>\n\n\n\n<li><br>  Create a pull request and ask another person to review the content.<br><\/li>\n\n\n\n<li><br>  Deploy to a staging domain before promoting to production.<br><\/li>\n<\/ol>\n\n\n\n<h1 class=\"wp-block-heading\">16. Troubleshooting<\/h1>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td><p><strong>Symptom<\/strong>\n<\/p><\/td><td><p><strong>Likely cause<\/strong>\n<\/p><\/td><td><p><strong>What to check<\/strong>\n<\/p><\/td><\/tr><tr><td><p>\n  Project creation fails\n<\/p><\/td><td><p>\n  Node\/package manager mismatch or network issue\n<\/p><\/td><td><p>\n  Check supported Node.js version, npm and registry connectivity.\n<\/p><\/td><\/tr><tr><td><p>\n  Page is missing\n<\/p><\/td><td><p>\n  File is outside docs content directory or slug is wrong\n<\/p><\/td><td><p>\n  Check src\/content\/docs and generated route.\n<\/p><\/td><\/tr><tr><td><p>\n  Sidebar item does not appear\n<\/p><\/td><td><p>\n  Incorrect slug, directory or config\n<\/p><\/td><td><p>\n  Compare sidebar entry with the page slug and config syntax.\n<\/p><\/td><\/tr><tr><td><p>\n  Search returns no result\n<\/p><\/td><td><p>\n  Page not in generated index or stale build\n<\/p><\/td><td><p>\n  Rebuild, deploy and inspect Pagefind output.\n<\/p><\/td><\/tr><tr><td><p>\n  Images are broken\n<\/p><\/td><td><p>\n  Incorrect path or case mismatch\n<\/p><\/td><td><p>\n  Check public path, asset import and case-sensitive filename.\n<\/p><\/td><\/tr><tr><td><p>\n  Custom CSS has no effect\n<\/p><\/td><td><p>\n  CSS not imported or selector changed\n<\/p><\/td><td><p>\n  Check Starlight customCss configuration and browser styles.\n<\/p><\/td><\/tr><tr><td><p>\n  AWS upload is denied\n<\/p><\/td><td><p>\n  IAM role lacks scoped permissions\n<\/p><\/td><td><p>\n  Check role trust, bucket ARN, prefix and CloudFront ARN.\n<\/p><\/td><\/tr><tr><td><p>\n  CloudFront shows old content\n<\/p><\/td><td><p>\n  Cached HTML or asset path\n<\/p><\/td><td><p>\n  Review cache headers and invalidate affected paths.\n<\/p><\/td><\/tr><tr><td><p>\n  404 after deployment\n<\/p><\/td><td><p>\n  Wrong origin, base path or error behavior\n<\/p><\/td><td><p>\n  Check distribution origin, default root object and generated routes.\n<\/p><\/td><\/tr><tr><td><p>\n  HTTPS certificate error\n<\/p><\/td><td><p>\n  Certificate\/domain mismatch or wrong region\n<\/p><\/td><td><p>\n  Check certificate SANs, CloudFront attachment and DNS record.\n<\/p><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">16.1 Debugging sequence<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>BASH<\/strong>\n<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">npm ci\nnpm run build\nnpm run preview\n \n# Inspect the generated files\nfind dist -maxdepth 3 -type f | sort | head -100\n \n# Inspect the S3 destination (after configuring AWS credentials)\naws s3 ls s3:\/\/YOUR_DOCS_BUCKET\/ --recursive | head -100<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\n  The commands above are diagnostic examples. Run them from the project root and replace placeholders with your actual resource names. The AWS CLI commands require a configured profile or role and sufficient permissions.\n<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">17. Best practices<\/h1>\n\n\n\n<ul class=\"wp-block-list\">\n<li><br>    Design navigation around customer jobs, not internal teams.<br>  <\/li>\n\n\n\n<li><br>    Keep one canonical article for each customer question and link to it from related pages.<br>  <\/li>\n\n\n\n<li><br>    Use short, stable URLs and redirect changed routes.<br>  <\/li>\n\n\n\n<li><br>    Write task-oriented titles such as &#8216;Invite a teammate&#8217; rather than vague titles such as &#8216;Members&#8217;.<br>  <\/li>\n\n\n\n<li><br>    Show prerequisites and permission requirements before the steps.<br>  <\/li>\n\n\n\n<li><br>    Include a verification step so readers know when the task is complete.<br>  <\/li>\n\n\n\n<li><br>    Use screenshots only when they clarify a task; keep them current.<br>  <\/li>\n\n\n\n<li><br>    Review high-traffic and low-feedback pages first.<br>  <\/li>\n\n\n\n<li><br>    Keep release notes separate from evergreen how-to instructions.<br>  <\/li>\n\n\n\n<li><br>    Test every deployment in a staging environment before production.<br>  <\/li>\n\n\n\n<li><br>    Use pull requests for review, history and accountability.<br>  <\/li>\n\n\n\n<li><br>    Track unanswered searches and support-ticket themes to identify missing articles.<br>  <\/li>\n<\/ul>\n\n\n\n<h1 class=\"wp-block-heading\">18. Frequently asked questions<\/h1>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Is Astro Starlight free?<\/strong>\n<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\n  Starlight is open-source software. You still pay for hosting, domain registration and any external services you choose to add.\n<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Does Starlight include search?<\/strong>\n<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\n  Yes. Starlight includes full-text search powered by Pagefind, which is generated as part of the site build.\n<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Can non-developers edit Starlight documentation?<\/strong>\n<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\n  They can edit Markdown through a Git-based web interface, but this is not the same as a full visual knowledge-base editor. A CMS can be added if browser-first editing is essential.\n<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Can I use a custom domain?<\/strong>\n<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\n  Yes. Configure the production site URL, DNS, hosting and TLS certificate for your domain.\n<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Can I host Starlight on AWS?<\/strong>\n<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\n  Yes. A static Starlight build can be deployed to S3 and served through CloudFront. Configure the bucket and distribution securely.\n<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Can I make documentation multilingual?<\/strong>\n<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\n  Starlight has built-in internationalization support for locale routing and translated content.\n<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Can I add videos and screenshots?<\/strong>\n<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\n  Yes. Add media assets to the project and reference them from your documentation. Optimize image size and provide useful alt text.\n<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Can Starlight replace a customer support platform?<\/strong>\n<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\n  No. It provides documentation, not a complete ticketing or customer-support workflow. Link it to your support system.\n<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Should I put private internal runbooks in the public docs site?<\/strong>\n<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\n  No. Keep public customer documentation separate from private operational documentation, and implement access controls for private material.\n<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Is Starlight suitable for API documentation?<\/strong>\n<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\n  It can host API guides and reference content. For interactive API exploration, integrate a dedicated API reference tool where needed.\n<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">19. Conclusion<\/h1>\n\n\n\n<p class=\"wp-block-paragraph\">\n  Astro Starlight is a compelling foundation for a public customer documentation website when your team values performance, content ownership, customization and a Git-based workflow. It provides the documentation essentials\u2014navigation, search, content formats, internationalization and SEO foundations\u2014without requiring you to build a documentation theme from scratch.\n<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\n  The most successful documentation site is not the one with the most plugins or the fanciest theme. It is the one that helps customers complete tasks quickly, understand product behavior and solve problems independently. Start with a focused information architecture, publish a small set of excellent articles, measure what customers search for, and improve the content continuously.\n<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">Official documentation and references<\/h1>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/starlight.astro.build\/\" rel=\"noopener\">Starlight home<\/a> \u2014 https:\/\/starlight.astro.build\/<br>  <\/li>\n\n\n\n<li><a href=\"https:\/\/starlight.astro.build\/getting-started\/\" rel=\"noopener\">Starlight getting started<\/a> \u2014 https:\/\/starlight.astro.build\/getting-started\/<br>  <\/li>\n\n\n\n<li><a href=\"https:\/\/starlight.astro.build\/reference\/configuration\/\" rel=\"noopener\">Starlight configuration reference<\/a> \u2014 https:\/\/starlight.astro.build\/reference\/configuration\/<br>  <\/li>\n\n\n\n<li><a href=\"https:\/\/starlight.astro.build\/guides\/site-search\/\" rel=\"noopener\">Starlight site search<\/a> \u2014 https:\/\/starlight.astro.build\/guides\/site-search\/<br>  <\/li>\n\n\n\n<li><a href=\"https:\/\/starlight.astro.build\/guides\/i18n\/\" rel=\"noopener\">Starlight internationalization<\/a> \u2014 https:\/\/starlight.astro.build\/guides\/i18n\/<br>  <\/li>\n\n\n\n<li><a href=\"https:\/\/docs.astro.build\/en\/guides\/deploy\/aws\/\" rel=\"noopener\">Astro AWS deployment guide<\/a> \u2014 https:\/\/docs.astro.build\/en\/guides\/deploy\/aws\/<br>  <\/li>\n\n\n\n<li><a href=\"https:\/\/wordpress.org\/plugins\/mammoth-docx-converter\/\" rel=\"noopener\">Mammoth WordPress Converter plugin<\/a> \u2014 https:\/\/wordpress.org\/plugins\/mammoth-docx-converter\/<br>  <\/li>\n\n\n\n<li><a href=\"https:\/\/github.com\/mwilliamson\/mammoth.js\" rel=\"noopener\">Mammoth.js documentation<\/a> \u2014 https:\/\/github.com\/mwilliamson\/mammoth.js<br>  <\/li>\n\n\n\n<li><a href=\"https:\/\/mike.zwobble.org\/projects\/mammoth\/embed-style-map\/\" rel=\"noopener\">Mammoth embedded style map tool<\/a> \u2014 https:\/\/mike.zwobble.org\/projects\/mammoth\/embed-style-map\/<br>  <\/li>\n<\/ul>\n\n\n\n<h1 class=\"wp-block-heading\">Appendix A. Mammoth style map<\/h1>\n\n\n\n<p class=\"wp-block-paragraph\">\n  This document uses a dedicated Word paragraph style named Code Block. The following Mammoth style map is embedded in the DOCX package at mammoth\/style-map so Mammoth.js can map code paragraphs to HTML preformatted blocks during conversion.\n<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>MAMMOTH STYLE MAP<\/strong>\n<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">p[style-name='Code Block'] =&gt; pre:separator('\\n')\np[style-name='Image Caption'] =&gt; p.image-caption\np[style-name='Callout'] =&gt; blockquote<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\n  Mammoth&#8217;s WordPress plugin supports embedded style maps and can also be configured through MAMMOTH_OPTIONS. Confirm the converter version and preview the imported HTML because Mammoth intentionally prioritizes semantic structure over visual fidelity. The plugin documentation describes a separate plugin\/document transform for detecting monospace paragraphs and assigning the Code Block style; this document applies that style directly to code paragraphs.\n<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">Appendix B. WordPress import and validation checklist<\/h1>\n\n\n\n<ul class=\"wp-block-list\">\n<li><br>    Upload this DOCX through the Mammoth .docx Converter workflow.<br>  <\/li>\n\n\n\n<li><br>    Preview the converted content before inserting it into the post.<br>  <\/li>\n\n\n\n<li><br>    Confirm Heading 1\u20134 become semantic heading elements.<br>  <\/li>\n\n\n\n<li><br>    Confirm Code Block paragraphs become preformatted code blocks.<br>  <\/li>\n\n\n\n<li><br>    Confirm all embedded images are imported and captions appear in the correct positions.<br>  <\/li>\n\n\n\n<li><br>    Check image alt text in the WordPress media library.<br>  <\/li>\n\n\n\n<li><br>    Review tables on desktop and mobile; Mammoth preserves table structure but not necessarily Word table styling.<br>  <\/li>\n\n\n\n<li><br>    Verify all hyperlinks and external references.<br>  <\/li>\n\n\n\n<li><br>    Set the featured image in the WordPress post editor using the 1200 \u00d7 630 featured image included near the start of this document.<br>  <\/li>\n\n\n\n<li><br>    Enter the SEO title, meta description, focus keyword, categories, tags and slug in your SEO plugin.<br>  <\/li>\n\n\n\n<li><br>    Preview the published post and correct any theme-specific spacing or code styling.<br>  <\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Featured image: Build a Product Documentation Website with Astro Starlight (1200 \u00d7 630 pixels). WordPress SEO Publishing Details Field Recommended value SEO title Astro Starlight Tutorial: Build&#8230; <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[49],"tags":[],"class_list":["post-80642","post","type-post","status-publish","format-standard","hentry","category-general"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/80642","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/comments?post=80642"}],"version-history":[{"count":1,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/80642\/revisions"}],"predecessor-version":[{"id":80647,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/80642\/revisions\/80647"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=80642"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=80642"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=80642"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}