docs: set up Astro Starlight site for Read the Docs (#46)
This commit is contained in:
1 parent
dfb1eec557
commit
19eb9f371d
12 files changed
+6909
-23
No files matched your search
@@ -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" } }] },
|
||||
],
|
||||
}),
|
||||
],
|
||||
});
|
||||
Reference in new issue
Block a user