@@ -10,9 +10,7 @@ const VERSION = isVersion > -1 ? process.argv[isVersion + 1].slice(1, -1) : 'Lat
1010const BASE_URL = isVersion > - 1 ? process . argv [ isVersion + 1 ] : '/' ;
1111
1212console . log (
13- isVersion > - 1
14- ? `Building docs for version ${ VERSION } `
15- : 'Building docs for latest version'
13+ isVersion > - 1 ? `Building docs for version ${ VERSION } ` : 'Building docs for latest version'
1614) ;
1715
1816const description =
@@ -44,22 +42,10 @@ export default defineConfig({
4442 head : [
4543 // Attach a custom favicon
4644 [ 'link' , { rel : 'icon' , href : `${ BASE_URL } favicon.ico', type: 'image/x-icon` } ] ,
47- [
48- 'link' ,
49- { rel : 'apple-touch-icon' , sizes : '57x57' , href : `${ BASE_URL } apple-icon-57x57.png` }
50- ] ,
51- [
52- 'link' ,
53- { rel : 'apple-touch-icon' , sizes : '60x60' , href : `${ BASE_URL } apple-icon-60x60.png` }
54- ] ,
55- [
56- 'link' ,
57- { rel : 'apple-touch-icon' , sizes : '72x72' , href : `${ BASE_URL } apple-icon-72x72.png` }
58- ] ,
59- [
60- 'link' ,
61- { rel : 'apple-touch-icon' , sizes : '76x76' , href : `${ BASE_URL } apple-icon-76x76.png` }
62- ] ,
45+ [ 'link' , { rel : 'apple-touch-icon' , sizes : '57x57' , href : `${ BASE_URL } apple-icon-57x57.png` } ] ,
46+ [ 'link' , { rel : 'apple-touch-icon' , sizes : '60x60' , href : `${ BASE_URL } apple-icon-60x60.png` } ] ,
47+ [ 'link' , { rel : 'apple-touch-icon' , sizes : '72x72' , href : `${ BASE_URL } apple-icon-72x72.png` } ] ,
48+ [ 'link' , { rel : 'apple-touch-icon' , sizes : '76x76' , href : `${ BASE_URL } apple-icon-76x76.png` } ] ,
6349 [
6450 'link' ,
6551 {
@@ -139,10 +125,7 @@ export default defineConfig({
139125
140126 [ 'link' , { rel : 'manifest' , href : `${ BASE_URL } manifest.json` } ] ,
141127 [ 'meta' , { name : 'msapplication-TileColor' , content : '#e5972a' } ] ,
142- [
143- 'meta' ,
144- { name : 'msapplication-TileImage' , content : `${ BASE_URL } ms-icon-144x144.png` }
145- ] ,
128+ [ 'meta' , { name : 'msapplication-TileImage' , content : `${ BASE_URL } ms-icon-144x144.png` } ] ,
146129 [ 'meta' , { name : 'theme-color' , content : '#e5972a' } ] ,
147130 [ 'meta' , { name : 'description' , content : description } ] ,
148131
@@ -178,7 +161,7 @@ export default defineConfig({
178161 src : 'https://plausible.io/js/script.js'
179162 }
180163 ] ,
181-
164+
182165 // Ld+Json
183166 [
184167 'script' ,
@@ -234,16 +217,13 @@ export default defineConfig({
234217 items : [
235218 { text : 'Latest' , link : url } ,
236219 { text : 'v0.x' , link : `${ url } /v0/` }
237- ] . filter ( ( i ) =>
238- BASE_URL === '/' ? i . text !== 'Latest' : ! i . link . includes ( BASE_URL )
239- )
220+ ] . filter ( ( i ) => ( BASE_URL === '/' ? i . text !== 'Latest' : ! i . link . includes ( BASE_URL ) ) )
240221 }
241222 ] ,
242223
243224 //! Temp link for testing, will be changed to the real one before merged to production
244225 editLink : {
245- pattern :
246- 'https://github.com/arthurfiorette/axios-cache-interceptor/edit/main/docs/src/:path'
226+ pattern : 'https://github.com/arthurfiorette/axios-cache-interceptor/edit/main/docs/src/:path'
247227 } ,
248228
249229 footer : {
0 commit comments