mirror of
https://github.com/storytold/craft-wiki.git
synced 2026-11-22 15:31:01 +01:00
Overview, getting started, install and update, workflows and troubleshooting pages, drawn from the MailCraft repository's README, gaps and releasing docs. Adds the homepage tile, sidebar, nav and CMS entries, and the 128 px app icon. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
30 lines
1.6 KiB
JavaScript
30 lines
1.6 KiB
JavaScript
import { defineConfig } from 'astro/config';
|
|
import starlight from '@astrojs/starlight';
|
|
|
|
const apps = [
|
|
['ArtCraft Studio', 'artcraft-studio'], ['PhotoCraft', 'photocraft'],
|
|
['VectorCraft', 'vectorcraft'], ['FilmCraft', 'filmcraft'], ['LightCraft', 'lightcraft'],
|
|
['PdfCraft', 'pdfcraft'], ['EffectCraft', 'effectcraft'], ['AniCraft', 'anicraft'], ['DesignCraft', 'designcraft'],
|
|
['FigCraft', 'figcraft'], ['TextureCraft', 'texturecraft'], ['MaterialCraft', 'materialcraft'],
|
|
['WordCraft', 'wordcraft'], ['SoundCraft', 'soundcraft'], ['DeckCraft', 'deckcraft'],
|
|
['CADCraft', 'cadcraft'], ['GridCraft', 'gridcraft'], ['Craft Anything', 'craft-anything'],
|
|
['SolidCraft', 'solidcraft'], ['MailCraft', 'mailcraft'],
|
|
];
|
|
|
|
export default defineConfig({
|
|
site: 'https://craft.wiki',
|
|
integrations: [starlight({
|
|
title: 'Craft Wiki',
|
|
// Starlight's default, /favicon.svg, isn't in public/, so every page linked a missing icon.
|
|
favicon: '/assets/apps/artcraft-studio.svg',
|
|
customCss: ['./src/styles/custom.css'],
|
|
routeMiddleware: './src/routeData.mjs',
|
|
components: { Head: './src/components/WikiHead.astro', Header: './src/components/WikiHeader.astro', Sidebar: './src/components/WikiSidebar.astro', PageTitle: './src/components/WikiPageTitle.astro', ThemeProvider: './src/components/WikiThemeProvider.astro', Footer: './src/components/WikiFooter.astro' },
|
|
sidebar: [
|
|
{ label: 'Home', link: '/' },
|
|
{ label: 'Edit wiki', link: '/admin/' },
|
|
...apps.map(([label, slug]) => ({ label, collapsed: true, items: [{ autogenerate: { directory: `apps/${slug}` } }] })),
|
|
],
|
|
})],
|
|
});
|