1 | const { path } = require('@vuepress/shared-utils')
|
2 |
|
3 | /**
|
4 | * @type {import('@vuepress/types').Plugin}
|
5 | */
|
6 | module.exports = options => ({
|
7 | clientRootMixin: path.resolve(__dirname, 'clientRootMixin.js'),
|
8 | define: {
|
9 | AHL_SIDEBAR_LINK_SELECTOR: options.sidebarLinkSelector || '.sidebar-link',
|
10 | AHL_HEADER_ANCHOR_SELECTOR: options.headerAnchorSelector || '.header-anchor'
|
11 | }
|
12 | })
|