clawdie-iso/docs/website/astro.config.mjs
Sam & Claude fdd0d260d0 feat: version-aware docs built + staged on ISO
- Copy Astro landing page source into docs/website/ (20K, no node_modules)
- Add ISO version badge to LandingBody.astro (only shown when
  ASTRO_ISO_VERSION is set during build)
- Add build_and_stage_docs() to build.sh: builds the Astro site with
  the ISO version, stages output at /usr/local/share/clawdie-iso/docs/
- Skips gracefully when node/npm unavailable
- On the booted USB: open docs/index.html to see version-matched docs
2026-06-23 11:58:03 +02:00

28 lines
667 B
JavaScript

import { defineConfig, passthroughImageService } from 'astro/config';
import sitemap from '@astrojs/sitemap';
const site = process.env.ASTRO_SITE_URL || 'https://clawdie.si';
const outDir = process.env.ASTRO_OUT_DIR || './dist';
export default defineConfig({
site,
outDir,
output: 'static',
trailingSlash: 'always',
image: {
service: passthroughImageService(),
},
i18n: {
defaultLocale: 'en',
locales: ['en', 'sl'],
routing: { prefixDefaultLocale: true, redirectToDefaultLocale: false },
},
integrations: [
sitemap({
i18n: {
defaultLocale: 'en',
locales: { en: 'en', sl: 'sl' },
},
}),
],
});