docs: set up Astro Starlight site for Read the Docs (#46)

This commit is contained in:
Fiereu authored and GitHub committed 2026-07-20 15:30:23 +02:00
1 parent dfb1eec557
commit 19eb9f371d
12 files changed
+6909 -23

No files matched your search

+26
View File
@@ -0,0 +1,26 @@
// @ts-check
import { defineConfig } from "astro/config";
import starlight from "@astrojs/starlight";
const canonical = process.env.READTHEDOCS_CANONICAL_URL;
const url = canonical ? new URL(canonical) : undefined;
export default defineConfig({
site: url?.origin,
base: url?.pathname,
integrations: [
starlight({
title: "OpenMMO",
social: [
{
icon: "github",
label: "GitHub",
href: "https://github.com/openmmo-org/OpenMMO",
},
],
sidebar: [
{ label: "Guides", items: [{ autogenerate: { directory: "guides" } }] },
],
}),
],
});