mcilspy/docs-site/astro.config.mjs
Ryan Malloy 643576111c docs: add Starlight docs site for mcilspy.warehack.ing
Follows the warehack.ing cookie-cutter pattern (Caddy + multi-stage Docker).
34 content pages covering Getting Started, 7 Guides, 16 Tool Reference pages,
MCP Prompts, Data Models, Changelog, and Development docs. Steel blue + amber
theme with Pagefind search and Mermaid diagram support.
2026-03-02 18:18:43 -07:00

183 lines
5.6 KiB
JavaScript

import { defineConfig } from "astro/config";
import starlight from "@astrojs/starlight";
import mermaid from "astro-mermaid";
import tailwindcss from "@tailwindcss/vite";
import sitemap from "@astrojs/sitemap";
export default defineConfig({
site: "https://mcilspy.warehack.ing",
telemetry: false,
devToolbar: { enabled: false },
integrations: [
mermaid({ autoTheme: true }),
starlight({
title: "mcilspy",
description:
"Decompile, search, and analyze .NET assemblies with AI assistance via the Model Context Protocol",
favicon: "/favicon.svg",
social: [
{
icon: "seti:git",
label: "Source",
href: "https://git.supported.systems/MCP/mcilspy",
},
],
customCss: ["./src/styles/global.css", "./src/styles/tool-pages.css"],
sidebar: [
{
label: "Getting Started",
items: [
{ label: "Overview", slug: "getting-started/overview" },
{ label: "Installation", slug: "getting-started/installation" },
{ label: "Quick Start", slug: "getting-started/quick-start" },
],
},
{
label: "Guides",
items: [
{
label: "Finding Hardcoded Secrets",
slug: "guides/finding-secrets",
},
{
label: "Reverse Engineering Assemblies",
slug: "guides/reverse-engineering",
},
{
label: "Recovering Lost Source Code",
slug: "guides/recovering-source",
},
{
label: "Analyzing Malware Samples",
slug: "guides/malware-analysis",
},
{
label: "Understanding Libraries",
slug: "guides/understanding-libraries",
},
{
label: "Working with Large Types",
slug: "guides/working-with-large-types",
},
{ label: "Configuration", slug: "guides/configuration" },
],
},
{
label: "Reference",
items: [
{ label: "Tools Overview", slug: "reference/tools-overview" },
{
label: "Decompilation Tools",
collapsed: true,
items: [
{
label: "decompile_assembly",
slug: "reference/tools/decompile-assembly",
},
{
label: "decompile_method",
slug: "reference/tools/decompile-method",
},
{
label: "list_types",
slug: "reference/tools/list-types",
},
{
label: "search_types",
slug: "reference/tools/search-types",
},
{
label: "search_strings",
slug: "reference/tools/search-strings",
},
{
label: "generate_diagrammer",
slug: "reference/tools/generate-diagrammer",
},
{
label: "dump_package",
slug: "reference/tools/dump-package",
},
{
label: "get_assembly_info",
slug: "reference/tools/get-assembly-info",
},
],
},
{
label: "Metadata Tools",
collapsed: true,
items: [
{
label: "search_methods",
slug: "reference/tools/search-methods",
},
{
label: "search_fields",
slug: "reference/tools/search-fields",
},
{
label: "search_properties",
slug: "reference/tools/search-properties",
},
{
label: "list_events",
slug: "reference/tools/list-events",
},
{
label: "list_resources",
slug: "reference/tools/list-resources",
},
{
label: "get_metadata_summary",
slug: "reference/tools/get-metadata-summary",
},
],
},
{
label: "Diagnostics Tools",
collapsed: true,
items: [
{
label: "check_ilspy_installation",
slug: "reference/tools/check-ilspy-installation",
},
{
label: "install_ilspy",
slug: "reference/tools/install-ilspy",
},
],
},
{ label: "MCP Prompts", slug: "reference/prompts" },
{ label: "Data Models", slug: "reference/data-models" },
{ label: "Changelog", slug: "reference/changelog" },
],
},
{
label: "Development",
collapsed: true,
items: [
{ label: "Architecture", slug: "development/architecture" },
{ label: "Contributing", slug: "development/contributing" },
{ label: "Release Guide", slug: "development/release-guide" },
],
},
],
}),
sitemap(),
],
vite: {
plugins: [tailwindcss()],
server: {
host: "0.0.0.0",
...(process.env.VITE_HMR_HOST && {
hmr: {
host: process.env.VITE_HMR_HOST,
protocol: "wss",
clientPort: 443,
},
}),
},
},
});