Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 25 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,26 @@
node_modules
.idea
.docusaurus
build
# build output
dist/
.vercel/

# Local Netlify folder
.netlify
# generated types
.astro/

# dependencies
node_modules/

# logs
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*

# environment variables
.env
.env.production
.env.local

# macOS-specific files
.DS_Store

# jetbrains setting folder
.idea/
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
22
20
137 changes: 137 additions & 0 deletions astro.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,137 @@
import { defineConfig } from 'astro/config';
import fs from 'node:fs';
import { fileURLToPath } from 'node:url';
import mdx from '@astrojs/mdx';
import react from '@astrojs/react';
import sitemap from '@astrojs/sitemap';
import vercel from '@astrojs/vercel';
import expressiveCode, { ExpressiveCodeTheme } from 'astro-expressive-code';
import remarkGfm from 'remark-gfm';

const suitesCodeTheme = ExpressiveCodeTheme.fromJSONString(
fs.readFileSync(
fileURLToPath(new URL('./src/styles/suites-code-theme.json', import.meta.url)),
'utf-8'
)
);

export default defineConfig({
site: 'https://suites.dev',
trailingSlash: 'ignore',
output: 'static',
adapter: vercel({
webAnalytics: { enabled: true },
imageService: true,
}),
integrations: [
expressiveCode({
themes: [suitesCodeTheme],
styleOverrides: {
// intentionally empty; tokens live in src/styles/tokens.css.
},
}),
mdx({
remarkPlugins: [remarkGfm],
}),
react(),
sitemap(),
],
redirects: {
// ============================================================
// CRITICAL REDIRECTS (High Traffic Pages)
// ============================================================

// Quick Start
'/docs/overview/quickstart': { status: 301, destination: '/docs/get-started/quickstart' },
'/docs/learn/get-started/quickstart': { status: 301, destination: '/docs/get-started/quickstart' },
'/docs/introduction/quick-example': { status: 301, destination: '/docs/get-started/quickstart' },

// Installation
'/docs/overview/installation': { status: 301, destination: '/docs/get-started/installation' },
'/docs/learn/get-started/installation': { status: 301, destination: '/docs/get-started/installation' },

// API Reference
'/docs/developer-guide/unit-tests/suites-api': { status: 301, destination: '/docs/api-reference/' },
'/docs/learn/unit-tests/suites-api': { status: 301, destination: '/docs/api-reference/' },
'/docs/api-reference/testbed-api': { status: 301, destination: '/docs/api-reference/' },
'/docs/api-reference/fail-fast': { status: 301, destination: '/docs/api-reference/' },
'/api-reference': { status: 301, destination: '/docs/api-reference/' },

// Solitary Tests
'/docs/developer-guide/unit-tests/solitary': { status: 301, destination: '/docs/guides/solitary' },
'/docs/learn/unit-tests/solitary': { status: 301, destination: '/docs/guides/solitary' },

// Sociable Tests
'/docs/developer-guide/unit-tests/sociable': { status: 301, destination: '/docs/guides/sociable' },
'/docs/learn/unit-tests/sociable': { status: 301, destination: '/docs/guides/sociable' },

// Test Doubles
'/docs/developer-guide/unit-tests/test-doubles': { status: 301, destination: '/docs/guides/test-doubles' },
'/docs/learn/unit-tests/test-doubles': { status: 301, destination: '/docs/guides/test-doubles' },

// Fundamentals
'/docs/developer-guide/unit-tests/fundamentals': { status: 301, destination: '/docs/guides/fundamentals' },
'/docs/learn/unit-tests/fundamentals': { status: 301, destination: '/docs/guides/fundamentals' },

// ============================================================
// MIGRATION GUIDES
// ============================================================

'/docs/migrating-from-automock': { status: 301, destination: '/docs/migration-guides/from-automock' },
'/docs/resources/migrating-from-automock': { status: 301, destination: '/docs/migration-guides/from-automock' },
'/docs/overview/migrating-from-automock': { status: 301, destination: '/docs/migration-guides/from-automock' },
'/docs/getting-started/change-log': { status: 301, destination: '/docs/migration-guides/from-automock' },

// ============================================================
// OVERVIEW SECTION
// ============================================================

'/docs/overview': { status: 301, destination: '/docs/get-started/' },
'/docs/overview/what-is-suites': { status: 301, destination: '/docs/get-started/' },
'/docs/overview/problems-solved': { status: 301, destination: '/docs/get-started/why-suites' },
'/docs/resources/problems-solved': { status: 301, destination: '/docs/get-started/why-suites' },
'/docs/overview/comparisons': { status: 301, destination: '/docs/get-started/why-suites' },
'/docs/overview/motivation': { status: 301, destination: '/docs/get-started/why-suites' },
'/docs/overview/depdency-injection-and-automock': { status: 301, destination: '/docs/get-started/why-suites' },
'/docs/overview/dependency-injection-and-automock': { status: 301, destination: '/docs/get-started/why-suites' },
'/docs/core-concepts/dependency-injection': { status: 301, destination: '/docs/get-started/why-suites' },

// ============================================================
// DEVELOPER GUIDE
// (wildcard variants for remaining old paths live in vercel.json)
// ============================================================

'/docs/developer-guide/unit-tests': { status: 301, destination: '/docs/guides/' },

// ============================================================
// DOCS BASE PATH
// ============================================================

'/docs': { status: 301, destination: '/docs/get-started/' },

// ============================================================
// CATEGORY PAGES
// ============================================================

'/docs/category/extras': { status: 301, destination: '/docs/guides/' },
'/docs/category/getting-started': { status: 301, destination: '/docs/get-started/' },
'/docs/category/di-framework-adapters': { status: 301, destination: '/docs/get-started/' },

// ============================================================
// EXTRAS (removed pages)
// ============================================================

'/docs/extras/identical-injections': { status: 301, destination: '/docs/guides/' },

// ============================================================
// ADAPTERS (restructured - bundled into core)
// ============================================================

'/docs/adapters/inversify': { status: 301, destination: '/docs/get-started/' },
'/docs/adapters/identifiers': { status: 301, destination: '/docs/get-started/' },
'/docs/developer-guide/adapters/inversifyjs': { status: 301, destination: '/docs/get-started/' },
'/docs/developer-guide/adapters/identifiers': { status: 301, destination: '/docs/get-started/' },
'/docs/guides/adapters/inversifyjs': { status: 301, destination: '/docs/get-started/' },
// wildcard /docs/adapters/[...slug] lives in vercel.json
},
});
111 changes: 0 additions & 111 deletions config/algolia-config.js

This file was deleted.

31 changes: 0 additions & 31 deletions config/api-sidebars.js

This file was deleted.

3 changes: 0 additions & 3 deletions config/babel.config.js

This file was deleted.

24 changes: 0 additions & 24 deletions config/docs-sidebars.js

This file was deleted.

Loading