docs: Migrated to astro v7 for live docs

This commit is contained in:
2026-07-09 04:53:00 +05:30
parent 093f8de4c5
commit d9940a036a
26 changed files with 4273 additions and 516 deletions

33
web/docs/astro.config.mjs Normal file
View File

@@ -0,0 +1,33 @@
import { defineConfig } from "astro/config";
import starlight from "@astrojs/starlight";
export default defineConfig({
site: "https://omnia.omniasimulation.com",
base: "/docs",
integrations: [
starlight({
title: "Omnia Docs",
logo: {
src: "./src/assets/img/logo.png",
},
social: [{ icon: "github", label: "GitHub", href: "https://github.com/sortedcord/omnia" }],
sidebar: [
{
label: "Introduction",
slug: "intro",
},
{
label: "Architecture",
items: [{ autogenerate: { directory: "architecture" } }],
},
{
label: "Guides",
items: [{ autogenerate: { directory: "guides" } }],
},
],
editLink: {
baseUrl: "https://github.com/sortedcord/omnia/edit/main/web/docs/",
},
}),
],
});