Files
Claude-Code-Workflow/ccw/docs-site/docusaurus.config.ts
catlog22 5cfeb59124 feat: add configuration backup, sync, and version checker services
- Implemented ConfigBackupService for backing up local configuration files.
- Added ConfigSyncService to download configuration files from GitHub with remote-first conflict resolution.
- Created VersionChecker to check application version against the latest GitHub release with caching.
- Introduced security validation utilities for input validation to prevent common vulnerabilities.
- Developed utility functions to start and stop Docusaurus documentation server.
2026-02-05 17:32:31 +08:00

79 lines
1.6 KiB
TypeScript

import type { Config } from '@docusaurus/types';
import type { Options as PresetOptions } from '@docusaurus/preset-classic';
import type { ThemeConfig } from '@docusaurus/preset-classic';
const config: Config = {
title: 'CCW Help Documentation',
tagline: 'Professional Workflow Automation Platform',
favicon: 'img/favicon.ico',
url: 'http://localhost:3001',
baseUrl: '/docs/',
organizationName: 'ccw',
projectName: 'docs',
trailingSlash: false,
onBrokenLinks: 'warn',
onBrokenMarkdownLinks: 'warn',
i18n: {
defaultLocale: 'en',
locales: ['en', 'zh'],
localeConfigs: {
zh: {
label: '简体中文',
htmlLang: 'zh-CN',
},
},
},
presets: [
[
'@docusaurus/preset-classic',
{
docs: {
path: 'docs',
routeBasePath: '/',
sidebarPath: './sidebars.ts',
editUrl: 'https://github.com/ccw/docs/tree/main/',
},
blog: false,
theme: {
customCss: ['./src/css/custom.css'],
},
} satisfies PresetOptions,
],
],
themeConfig: {
navbar: {
title: 'CCW Help',
logo: {
alt: 'CCW Logo',
src: 'img/logo.svg',
},
items: [
{
type: 'localeDropdown',
position: 'right',
},
],
},
footer: {
style: 'dark',
copyright: `Copyright © ${new Date().getFullYear()} CCW. Built with Docusaurus.`,
},
prism: {
additionalLanguages: ['typescript', 'javascript', 'bash', 'python', 'java', 'go', 'yaml', 'json'],
},
} satisfies ThemeConfig,
markdown: {
mermaid: true,
},
};
export default config;