@@ -3,118 +3,119 @@ import { defineConfig } from "vitepress";
33import { enConfig , jaConfig , koConfig , zhConfig } from "./locales" ;
44
55export default defineConfig ( {
6- title : "FxTS" ,
7- description : "A functional library for TypeScript/JavaScript programmers." ,
6+ title : "FxTS" ,
7+ description : "A functional library for TypeScript/JavaScript programmers." ,
88
9- cleanUrls : true ,
9+ cleanUrls : true ,
1010
11- transformPageData ( pageData ) {
12- const description =
13- pageData . frontmatter . description ||
14- "A functional library for TypeScript/JavaScript programmers." ;
15- const title = pageData . frontmatter . id
16- ? `${ pageData . frontmatter . id } - FxTS`
17- : pageData . title || "FxTS" ;
18- const ogImage = "https://fxts.dev/img/og_image.png" ;
11+ transformPageData ( pageData ) {
12+ const description =
13+ pageData . frontmatter . description ||
14+ "A functional library for TypeScript/JavaScript programmers." ;
15+ const title = pageData . frontmatter . id
16+ ? `${ pageData . frontmatter . id } - FxTS`
17+ : pageData . title || "FxTS" ;
18+ const ogImage = "https://fxts.dev/img/og_image.png" ;
1919
20- pageData . frontmatter . head = pageData . frontmatter . head || [ ] ;
21- pageData . frontmatter . head . push (
22- [ "meta" , { name : "description" , content : description } ] ,
23- [ "meta" , { property : "og:title" , content : title } ] ,
24- [ "meta" , { property : "og:description" , content : description } ] ,
25- [ "meta" , { property : "og:type" , content : "website" } ] ,
26- [ "meta" , { property : "og:image" , content : ogImage } ] ,
27- [ "meta" , { name : "twitter:card" , content : "summary_large_image" } ] ,
28- [ "meta" , { name : "twitter:title" , content : title } ] ,
29- [ "meta" , { name : "twitter:description" , content : description } ] ,
30- [ "meta" , { name : "twitter:image" , content : ogImage } ] ,
31- ) ;
32- } ,
20+ pageData . frontmatter . head = pageData . frontmatter . head || [ ] ;
21+ pageData . frontmatter . head . push (
22+ [ "meta" , { name : "description" , content : description } ] ,
23+ [ "meta" , { property : "og:title" , content : title } ] ,
24+ [ "meta" , { property : "og:description" , content : description } ] ,
25+ [ "meta" , { property : "og:type" , content : "website" } ] ,
26+ [ "meta" , { property : "og:image" , content : ogImage } ] ,
27+ [ "meta" , { name : "twitter:card" , content : "summary_large_image" } ] ,
28+ [ "meta" , { name : "twitter:title" , content : title } ] ,
29+ [ "meta" , { name : "twitter:description" , content : description } ] ,
30+ [ "meta" , { name : "twitter:image" , content : ogImage } ] ,
31+ ) ;
32+ } ,
3333
34- head : [
35- [ "link" , { rel : "icon" , href : "/img/favicon.ico" } ] ,
36- [
37- "script" ,
38- {
39- async : "" ,
40- src : "https://www.googletagmanager.com/gtag/js?id=G-BTGRJYWTNK" ,
41- } ,
42- ] ,
43- [
44- "script" ,
45- { } ,
46- `window.dataLayer = window.dataLayer || [];
34+ head : [
35+ [ "link" , { rel : "icon" , href : "/img/favicon.ico" } ] ,
36+ [
37+ "script" ,
38+ {
39+ async : "" ,
40+ src : "https://www.googletagmanager.com/gtag/js?id=G-BTGRJYWTNK" ,
41+ } ,
42+ ] ,
43+ [
44+ "script" ,
45+ { } ,
46+ `window.dataLayer = window.dataLayer || [];
4747 function gtag(){dataLayer.push(arguments);}
4848 gtag('js', new Date());
4949 gtag('config', 'G-BTGRJYWTNK');` ,
50- ] ,
51- ] ,
50+ ] ,
51+ ] ,
5252
53- locales : {
54- root : {
55- ...enConfig ,
56- } ,
57- ko : {
58- ...koConfig ,
59- } ,
60- ja : {
61- ...jaConfig ,
62- } ,
63- zh : {
64- ...zhConfig ,
65- } ,
66- } ,
53+ locales : {
54+ root : {
55+ ...enConfig ,
56+ } ,
57+ ko : {
58+ ...koConfig ,
59+ } ,
60+ ja : {
61+ ...jaConfig ,
62+ } ,
63+ zh : {
64+ ...zhConfig ,
65+ } ,
66+ } ,
6767
68- themeConfig : {
69- logo : "/img/fxts.png" ,
70- siteTitle : "FxTS" ,
68+ themeConfig : {
69+ logo : "/img/fxts.png" ,
70+ siteTitle : "FxTS" ,
7171
72- footer : {
73- message : "Released under the Apache-2.0 License." ,
74- copyright : `Copyright © ${ new Date ( ) . getFullYear ( ) } <a href="https://www.marpplecorp.com/">MARPPLE CORP.</a>` ,
75- } ,
72+ footer : {
73+ message : "Released under the Apache-2.0 License." ,
74+ copyright : `Copyright © ${ new Date ( ) . getFullYear ( ) } <a href="https://www.marpplecorp.com/">MARPPLE CORP.</a>` ,
75+ } ,
7676
77- search : {
78- provider : "algolia" ,
79- options : {
80- appId : "0G39LGZ9QE" ,
81- apiKey : "6234b2f489b3f43928034ab6c128f06c" ,
82- indexName : "fxts" ,
83- locales : {
84- root : {
85- placeholder : "Search docs" ,
86- translations : {
87- button : {
88- buttonText : "Search" ,
89- } ,
90- } ,
91- } ,
92- ko : {
93- placeholder : "문서 검색" ,
94- translations : {
95- button : {
96- buttonText : "검색" ,
97- } ,
98- } ,
99- } ,
100- ja : {
101- placeholder : "ドキュメント検索" ,
102- translations : {
103- button : {
104- buttonText : "検索" ,
105- } ,
106- } ,
107- } ,
108- zh : {
109- placeholder : "搜索文档" ,
110- translations : {
111- button : {
112- buttonText : "搜索" ,
113- } ,
114- } ,
115- } ,
116- } ,
117- } ,
118- } ,
119- } ,
77+ search : {
78+ provider : "algolia" ,
79+ options : {
80+ appId : "0G39LGZ9QE" ,
81+ apiKey : "a1f403fee5358950f84bd6ad27867cd6" ,
82+ indexName : "fxts" ,
83+ askAi : "fxts_ai" ,
84+ locales : {
85+ root : {
86+ placeholder : "Search docs" ,
87+ translations : {
88+ button : {
89+ buttonText : "Search" ,
90+ } ,
91+ } ,
92+ } ,
93+ ko : {
94+ placeholder : "문서 검색" ,
95+ translations : {
96+ button : {
97+ buttonText : "검색" ,
98+ } ,
99+ } ,
100+ } ,
101+ ja : {
102+ placeholder : "ドキュメント検索" ,
103+ translations : {
104+ button : {
105+ buttonText : "検索" ,
106+ } ,
107+ } ,
108+ } ,
109+ zh : {
110+ placeholder : "搜索文档" ,
111+ translations : {
112+ button : {
113+ buttonText : "搜索" ,
114+ } ,
115+ } ,
116+ } ,
117+ } ,
118+ } ,
119+ } ,
120+ } ,
120121} ) ;
0 commit comments