import { defineConfig } from "astro/config";
import starlight from "@astrojs/starlight";

export default defineConfig({
  site: "https://pedia.eagle0.net",
  integrations: [
    starlight({
      title: "Eagle0pedia",
      description: "Reference guide for Eagle0 commands, systems, and game concepts.",
      customCss: ["./src/styles/custom.css"],
      editLink: {
        baseUrl: "https://github.com/nolen777/eagle0/edit/main/docs/eagle0pedia/src/content/docs/",
      },
      sidebar: [
        {
          label: "Reference",
          items: [
            { label: "Eagle0pedia", slug: "" },
            {
              label: "Concepts",
              items: [
                { label: "Game Concepts", slug: "concepts" },
                { label: "Victory and Defeat", slug: "concepts/victory-and-defeat" },
                { label: "Who You Command", slug: "concepts/command-authority" },
                { label: "Eagle Round Flow", slug: "concepts/eagle-round-flow" },
                { label: "March and Battle Timeline", slug: "concepts/march-timeline" },
                { label: "Information and Recon", slug: "concepts/information-and-recon" },
                { label: "From Eagle to Shardok", slug: "concepts/eagle-to-shardok" },
                { label: "Shardok Battles", slug: "concepts/shardok-battles" },
                { label: "Shardok Combat Fundamentals", slug: "concepts/shardok-combat" },
                {
                  label: "Shardok Victory Conditions",
                  slug: "concepts/shardok-victory-conditions",
                },
              ],
            },
            { label: "Eagle Commands", slug: "commands" },
            { label: "Shardok Commands", slug: "shardok-commands" },
            { label: "Heroes", slug: "heroes" },
            { label: "Battalions", slug: "battalions" },
            { label: "Factions", slug: "factions" },
            { label: "Provinces", slug: "provinces" },
            { label: "Integration Notes", slug: "integration" },
          ],
        },
      ],
      social: [
        {
          icon: "github",
          label: "GitHub",
          href: "https://github.com/nolen777/eagle0",
        },
      ],
    }),
  ],
});
