mirror of
https://github.com/catlog22/Claude-Code-Workflow.git
synced 2026-02-09 02:24:11 +08:00
- 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.
79 lines
1.6 KiB
TypeScript
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;
|