config.js
2.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
module.exports = {
title: 'Vue Storefront 2 for __replace_me__',
base: '/',
description: 'Documentation for the __replace_me__ connector for Vue Storefront 2',
head: [
['link', { rel: 'icon', href: '/favicon.png' }]
],
configureWebpack: (config) => {
config.module.rules = config.module.rules.map(rule => ({
...rule,
use: rule.use && rule.use.map(useRule => ({
...useRule,
options: useRule.loader === 'url-loader' ?
/**
Hack for loading images properly.
ref: https://github.com/vuejs/vue-loader/issues/1612#issuecomment-559366730
*/
{ ...useRule.options, esModule: false } :
useRule.options
}))
}))
},
plugins: [
'@vuepress/plugin-back-to-top',
[
'@vuepress/plugin-medium-zoom',
{
// This selector excludes images from the "Integrations" page
selector: 'main :not(.tile-image) > img'
}
],
'@vuepress/active-header-links',
'@vuepress/search'
],
themeConfig: {
repo: 'https://github.com/vuestorefront/__replace_me__',
editLinks: true,
docsDir: 'docs',
docsBranch: 'develop',
editLinkText: 'Edit this page',
logo: 'https://user-images.githubusercontent.com/1626923/137092657-fb398d20-b592-4661-a1f9-4135db0b61d5.png',
nav: [
{ text: 'Vue Storefront', link: 'https://vuestorefront.io/' },
{ text: 'Core Documentation', link: 'https://docs.vuestorefront.io/v2/' },
// { text: 'Demo', link: '' },
{ text: 'GitHub', link: 'https://github.com/vuestorefront/__replace_me__'},
{ text: 'Roadmap', link: 'https://github.com/vuestorefront/__replace_me__'}
],
sidebar: [
{
title: 'Essentials',
collapsable: false,
children: [
['/', 'Introduction'],
['/guide/getting-started', 'Getting started'],
['/guide/configuration', 'Configuration'],
['/guide/about', 'About'],
]
},
{
title: 'Composables',
path: '/composables/'
},
{
title: 'API Client',
path: '/api-client/'
},
]
}
}