forked from SceneMakerAI/docs-web
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocusaurus.config.ts
More file actions
204 lines (192 loc) · 5.99 KB
/
Copy pathdocusaurus.config.ts
File metadata and controls
204 lines (192 loc) · 5.99 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
import {themes as prismThemes} from 'prism-react-renderer';
import type {Config} from '@docusaurus/types';
import type * as Preset from '@docusaurus/preset-classic';
// This runs in Node.js - Don't use client-side code here (browser APIs, JSX...)
const config: Config = {
title: 'SceneMakerAI',
tagline: '오픈소스 AI로 방송 콘텐츠를 재가공하다 — SceneMakerAI 기술 블로그 · 문서',
favicon: 'img/favicon.svg',
// Future flags, see https://docusaurus.io/docs/api/docusaurus-config#future
future: {
v4: true, // Improve compatibility with the upcoming Docusaurus v4
},
// Set the production url of your site here
url: 'https://doc.scenemaker.solbox.com',
// 커스텀 도메인 적용 후에는 호스트가 이 리포 전용이므로 서브패스 불필요
baseUrl: '/',
// GitHub pages deployment config.
organizationName: 'SceneMakerAI', // GitHub org name
projectName: 'docs-web', // GitHub repo name
onBrokenLinks: 'throw',
headTags: [
// 파비콘 변형 (SVG 우선 — favicon 옵션 / PNG·ICO·apple-touch-icon fallback)
{ tagName: 'link', attributes: { rel: 'icon', type: 'image/png', sizes: '32x32', href: '/img/favicon-32x32.png' } },
{ tagName: 'link', attributes: { rel: 'icon', type: 'image/png', sizes: '16x16', href: '/img/favicon-16x16.png' } },
{ tagName: 'link', attributes: { rel: 'icon', type: 'image/x-icon', href: '/img/favicon.ico' } },
{ tagName: 'link', attributes: { rel: 'apple-touch-icon', sizes: '180x180', href: '/img/apple-touch-icon.png' } },
// Google Fonts (Geist + Inter) — design.md 의 font-display / font-body 토큰
{ tagName: 'link', attributes: { rel: 'preconnect', href: 'https://fonts.googleapis.com' } },
{ tagName: 'link', attributes: { rel: 'preconnect', href: 'https://fonts.gstatic.com', crossorigin: 'anonymous' } },
{ tagName: 'link', attributes: { rel: 'stylesheet', href: 'https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700&family=Inter:wght@400;500;600;700&display=swap' } },
],
i18n: {
defaultLocale: 'ko',
locales: ['ko', 'en'],
localeConfigs: {
ko: {
label: '한국어',
direction: 'ltr',
htmlLang: 'ko-KR',
calendar: 'gregory',
path: 'ko',
},
en: {
label: 'English',
direction: 'ltr',
htmlLang: 'en-US',
calendar: 'gregory',
path: 'en',
},
},
},
presets: [
[
'classic',
{
docs: {
sidebarPath: './sidebars.ts',
editUrl: 'https://github.com/SceneMakerAI/docs-web/edit/main/',
},
blog: {
showReadingTime: true,
feedOptions: {
type: ['rss', 'atom'],
xslt: true,
},
editUrl: 'https://github.com/SceneMakerAI/docs-web/edit/main/',
// Useful options to enforce blogging best practices
onInlineTags: 'warn',
onInlineAuthors: 'warn',
onUntruncatedBlogPosts: 'warn',
},
theme: {
customCss: './src/css/custom.css',
},
} satisfies Preset.Options,
],
],
themeConfig: {
// OpenGraph / Twitter card 공용 이미지 — sample.pen hero 톤, gemini-3-pro-image-preview 로 생성
image: 'img/og.jpg',
colorMode: {
respectPrefersColorScheme: true,
},
navbar: {
title: 'SceneMakerAI',
logo: {
alt: 'SceneMakerAI Logo',
src: 'img/logo.svg',
srcDark: 'img/logo-dark.svg',
},
items: [
{to: '/about', label: '프로젝트 소개', position: 'left'},
{
type: 'docSidebar',
sidebarId: 'architectureSidebar',
position: 'left',
label: '아키텍처',
},
{
type: 'docSidebar',
sidebarId: 'docsSidebar',
position: 'left',
label: '문서',
},
{to: '/blog', label: '블로그', position: 'left'},
{
type: 'docSidebar',
sidebarId: 'contributeSidebar',
position: 'left',
label: '오픈소스 기여',
},
{
type: 'docSidebar',
sidebarId: 'releaseNotesSidebar',
position: 'left',
label: '릴리즈 노트',
},
{
type: 'localeDropdown',
position: 'right',
},
{
href: 'https://github.com/SceneMakerAI/docs-web',
label: 'GitHub',
position: 'right',
},
],
},
footer: {
style: 'dark',
links: [
{
title: '문서',
items: [
{
label: '시작하기',
to: '/docs/intro',
},
{
label: '아키텍처',
to: '/docs/architecture/overview',
},
{
label: '오픈소스 기여',
to: '/docs/contribute/overview',
},
{
label: '릴리즈 노트',
to: '/docs/release-notes/overview',
},
],
},
{
title: '커뮤니티',
items: [
{
label: 'Hugging Face',
href: 'https://huggingface.co/Qwen',
},
{
label: 'LangChain',
href: 'https://www.langchain.com/',
},
],
},
{
title: '더 보기',
items: [
{
label: '블로그',
to: '/blog',
},
{
label: 'GitHub',
href: 'https://github.com/SceneMakerAI/docs-web',
},
{
label: 'Solbox',
href: 'https://solbox.com',
},
],
},
],
copyright: `Copyright © ${new Date().getFullYear()} SceneMakerAI · Solbox Inc. Built with Docusaurus.`,
},
prism: {
theme: prismThemes.github,
darkTheme: prismThemes.dracula,
},
} satisfies Preset.ThemeConfig,
};
export default config;