@@ -37,6 +37,15 @@ module.exports = {
3737 content :
3838 'document,documents,kamontat,chantrachirathumrong,website,vuepress,ssr,portfolio'
3939 }
40+ ] ,
41+ [ 'link' , { rel : 'icon' , href : 'https://apis.kcnt.info/logo' } ] ,
42+ [
43+ 'link' ,
44+ {
45+ rel : 'shortcut icon' ,
46+ type : 'image/x-icon' ,
47+ href : 'https://apis.kcnt.info/logo'
48+ }
4049 ]
4150 ] ,
4251 locales : {
@@ -65,16 +74,17 @@ module.exports = {
6574 displayAllHeaders : true ,
6675 nav : [
6776 {
68- text : 'Home' ,
69- link : '/'
70- } ,
71- {
72- text : 'Development' ,
73- link : '/development/'
74- } ,
75- {
76- text : 'Design' ,
77- link : '/design-principle/'
77+ text : 'Information' ,
78+ items : [
79+ {
80+ text : 'Development' ,
81+ link : '/development/'
82+ } ,
83+ {
84+ text : 'Design' ,
85+ link : '/design-principle/'
86+ }
87+ ]
7888 } ,
7989 {
8090 text : 'Changelog' ,
@@ -92,8 +102,36 @@ module.exports = {
92102 link : '/changelog-api/'
93103 }
94104 ]
105+ } ,
106+ {
107+ text : 'Github' ,
108+ items : [
109+ {
110+ text : 'Organization' ,
111+ link : 'https://github.com/kcnt-info'
112+ } ,
113+ {
114+ text : 'Website' ,
115+ link : 'https://github.com/kcnt-info/website'
116+ } ,
117+ {
118+ text : 'Document' ,
119+ link : 'https://github.com/kcnt-info/documents'
120+ } ,
121+ {
122+ text : 'API' ,
123+ link : 'https://github.com/kcnt-info/apis'
124+ }
125+ ]
95126 }
96127 ] ,
128+ searchMaxSuggestions : 3 ,
129+ algolia : {
130+ apiKey : 'cfad96bc0e76cc9b25c8e7f58ac3eb9a' ,
131+ indexName : 'kcnt' ,
132+ debug : false
133+ } ,
134+ lastUpdated : 'Last updated' ,
97135 // text for the edit-on-github link
98136 editLinkText : 'Edit this page on GitHub' ,
99137 // config for Service Worker
@@ -114,35 +152,64 @@ module.exports = {
114152 displayAllHeaders : true ,
115153 nav : [
116154 {
117- text : 'หน้าแรก' ,
118- link : '/th/'
119- } ,
120- {
121- text : 'การพัฒนา' ,
122- link : '/th/development/'
123- } ,
124- {
125- text : 'การออกแบบ' ,
126- link : '/th/design-principle/'
155+ text : 'ข้อมูลของเว็บ' ,
156+ items : [
157+ {
158+ text : 'การพัฒนา' ,
159+ link : '/th/development/'
160+ } ,
161+ {
162+ text : 'การออกแบบ' ,
163+ link : '/th/design-principle/'
164+ }
165+ ]
127166 } ,
128167 {
129168 text : 'Changelog (Eng)' ,
130169 items : [
131170 {
132171 text : 'Website' ,
133- link : '/changelog/'
172+ link : '/th/ changelog/'
134173 } ,
135174 {
136175 text : 'Document' ,
137- link : '/changelog-doc/'
176+ link : '/th/ changelog-doc/'
138177 } ,
139178 {
140179 text : 'APIs' ,
141- link : '/changelog-api/'
180+ link : '/th/changelog-api/'
181+ }
182+ ]
183+ } ,
184+ {
185+ text : 'กิตฮับ' ,
186+ items : [
187+ {
188+ text : 'องค์กร' ,
189+ link : 'https://github.com/kcnt-info'
190+ } ,
191+ {
192+ text : 'เว็บไซด์' ,
193+ link : 'https://github.com/kcnt-info/website'
194+ } ,
195+ {
196+ text : 'เอกสาร' ,
197+ link : 'https://github.com/kcnt-info/documents'
198+ } ,
199+ {
200+ text : 'API' ,
201+ link : 'https://github.com/kcnt-info/apis'
142202 }
143203 ]
144204 }
145205 ] ,
206+ searchMaxSuggestions : 3 ,
207+ algolia : {
208+ apiKey : 'cfad96bc0e76cc9b25c8e7f58ac3eb9a' ,
209+ indexName : 'kcnt' ,
210+ debug : false
211+ } ,
212+ lastUpdated : 'อัพเดตล่าสุด' ,
146213 // text for the edit-on-github link
147214 editLinkText : 'ต้องการ แก้ไขหน้านี้ใน Github' ,
148215 // config for Service Worker
@@ -154,17 +221,13 @@ module.exports = {
154221 }
155222 }
156223 } ,
157- searchMaxSuggestions : 3 ,
158- algolia : {
159- apiKey : 'cfad96bc0e76cc9b25c8e7f58ac3eb9a' ,
160- indexName : 'kcnt' ,
161- debug : false
162- } ,
163224 // Assumes GitHub. Can also be a full GitLab url.
164- repo : 'kcnt-info/Documents' ,
225+ // repo: 'kcnt-info/Documents',
226+ // repoLabel: undefined,
165227 // if your docs are in a different repo from your main project:
166228 docsRepo : 'kcnt-info/Documents' ,
167229 // if your docs are not at the root of the repo:
230+ docsDir : 'src' ,
168231 // if your docs are in a specific branch (defaults to 'master'):
169232 docsBranch : 'master' ,
170233 // defaults to false, set to true to enable
@@ -214,12 +277,6 @@ module.exports = {
214277 serviceWorker : true ,
215278 updatePopup : true
216279 } ,
217- '@vuepress/last-updated' : {
218- transformer : ( timestamp , lang ) => {
219- const time = new Date ( timestamp )
220- return time . toLocaleTimeString ( lang )
221- }
222- } ,
223280 '@vuepress/google-analytics' : {
224281 ga : 'UA-124896160-2'
225282 } ,
0 commit comments