-
Notifications
You must be signed in to change notification settings - Fork 120
/
Copy pathconfig.ts
852 lines (831 loc) · 22.6 KB
/
config.ts
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
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
import fs from 'fs'
import path from 'path'
import { defineConfigWithTheme, type HeadConfig, type Plugin } from 'vitepress'
import type { Config as ThemeConfig } from '@vue/theme'
import llmstxt from 'vitepress-plugin-llms'
import baseConfig from '@vue/theme/config'
import { headerPlugin } from './headerMdPlugin'
// import { textAdPlugin } from './textAdMdPlugin'
const nav: ThemeConfig['nav'] = [
{
text: 'ドキュメント',
activeMatch: `^/(guide|style-guide|cookbook|examples)/`,
items: [
{ text: 'ガイド', link: '/guide/introduction' },
{ text: 'チュートリアル', link: '/tutorial/' },
{ text: '実装例', link: '/examples/' },
{ text: 'クイックスタート', link: '/guide/quick-start' },
// { text: 'Style Guide', link: '/style-guide/' },
{ text: '用語集', link: '/glossary/' },
{ text: 'エラーリファレンス', link: '/error-reference/' },
{
text: 'Vue 2 のドキュメント',
link: 'https://v2.ja.vuejs.org'
},
{
text: 'Vue 2 からの移行',
link: 'https://v3-migration.vuejs.org/ja/'
}
]
},
{
text: 'API',
activeMatch: `^/api/`,
link: '/api/'
},
{
text: 'プレイグラウンド',
link: 'https://play.vuejs.org'
},
{
text: 'エコシステム',
activeMatch: `^/ecosystem/`,
items: [
{
text: 'リソース',
items: [
{ text: 'パートナー', link: '/partners/' },
{ text: 'デベロッパー', link: '/developers/' },
{ text: 'テーマ', link: '/ecosystem/themes' },
{ text: 'UI コンポーネント', link: 'https://ui-libs.vercel.app/' },
{
text: '検定',
link: 'https://certificates.dev/vuejs/?ref=vuejs-nav'
},
{ text: '仕事', link: 'https://vuejobs.com/?ref=vuejs' },
{ text: 'T シャツショップ', link: 'https://vue.threadless.com/' }
]
},
{
text: '公式ライブラリー',
items: [
{ text: 'Vue Router', link: 'https://router.vuejs.org/' },
{ text: 'Pinia', link: 'https://pinia.vuejs.org/' },
{ text: 'ツールガイド', link: '/guide/scaling-up/tooling.html' }
]
},
{
text: '動画講座',
items: [
{
text: 'Vue Mastery',
link: 'https://www.vuemastery.com/courses/'
},
{
text: 'Vue School',
link: 'https://vueschool.io/?friend=vuejs&utm_source=Vuejs.org&utm_medium=Link&utm_content=Navbar%20Dropdown'
}
]
},
{
text: 'ヘルプ',
items: [
{
text: 'Discord Chat',
link: 'https://discord.com/invite/HBherRA'
},
{
text: 'GitHub Discussions',
link: 'https://github.com/vuejs/core/discussions'
},
{ text: 'DEV Community', link: 'https://dev.to/t/vue' }
]
},
{
text: 'ニュース',
items: [
{ text: 'ブログ', link: 'https://blog.vuejs.org/' },
{ text: 'Twitter', link: 'https://twitter.com/vuejs' },
{ text: 'イベント', link: 'https://events.vuejs.org/' },
{ text: 'ニュースレター', link: '/ecosystem/newsletters' }
]
}
]
},
{
text: '情報',
activeMatch: `^/about/`,
items: [
{ text: 'FAQ', link: '/about/faq' },
{ text: 'チーム', link: '/about/team' },
{ text: 'リリース', link: '/about/releases' },
{
text: 'コミュニティーガイド',
link: '/about/community-guide'
},
{ text: '行動規範', link: '/about/coc' },
{ text: 'プライバシーポリシー', link: '/about/privacy' },
{
text: 'ドキュメンタリー',
link: 'https://www.youtube.com/watch?v=OrxmtDw4pVI'
}
]
},
{
text: 'スポンサー',
link: '/sponsor/'
},
{
text: 'エキスパート',
badge: { text: 'NEW' },
activeMatch: `^/(partners|developers)/`,
items: [
{ text: 'パートナー', link: '/partners/' },
{ text: 'デベロッパー', link: '/developers/', badge: { text: 'NEW' } }
]
}
]
export const sidebar: ThemeConfig['sidebar'] = {
'/guide/': [
{
text: '入門',
items: [
{ text: 'はじめに', link: '/guide/introduction' },
{
text: 'クイックスタート',
link: '/guide/quick-start'
}
]
},
{
text: '基本',
items: [
{
text: 'アプリケーションの作成',
link: '/guide/essentials/application'
},
{
text: 'テンプレート構文',
link: '/guide/essentials/template-syntax'
},
{
text: 'リアクティビティーの基礎',
link: '/guide/essentials/reactivity-fundamentals'
},
{
text: '算出プロパティ',
link: '/guide/essentials/computed'
},
{
text: 'クラスとスタイルのバインディング',
link: '/guide/essentials/class-and-style'
},
{
text: '条件付きレンダリング',
link: '/guide/essentials/conditional'
},
{ text: 'リストレンダリング', link: '/guide/essentials/list' },
{
text: 'イベントハンドリング',
link: '/guide/essentials/event-handling'
},
{ text: 'フォーム入力バインディング', link: '/guide/essentials/forms' },
{ text: 'ウォッチャー', link: '/guide/essentials/watchers' },
{ text: 'テンプレート参照', link: '/guide/essentials/template-refs' },
{
text: 'コンポーネントの基礎',
link: '/guide/essentials/component-basics'
},
{
text: 'ライフサイクルフック',
link: '/guide/essentials/lifecycle'
}
]
},
{
text: 'コンポーネントの詳細',
items: [
{
text: '登録',
link: '/guide/components/registration'
},
{ text: 'props', link: '/guide/components/props' },
{ text: 'イベント', link: '/guide/components/events' },
{ text: 'コンポーネントの v-model', link: '/guide/components/v-model' },
{
text: 'フォールスルー属性',
link: '/guide/components/attrs'
},
{ text: 'スロット', link: '/guide/components/slots' },
{
text: 'Provide / inject',
link: '/guide/components/provide-inject'
},
{
text: '非同期コンポーネント',
link: '/guide/components/async'
}
]
},
{
text: '再利用性',
items: [
{
text: 'コンポーザブル',
link: '/guide/reusability/composables'
},
{
text: 'カスタムディレクティブ',
link: '/guide/reusability/custom-directives'
},
{ text: 'プラグイン', link: '/guide/reusability/plugins' }
]
},
{
text: '組み込みコンポーネント',
items: [
{ text: 'トランジション', link: '/guide/built-ins/transition' },
{
text: 'トランジショングループ',
link: '/guide/built-ins/transition-group'
},
{ text: 'KeepAlive', link: '/guide/built-ins/keep-alive' },
{ text: 'Teleport', link: '/guide/built-ins/teleport' },
{ text: 'Suspense', link: '/guide/built-ins/suspense' }
]
},
{
text: 'スケールアップ',
items: [
{ text: '単一ファイルコンポーネント', link: '/guide/scaling-up/sfc' },
{ text: 'ツール', link: '/guide/scaling-up/tooling' },
{ text: 'ルーティング', link: '/guide/scaling-up/routing' },
{
text: '状態管理',
link: '/guide/scaling-up/state-management'
},
{ text: 'テスト', link: '/guide/scaling-up/testing' },
{
text: 'サーバーサイドレンダリング(SSR)',
link: '/guide/scaling-up/ssr'
}
]
},
{
text: 'ベストプラクティス',
items: [
{
text: '本番デプロイ',
link: '/guide/best-practices/production-deployment'
},
{
text: 'パフォーマンス',
link: '/guide/best-practices/performance'
},
{
text: 'アクセシビリティー',
link: '/guide/best-practices/accessibility'
},
{
text: 'セキュリティー',
link: '/guide/best-practices/security'
}
]
},
{
text: 'TypeScript',
items: [
{ text: '概要', link: '/guide/typescript/overview' },
{
text: 'Composition API と TypeScript',
link: '/guide/typescript/composition-api'
},
{
text: 'Options API と TypeScript',
link: '/guide/typescript/options-api'
}
]
},
{
text: '番外トピック',
items: [
{
text: 'Vue のさまざまな活用方法',
link: '/guide/extras/ways-of-using-vue'
},
{
text: 'Composition API の FAQ',
link: '/guide/extras/composition-api-faq'
},
{
text: 'リアクティビティーの探求',
link: '/guide/extras/reactivity-in-depth'
},
{
text: 'レンダリングの仕組み',
link: '/guide/extras/rendering-mechanism'
},
{
text: 'レンダー関数と JSX',
link: '/guide/extras/render-function'
},
{
text: 'Vue と Web コンポーネント',
link: '/guide/extras/web-components'
},
{
text: 'アニメーションテクニック',
link: '/guide/extras/animation'
}
// {
// text: 'Building a Library for Vue',
// link: '/guide/extras/building-a-library'
// },
// {
// text: 'Vue for React Devs',
// link: '/guide/extras/vue-for-react-devs'
// }
]
}
],
'/api/': [
{
text: 'グローバル API',
items: [
{ text: 'アプリケーション', link: '/api/application' },
{
text: '汎用',
link: '/api/general'
}
]
},
{
text: 'Composition API',
items: [
{ text: 'setup()', link: '/api/composition-api-setup' },
{
text: 'リアクティビティー: コア',
link: '/api/reactivity-core'
},
{
text: 'リアクティビティー: ユーティリティー',
link: '/api/reactivity-utilities'
},
{
text: 'リアクティビティー: 上級編',
link: '/api/reactivity-advanced'
},
{
text: 'ライフサイクルフック',
link: '/api/composition-api-lifecycle'
},
{
text: '依存関係の注入',
link: '/api/composition-api-dependency-injection'
},
{
text: 'ヘルパー',
link: '/api/composition-api-helpers'
}
]
},
{
text: 'Options API',
items: [
{ text: 'オプション: 状態', link: '/api/options-state' },
{ text: 'オプション: レンダリング', link: '/api/options-rendering' },
{
text: 'オプション: ライフサイクル',
link: '/api/options-lifecycle'
},
{
text: 'オプション: 合成',
link: '/api/options-composition'
},
{ text: 'オプション: その他', link: '/api/options-misc' },
{
text: 'コンポーネントインスタンス',
link: '/api/component-instance'
}
]
},
{
text: 'ビルトイン',
items: [
{ text: 'ディレクティブ', link: '/api/built-in-directives' },
{ text: 'コンポーネント', link: '/api/built-in-components' },
{
text: '特別な要素',
link: '/api/built-in-special-elements'
},
{
text: '特別な属性',
link: '/api/built-in-special-attributes'
}
]
},
{
text: '単一ファイルコンポーネント',
items: [
{ text: '構文仕様', link: '/api/sfc-spec' },
{ text: '<script setup>', link: '/api/sfc-script-setup' },
{ text: 'CSS 機能', link: '/api/sfc-css-features' }
]
},
{
text: '高度な API',
items: [
{ text: 'カスタム要素', link: '/api/custom-elements' },
{ text: 'レンダー関数', link: '/api/render-function' },
{ text: 'サーバーサイドレンダリング', link: '/api/ssr' },
{ text: 'TypeScript ユーティリティー', link: '/api/utility-types' }, // /api/ で折り返されないよう「型」を省略
{ text: 'カスタムレンダラー', link: '/api/custom-renderer' },
{ text: 'コンパイル時フラグ', link: '/api/compile-time-flags' }
]
}
],
'/examples/': [
{
text: 'Basic',
items: [
{
text: 'Hello World',
link: '/examples/#hello-world'
},
{
text: 'Handling User Input',
link: '/examples/#handling-input'
},
{
text: 'Attribute Bindings',
link: '/examples/#attribute-bindings'
},
{
text: 'Conditionals and Loops',
link: '/examples/#conditionals-and-loops'
},
{
text: 'Form Bindings',
link: '/examples/#form-bindings'
},
{
text: 'Simple Component',
link: '/examples/#simple-component'
}
]
},
{
text: 'Practical',
items: [
{
text: 'Markdown Editor',
link: '/examples/#markdown'
},
{
text: 'Fetching Data',
link: '/examples/#fetching-data'
},
{
text: 'Grid with Sort and Filter',
link: '/examples/#grid'
},
{
text: 'Tree View',
link: '/examples/#tree'
},
{
text: 'SVG Graph',
link: '/examples/#svg'
},
{
text: 'Modal with Transitions',
link: '/examples/#modal'
},
{
text: 'List with Transitions',
link: '/examples/#list-transition'
},
{
text: 'TodoMVC',
link: '/examples/#todomvc'
}
]
},
{
// https://eugenkiss.github.io/7guis/
text: '7 GUIs',
items: [
{
text: 'Counter',
link: '/examples/#counter'
},
{
text: 'Temperature Converter',
link: '/examples/#temperature-converter'
},
{
text: 'Flight Booker',
link: '/examples/#flight-booker'
},
{
text: 'Timer',
link: '/examples/#timer'
},
{
text: 'CRUD',
link: '/examples/#crud'
},
{
text: 'Circle Drawer',
link: '/examples/#circle-drawer'
},
{
text: 'Cells',
link: '/examples/#cells'
}
]
}
],
'/style-guide/': [
{
text: 'Style Guide',
items: [
{
text: '概要',
link: '/style-guide/'
},
{
text: '優先度A: 必須',
link: '/style-guide/rules-essential'
},
{
text: '優先度B: 強く推奨',
link: '/style-guide/rules-strongly-recommended'
},
{
text: '優先度C: 推奨',
link: '/style-guide/rules-recommended'
},
{
text: '優先度D: 注意深く使用する',
link: '/style-guide/rules-use-with-caution'
}
]
}
]
}
const i18n: ThemeConfig['i18n'] = {
search: '検索',
menu: 'メニュー',
toc: '目次',
returnToTop: '上に戻る',
appearance: '外観',
previous: '前のページ',
next: '次のページ',
pageNotFound: 'ページが見つかりません',
deadLink: {
before: '存在しないリンクです: ',
link: '',
after: '',
},
deadLinkReport: {
before: '修正しますので',
link: 'こちらのリンク',
after: 'よりお知らせください。',
},
footerLicense:{
before: '',
link: '',
after: 'のもとで公開されています。',
},
// aria labels
ariaAnnouncer: {
before: '',
link: '',
after: 'が読み込まれました'
},
ariaDarkMode: 'ダークモードの切り替え',
ariaSkipToContent: '本文へジャンプ',
ariaToC: '現在のページの目次',
ariaMainNav: 'メイン・ナビゲーション',
ariaMobileNav: 'モバイル・ナビゲーション',
ariaSidebarNav: 'サイドバー・ナビゲーション',
}
function inlineScript(file: string): HeadConfig {
return [
'script',
{},
fs.readFileSync(
path.resolve(__dirname, `./inlined-scripts/${file}`),
'utf-8'
)
]
}
export default defineConfigWithTheme<ThemeConfig>({
extends: baseConfig,
sitemap: {
hostname: 'https://ja.vuejs.org'
},
lang: 'ja',
title: 'Vue.js',
description: 'Vue.js - The Progressive JavaScript Framework',
srcDir: 'src',
srcExclude: ['tutorial/**/description.md'],
head: [
['meta', { name: 'theme-color', content: '#3c8772' }],
['meta', { property: 'og:url', content: 'https://vuejs.org/' }],
['meta', { property: 'og:type', content: 'website' }],
['meta', { property: 'og:title', content: 'Vue.js' }],
[
'meta',
{
property: 'og:description',
content: 'Vue.js - The Progressive JavaScript Framework'
}
],
[
'meta',
{
property: 'og:image',
content: 'https://vuejs.org/images/logo.png'
}
],
['meta', { name: 'twitter:site', content: '@vuejs' }],
['meta', { name: 'twitter:card', content: 'summary' }],
[
'link',
{
rel: 'preconnect',
href: 'https://automation.vuejs.org'
}
],
inlineScript('restorePreference.js'),
inlineScript('uwu.js'),
[
'script',
{
src: 'https://cdn.usefathom.com/script.js',
'data-site': 'NJTQDIQA',
'data-spa': 'auto',
defer: ''
}
],
[
'script',
{
src: 'https://vueschool.io/banner.js?affiliate=vuejs&type=top',
async: 'true'
}
],
inlineScript('perfops.js')
],
themeConfig: {
nav,
sidebar,
i18n,
localeLinks: [
{
link: 'https://vuejs.org',
text: 'English',
repo: 'https://github.com/vuejs/docs'
},
{
link: 'https://cn.vuejs.org',
text: '简体中文',
repo: 'https://github.com/vuejs-translations/docs-zh-cn'
},
{
link: 'https://ua.vuejs.org',
text: 'Українська',
repo: 'https://github.com/vuejs-translations/docs-uk'
},
{
link: 'https://fr.vuejs.org',
text: 'Français',
repo: 'https://github.com/vuejs-translations/docs-fr'
},
{
link: 'https://ko.vuejs.org',
text: '한국어',
repo: 'https://github.com/vuejs-translations/docs-ko'
},
{
link: 'https://pt.vuejs.org',
text: 'Português',
repo: 'https://github.com/vuejs-translations/docs-pt'
},
{
link: 'https://bn.vuejs.org',
text: 'বাংলা',
repo: 'https://github.com/vuejs-translations/docs-bn'
},
{
link: 'https://it.vuejs.org',
text: 'Italiano',
repo: 'https://github.com/vuejs-translations/docs-it'
},
{
link: 'https://fa.vuejs.org',
text: 'فارسی',
repo: 'https://github.com/vuejs-translations/docs-fa'
},
{
link: 'https://ru.vuejs.org',
text: 'Русский',
repo: 'https://github.com/vuejs-translations/docs-ru'
},
{
link: 'https://cs.vuejs.org',
text: 'Čeština',
repo: 'https://github.com/vuejs-translations/docs-cs'
},
{
link: 'https://zh-hk.vuejs.org',
text: '繁體中文',
repo: 'https://github.com/vuejs-translations/docs-zh-hk'
},
{
link: 'https://pl.vuejs.org',
text: 'Polski',
repo: 'https://github.com/vuejs-translations/docs-pl',
},
{
link: '/translations/',
text: '翻訳にご協力ください!',
isTranslationsDesc: true
}
],
algolia: {
indexName: 'vuejs',
appId: 'ML0LEBN7FQ',
apiKey: '21cf9df0734770a2448a9da64a700c22',
searchParameters: {
facetFilters: ['version:v3']
}
},
carbonAds: {
code: 'CEBDT27Y',
placement: 'vuejsorg'
},
socialLinks: [
{ icon: 'github', link: 'https://github.com/vuejs/' },
{ icon: 'twitter', link: 'https://twitter.com/vuejs' },
{ icon: 'discord', link: 'https://discord.com/invite/vue' }
],
editLink: {
repo: 'vuejs-translations/docs-ja',
text: 'このページを GitHub で編集'
},
footer: {
license: {
text: 'MIT ライセンス',
link: 'https://opensource.org/licenses/MIT'
},
copyright: '日本語ドキュメントの内容の著作権は Vue 公式チームと翻訳協力者にあり、すべての権利は留保されています。'
}
},
markdown: {
theme: 'github-dark',
config(md) {
md.use(headerPlugin)
// .use(textAdPlugin)
}
},
vite: {
define: {
__VUE_OPTIONS_API__: false
},
optimizeDeps: {
include: ['gsap', 'dynamics.js'],
exclude: ['@vue/repl']
},
// @ts-ignore
ssr: {
external: ['@vue/repl']
},
server: {
host: true,
fs: {
// for when developing with locally linked theme
allow: ['../..']
}
},
build: {
chunkSizeWarningLimit: Infinity
},
json: {
stringify: true
},
plugins: [
llmstxt({
ignoreFiles: [
'about/team/**/*',
'about/team.md',
'about/privacy.md',
'about/coc.md',
'developers/**/*',
'ecosystem/themes.md',
'examples/**/*',
'partners/**/*',
'sponsor/**/*',
'index.md'
],
customLLMsTxtTemplate: `\
# Vue.js
Vue.js - The Progressive JavaScript Framework
## Table of Contents
{toc}`
}) as Plugin
]
}
})