diff --git a/docs/.vitepress/config.js b/docs/.vitepress/config.js deleted file mode 100644 index acccb7e..0000000 --- a/docs/.vitepress/config.js +++ /dev/null @@ -1,45 +0,0 @@ -import { defineConfig } from 'vitepress'; - -export default defineConfig({ - title: 'TrapFall', - description: 'Lightweight self-hosted error capture engine', - lang: 'en-US', - cleanUrls: true, - base: '/docs/trapfall/', - head: [['link', { rel: 'icon', type: 'image/svg+xml', href: '/logo.svg' }]], - themeConfig: { - nav: [ - { text: 'Codecora', link: 'https://codecora.dev' }, - { text: 'Guide', link: '/guide/getting-started' }, - { text: 'Config', link: '/guide/configuration' }, - { text: 'API', link: '/guide/api' }, - { text: 'GitHub', link: 'https://github.com/codecoradev/trapfall' }, - ], - sidebar: [ - { - text: 'Guide', - items: [ - { text: 'Getting Started', link: '/guide/getting-started' }, - { text: 'Configuration', link: '/guide/configuration' }, - { text: 'Multi-Project', link: '/guide/multi-project' }, - { text: 'SDK Integration', link: '/guide/sdk-integration' }, - { text: 'Docker', link: '/guide/docker' }, - { text: 'VPS Deployment', link: '/guide/vps-deployment' }, - { text: 'CLI Reference', link: '/guide/cli' }, - { text: 'SQLite → Postgres Migration', link: '/guide/migration' }, - { text: 'API Reference', link: '/guide/api' }, - { text: 'Alert Rules', link: '/guide/alerts' }, - { text: 'Search', link: '/guide/search' }, - { text: 'Security', link: '/guide/security' }, - { text: 'MCP Server', link: '/guide/mcp' }, - ], - }, - ], - socialLinks: [ - { icon: 'github', link: 'https://github.com/codecoradev/trapfall' }, - ], - search: { - provider: 'local', - }, - }, -}); diff --git a/docs/.vitepress/config.ts b/docs/.vitepress/config.ts new file mode 100644 index 0000000..218745c --- /dev/null +++ b/docs/.vitepress/config.ts @@ -0,0 +1,29 @@ +import { createConfig } from '@codecora/theme/vitepress/config' + +export default createConfig({ + product: 'trapfall', + title: 'TrapFall', + description: 'Lightweight self-hosted error capture engine', + accent: 'red', + repo: 'trapfall', + sidebar: [ + { + text: 'Guide', + items: [ + { text: 'Getting Started', link: '/guide/getting-started' }, + { text: 'Configuration', link: '/guide/configuration' }, + { text: 'Multi-Project', link: '/guide/multi-project' }, + { text: 'SDK Integration', link: '/guide/sdk-integration' }, + { text: 'Docker', link: '/guide/docker' }, + { text: 'VPS Deployment', link: '/guide/vps-deployment' }, + { text: 'CLI Reference', link: '/guide/cli' }, + { text: 'SQLite → Postgres Migration', link: '/guide/migration' }, + { text: 'API Reference', link: '/guide/api' }, + { text: 'Alert Rules', link: '/guide/alerts' }, + { text: 'Search', link: '/guide/search' }, + { text: 'Security', link: '/guide/security' }, + { text: 'MCP Server', link: '/guide/mcp' }, + ], + }, + ], +}) diff --git a/docs/.vitepress/theme/index.ts b/docs/.vitepress/theme/index.ts new file mode 100644 index 0000000..4ed2add --- /dev/null +++ b/docs/.vitepress/theme/index.ts @@ -0,0 +1,4 @@ +import DefaultTheme from 'vitepress/theme' +import '@codecora/theme/vitepress/style.css' + +export default { extends: DefaultTheme } diff --git a/docs/package-lock.json b/docs/package-lock.json index c2b2bfe..f897f10 100644 --- a/docs/package-lock.json +++ b/docs/package-lock.json @@ -6,6 +6,7 @@ "": { "name": "trapfall-docs", "devDependencies": { + "@codecora/theme": "github:codecoradev/codecora-theme#feat/add-ci-workflow", "vitepress": "^1.6.0" } }, @@ -317,6 +318,20 @@ "node": ">=6.9.0" } }, + "node_modules/@codecora/theme": { + "version": "0.1.0", + "resolved": "git+ssh://git@github.com/codecoradev/codecora-theme.git#bbde4c21afd92f7410a21d4a4d8f45f70daddb03", + "dev": true, + "license": "Apache-2.0", + "peerDependencies": { + "vitepress": "^1.0.0" + }, + "peerDependenciesMeta": { + "vitepress": { + "optional": true + } + } + }, "node_modules/@docsearch/css": { "version": "3.8.2", "resolved": "https://registry.npmjs.org/@docsearch/css/-/css-3.8.2.tgz", @@ -875,9 +890,6 @@ "arm" ], "dev": true, - "libc": [ - "glibc" - ], "license": "MIT", "optional": true, "os": [ @@ -892,9 +904,6 @@ "arm" ], "dev": true, - "libc": [ - "musl" - ], "license": "MIT", "optional": true, "os": [ @@ -909,9 +918,6 @@ "arm64" ], "dev": true, - "libc": [ - "glibc" - ], "license": "MIT", "optional": true, "os": [ @@ -926,9 +932,6 @@ "arm64" ], "dev": true, - "libc": [ - "musl" - ], "license": "MIT", "optional": true, "os": [ @@ -943,9 +946,6 @@ "loong64" ], "dev": true, - "libc": [ - "glibc" - ], "license": "MIT", "optional": true, "os": [ @@ -960,9 +960,6 @@ "loong64" ], "dev": true, - "libc": [ - "musl" - ], "license": "MIT", "optional": true, "os": [ @@ -977,9 +974,6 @@ "ppc64" ], "dev": true, - "libc": [ - "glibc" - ], "license": "MIT", "optional": true, "os": [ @@ -994,9 +988,6 @@ "ppc64" ], "dev": true, - "libc": [ - "musl" - ], "license": "MIT", "optional": true, "os": [ @@ -1011,9 +1002,6 @@ "riscv64" ], "dev": true, - "libc": [ - "glibc" - ], "license": "MIT", "optional": true, "os": [ @@ -1028,9 +1016,6 @@ "riscv64" ], "dev": true, - "libc": [ - "musl" - ], "license": "MIT", "optional": true, "os": [ @@ -1045,9 +1030,6 @@ "s390x" ], "dev": true, - "libc": [ - "glibc" - ], "license": "MIT", "optional": true, "os": [ @@ -1062,9 +1044,6 @@ "x64" ], "dev": true, - "libc": [ - "glibc" - ], "license": "MIT", "optional": true, "os": [ @@ -1079,9 +1058,6 @@ "x64" ], "dev": true, - "libc": [ - "musl" - ], "license": "MIT", "optional": true, "os": [ diff --git a/docs/package.json b/docs/package.json index d26d166..60b10a4 100644 --- a/docs/package.json +++ b/docs/package.json @@ -8,6 +8,7 @@ "preview": "vitepress preview" }, "devDependencies": { + "@codecora/theme": "github:codecoradev/codecora-theme#feat/add-ci-workflow", "vitepress": "^1.6.0" } }