tigerstyle-scent/docs/astro.config.mjs
Ryan Malloy 120f0b616d Add release tooling and update for v1.0.0 release
- Add .distignore (operator-private files excluded)
- Add build.sh for WordPress-installable release ZIPs
- Update CLAUDE.md references (now operator-private only)
2026-05-27 14:32:07 -06:00

92 lines
3.3 KiB
JavaScript

import { defineConfig } from 'astro/config';
import starlight from '@astrojs/starlight';
import tailwind from '@astrojs/tailwind';
// https://astro.build/config
export default defineConfig({
integrations: [
starlight({
title: 'TigerStyle Scent OAuth2',
description: 'The WordPress community\'s security exemplar - Enterprise-grade OAuth2 authorization server plugin with cat-themed excellence.',
// logo: {
// src: './src/assets/tigerstyle-logo.svg',
// replacesTitle: false,
// },
social: [
{
icon: 'github',
href: 'https://github.com/tigerstyle/scent-oauth2',
label: 'GitHub',
},
],
sidebar: [
{
label: 'Getting Started',
items: [
{ label: 'Quick Start', link: '/getting-started/quick-start/' },
{ label: 'Installation', link: '/getting-started/installation/' },
{ label: 'Configuration', link: '/getting-started/configuration/' },
],
},
{
label: 'Tutorials',
items: [
{ label: 'Your First OAuth2 Flow', link: '/tutorials/first-oauth2-flow/' },
{ label: 'Securing Your Implementation', link: '/tutorials/security-setup/' },
{ label: 'Advanced Token Management', link: '/tutorials/token-management/' },
],
},
{
label: 'How-To Guides',
items: [
{ label: 'Configure Client Applications', link: '/how-to/configure-clients/' },
{ label: 'Implement PKCE', link: '/how-to/implement-pkce/' },
{ label: 'Handle Token Refresh', link: '/how-to/token-refresh/' },
{ label: 'Monitor Security Events', link: '/how-to/monitor-security/' },
],
},
{
label: 'Security Guide',
items: [
{ label: 'Security Overview', link: '/security/overview/' },
{ label: 'Threat Protection', link: '/security/threat-protection/' },
{ label: 'Best Practices', link: '/security/best-practices/' },
{ label: 'Security Audit', link: '/security/audit/' },
],
},
{
label: 'API Reference',
items: [
{ label: 'Authorization Endpoint', link: '/api/authorization/' },
{ label: 'Token Endpoint', link: '/api/token/' },
{ label: 'Introspection Endpoint', link: '/api/introspection/' },
{ label: 'Revocation Endpoint', link: '/api/revocation/' },
],
},
{
label: 'Explanation',
items: [
{ label: 'OAuth2 Flow Architecture', link: '/explanation/oauth2-architecture/' },
{ label: 'Security Design Principles', link: '/explanation/security-principles/' },
{ label: 'WordPress Integration', link: '/explanation/wordpress-integration/' },
],
},
],
customCss: [
'./src/styles/custom.css',
],
components: {
// Override default components for TigerStyle theming
Head: './src/components/Head.astro',
},
}),
tailwind({
// Disable the default base styles since Starlight provides its own
applyBaseStyles: false,
}),
],
output: 'static',
build: {
format: 'directory',
},
});