mcwaddams-site/astro.config.mjs
Ryan Malloy 580c218b82 Add hosted MCP connection docs and photorealistic stapler hero
- Add how-to/hosted-mcp.mdx with connection instructions for:
  - Claude Code quick connect
  - MCP Settings JSON config
  - Python SDK example
  - Self-hosting with Docker
- Add swingline-hero.png (photorealistic red Swingline)
- Add red-swingline.svg for alternate use
- Update hero image to use photorealistic stapler
- Add "Connect to Hosted Server" to sidebar with "New" badge
2026-01-11 14:28:04 -07:00

125 lines
3.7 KiB
JavaScript

// @ts-check
import { defineConfig } from 'astro/config';
import starlight from '@astrojs/starlight';
import tailwindcss from '@tailwindcss/vite';
// https://astro.build/config
export default defineConfig({
vite: {
plugins: [tailwindcss()],
},
integrations: [
starlight({
title: 'mcwaddams',
components: {
Footer: './src/components/Footer.astro',
},
tagline: 'I was told there would be document extraction.',
logo: {
src: './src/assets/stapler.svg',
replacesTitle: false,
},
social: [
{ icon: 'github', label: 'GitHub', href: 'https://github.com/ryanmalloy/mcwaddams' },
],
customCss: [
'./src/styles/custom.css',
],
head: [
{
tag: 'meta',
attrs: {
name: 'theme-color',
content: '#b91c1c',
},
},
],
sidebar: [
{
label: 'Getting Started',
items: [
{ label: 'The Backstory', slug: 'backstory' },
{ label: 'Installation', slug: 'installation' },
{ label: 'Quick Start', slug: 'quickstart' },
],
},
{
label: 'Tutorials',
badge: { text: 'Learn', variant: 'tip' },
items: [
{ label: 'Your First Extraction', slug: 'tutorials/first-extraction' },
{ label: 'Working with Legacy Formats', slug: 'tutorials/legacy-formats' },
{ label: 'Indexing Large Documents', slug: 'tutorials/indexing' },
{ label: 'Using MCP Resources', slug: 'tutorials/resources' },
],
},
{
label: 'How-To Guides',
badge: { text: 'Solve', variant: 'note' },
items: [
{ label: 'Connect to Hosted Server', slug: 'how-to/hosted-mcp', badge: { text: 'New', variant: 'success' } },
{ label: 'Extract Tables from Word', slug: 'how-to/extract-tables' },
{ label: 'Analyze Excel Data', slug: 'how-to/analyze-excel' },
{ label: 'Convert to Markdown', slug: 'how-to/convert-markdown' },
{ label: 'Handle Pagination', slug: 'how-to/pagination' },
{ label: 'Process URLs', slug: 'how-to/url-processing' },
],
},
{
label: 'Reference',
badge: { text: 'Look Up', variant: 'caution' },
items: [
{ label: 'All Tools', slug: 'reference/tools' },
{ label: 'Universal Tools', slug: 'reference/universal-tools' },
{ label: 'Word Tools', slug: 'reference/word-tools' },
{ label: 'Excel Tools', slug: 'reference/excel-tools' },
{ label: 'MCP Resources', slug: 'reference/resources' },
{ label: 'Format Support', slug: 'reference/formats' },
],
},
{
label: 'Explanation',
badge: { text: 'Understand', variant: 'success' },
items: [
{ label: 'Architecture', slug: 'explanation/architecture' },
{ label: 'Why Mixins?', slug: 'explanation/mixins' },
{ label: 'Fallback Strategy', slug: 'explanation/fallbacks' },
{ label: 'Resource System', slug: 'explanation/resource-system' },
],
},
{
label: 'TPS Reports',
badge: { text: 'Testing Painful Stuff', variant: 'danger' },
items: [
{ label: 'Test Dashboard', slug: 'tps/dashboard' },
{ label: 'Coverage Report', slug: 'tps/coverage' },
{ label: 'Torture Tests', slug: 'tps/torture' },
],
},
{
label: 'Community',
items: [
{ label: 'Feedback', slug: 'community/feedback' },
{ label: 'Flair Leaderboard', slug: 'community/leaderboard' },
{ label: 'Credits', slug: 'community/credits' },
],
},
],
editLink: {
baseUrl: 'https://github.com/ryanmalloy/mcwaddams-site/edit/main/',
},
lastUpdated: true,
pagination: true,
tableOfContents: { minHeadingLevel: 2, maxHeadingLevel: 4 },
expressiveCode: {
themes: ['dracula', 'github-light'],
styleOverrides: {
borderRadius: '0.5rem',
},
},
}),
],
telemetry: false,
devToolbar: { enabled: false },
});