diff --git a/docs/.vitepress/config.mts b/docs/.vitepress/config.mts index b3e870e..0e0dbaf 100644 --- a/docs/.vitepress/config.mts +++ b/docs/.vitepress/config.mts @@ -11,9 +11,7 @@ const VERSION = isVersion > -1 ? process.argv[isVersion + 1].slice(1, -1) : 'Lat const BASE_URL = isVersion > -1 ? process.argv[isVersion + 1] : '/'; console.log( - isVersion > -1 - ? `Building docs for version ${VERSION}` - : 'Building docs for latest version' + isVersion > -1 ? `Building docs for version ${VERSION}` : 'Building docs for latest version' ); const description = @@ -56,22 +54,10 @@ export default defineConfig({ head: [ // Attach a custom favicon ['link', { rel: 'icon', href: `${BASE_URL}favicon.ico', type: 'image/x-icon` }], - [ - 'link', - { rel: 'apple-touch-icon', sizes: '57x57', href: `${BASE_URL}apple-icon-57x57.png` } - ], - [ - 'link', - { rel: 'apple-touch-icon', sizes: '60x60', href: `${BASE_URL}apple-icon-60x60.png` } - ], - [ - 'link', - { rel: 'apple-touch-icon', sizes: '72x72', href: `${BASE_URL}apple-icon-72x72.png` } - ], - [ - 'link', - { rel: 'apple-touch-icon', sizes: '76x76', href: `${BASE_URL}apple-icon-76x76.png` } - ], + ['link', { rel: 'apple-touch-icon', sizes: '57x57', href: `${BASE_URL}apple-icon-57x57.png` }], + ['link', { rel: 'apple-touch-icon', sizes: '60x60', href: `${BASE_URL}apple-icon-60x60.png` }], + ['link', { rel: 'apple-touch-icon', sizes: '72x72', href: `${BASE_URL}apple-icon-72x72.png` }], + ['link', { rel: 'apple-touch-icon', sizes: '76x76', href: `${BASE_URL}apple-icon-76x76.png` }], [ 'link', { @@ -151,10 +137,7 @@ export default defineConfig({ ['link', { rel: 'manifest', href: `${BASE_URL}manifest.json` }], ['meta', { name: 'msapplication-TileColor', content: '#e5972a' }], - [ - 'meta', - { name: 'msapplication-TileImage', content: `${BASE_URL}ms-icon-144x144.png` } - ], + ['meta', { name: 'msapplication-TileImage', content: `${BASE_URL}ms-icon-144x144.png` }], ['meta', { name: 'theme-color', content: '#e5972a' }], ['meta', { name: 'description', content: description }], @@ -251,16 +234,13 @@ export default defineConfig({ items: [ { text: 'Latest', link: url }, { text: 'v0.x', link: `${url}/v0/` } - ].filter((i) => - BASE_URL === '/' ? i.text !== 'Latest' : !i.link.includes(BASE_URL) - ) + ].filter((i) => (BASE_URL === '/' ? i.text !== 'Latest' : !i.link.includes(BASE_URL))) } ], //! Temp link for testing, will be changed to the real one before merged to production editLink: { - pattern: - 'https://github.com/arthurfiorette/axios-cache-interceptor/edit/main/docs/src/:path' + pattern: 'https://github.com/arthurfiorette/axios-cache-interceptor/edit/main/docs/src/:path' }, footer: { @@ -318,6 +298,6 @@ export default defineConfig({ light: 'kanagawa-lotus' }, - typographer: true, + typographer: true } }); diff --git a/docs/.vitepress/theme/homepage.css b/docs/.vitepress/theme/homepage.css index 29e6226..a0961f9 100644 --- a/docs/.vitepress/theme/homepage.css +++ b/docs/.vitepress/theme/homepage.css @@ -71,4 +71,4 @@ .VPTeamMembers.medium.count-1 { display: flex; justify-content: center; -} \ No newline at end of file +} diff --git a/docs/.vitepress/theme/index.ts b/docs/.vitepress/theme/index.ts index 171e102..9876939 100644 --- a/docs/.vitepress/theme/index.ts +++ b/docs/.vitepress/theme/index.ts @@ -1,5 +1,5 @@ import Theme from 'vitepress/theme'; import './style.css'; -import './homepage.css' +import './homepage.css'; export default Theme; diff --git a/docs/.vitepress/theme/style.css b/docs/.vitepress/theme/style.css index a3c8d79..aa61e66 100644 --- a/docs/.vitepress/theme/style.css +++ b/docs/.vitepress/theme/style.css @@ -134,4 +134,4 @@ .DocSearch { --docsearch-primary-color: var(--vp-c-brand-1) !important; -} \ No newline at end of file +} diff --git a/package.json b/package.json index 3fe3c86..8e31ab6 100644 --- a/package.json +++ b/package.json @@ -2,15 +2,7 @@ "name": "axios-cache-interceptor", "version": "1.8.0", "description": "Cache interceptor for axios", - "keywords": [ - "axios", - "cache", - "interceptor", - "adapter", - "http", - "plugin", - "wrapper" - ], + "keywords": ["axios", "cache", "interceptor", "adapter", "http", "plugin", "wrapper"], "homepage": "https://axios-cache-interceptor.js.org", "bugs": "https://github.com/arthurfiorette/axios-cache-interceptor/issues", "repository": {