@@ -11,9 +11,7 @@ const VERSION = isVersion > -1 ? process.argv[isVersion + 1].slice(1, -1) : 'Lat
1111const BASE_URL = isVersion > - 1 ? process . argv [ isVersion + 1 ] : '/' ;
1212
1313console . log (
14- isVersion > - 1
15- ? `Building docs for version ${ VERSION } `
16- : 'Building docs for latest version'
14+ isVersion > - 1 ? `Building docs for version ${ VERSION } ` : 'Building docs for latest version'
1715) ;
1816
1917const description =
@@ -56,22 +54,10 @@ export default defineConfig({
5654 head : [
5755 // Attach a custom favicon
5856 [ 'link' , { rel : 'icon' , href : `${ BASE_URL } favicon.ico', type: 'image/x-icon` } ] ,
59- [
60- 'link' ,
61- { rel : 'apple-touch-icon' , sizes : '57x57' , href : `${ BASE_URL } apple-icon-57x57.png` }
62- ] ,
63- [
64- 'link' ,
65- { rel : 'apple-touch-icon' , sizes : '60x60' , href : `${ BASE_URL } apple-icon-60x60.png` }
66- ] ,
67- [
68- 'link' ,
69- { rel : 'apple-touch-icon' , sizes : '72x72' , href : `${ BASE_URL } apple-icon-72x72.png` }
70- ] ,
71- [
72- 'link' ,
73- { rel : 'apple-touch-icon' , sizes : '76x76' , href : `${ BASE_URL } apple-icon-76x76.png` }
74- ] ,
57+ [ 'link' , { rel : 'apple-touch-icon' , sizes : '57x57' , href : `${ BASE_URL } apple-icon-57x57.png` } ] ,
58+ [ 'link' , { rel : 'apple-touch-icon' , sizes : '60x60' , href : `${ BASE_URL } apple-icon-60x60.png` } ] ,
59+ [ 'link' , { rel : 'apple-touch-icon' , sizes : '72x72' , href : `${ BASE_URL } apple-icon-72x72.png` } ] ,
60+ [ 'link' , { rel : 'apple-touch-icon' , sizes : '76x76' , href : `${ BASE_URL } apple-icon-76x76.png` } ] ,
7561 [
7662 'link' ,
7763 {
@@ -151,10 +137,7 @@ export default defineConfig({
151137
152138 [ 'link' , { rel : 'manifest' , href : `${ BASE_URL } manifest.json` } ] ,
153139 [ 'meta' , { name : 'msapplication-TileColor' , content : '#e5972a' } ] ,
154- [
155- 'meta' ,
156- { name : 'msapplication-TileImage' , content : `${ BASE_URL } ms-icon-144x144.png` }
157- ] ,
140+ [ 'meta' , { name : 'msapplication-TileImage' , content : `${ BASE_URL } ms-icon-144x144.png` } ] ,
158141 [ 'meta' , { name : 'theme-color' , content : '#e5972a' } ] ,
159142 [ 'meta' , { name : 'description' , content : description } ] ,
160143
@@ -251,16 +234,13 @@ export default defineConfig({
251234 items : [
252235 { text : 'Latest' , link : url } ,
253236 { text : 'v0.x' , link : `${ url } /v0/` }
254- ] . filter ( ( i ) =>
255- BASE_URL === '/' ? i . text !== 'Latest' : ! i . link . includes ( BASE_URL )
256- )
237+ ] . filter ( ( i ) => ( BASE_URL === '/' ? i . text !== 'Latest' : ! i . link . includes ( BASE_URL ) ) )
257238 }
258239 ] ,
259240
260241 //! Temp link for testing, will be changed to the real one before merged to production
261242 editLink : {
262- pattern :
263- 'https://github.com/arthurfiorette/axios-cache-interceptor/edit/main/docs/src/:path'
243+ pattern : 'https://github.com/arthurfiorette/axios-cache-interceptor/edit/main/docs/src/:path'
264244 } ,
265245
266246 footer : {
@@ -318,6 +298,6 @@ export default defineConfig({
318298 light : 'kanagawa-lotus'
319299 } ,
320300
321- typographer : true ,
301+ typographer : true
322302 }
323303} ) ;
0 commit comments