From c939fc298d01097d87ec17fb5d773c6a47ce5a86 Mon Sep 17 00:00:00 2001 From: sqrtthree Date: Sun, 16 Feb 2020 00:26:42 +0800 Subject: [PATCH] feat: Enable active-header-links plugin --- index.js | 9 +++------ package-lock.json | 13 +++++++++++++ package.json | 1 + 3 files changed, 17 insertions(+), 6 deletions(-) diff --git a/index.js b/index.js index f7e43c5..613dcb3 100644 --- a/index.js +++ b/index.js @@ -1,6 +1,3 @@ -// Noop. - -// This file is required due to publish the theme as an npm package. -// More details are https://v1.vuepress.vuejs.org/theme/writing-a-theme.html#directory-structure - -module.exports = {} +module.exports = { + plugins: ['@vuepress/active-header-links'], +} diff --git a/package-lock.json b/package-lock.json index 4c6cb9e..5d8dd0a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -4,6 +4,14 @@ "lockfileVersion": 1, "requires": true, "dependencies": { + "@vuepress/plugin-active-header-links": { + "version": "1.3.0", + "resolved": "https://registry.npm.taobao.org/@vuepress/plugin-active-header-links/download/@vuepress/plugin-active-header-links-1.3.0.tgz", + "integrity": "sha1-i0GE58hKXudU5rTzSZfDvXrge3I=", + "requires": { + "lodash.debounce": "^4.0.8" + } + }, "array-union": { "version": "1.0.2", "resolved": "http://registry.npm.taobao.org/array-union/download/array-union-1.0.2.tgz", @@ -238,6 +246,11 @@ "integrity": "sha1-tEf2ZwoEVbv+7dETku/zMOoJdUg=", "dev": true }, + "lodash.debounce": { + "version": "4.0.8", + "resolved": "https://registry.npm.taobao.org/lodash.debounce/download/lodash.debounce-4.0.8.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Flodash.debounce%2Fdownload%2Flodash.debounce-4.0.8.tgz", + "integrity": "sha1-gteb/zCmfEAF/9XiUVMArZyk168=" + }, "minimatch": { "version": "3.0.4", "resolved": "http://registry.npm.taobao.org/minimatch/download/minimatch-3.0.4.tgz", diff --git a/package.json b/package.json index d4ef56a..1ac5187 100644 --- a/package.json +++ b/package.json @@ -34,6 +34,7 @@ }, "license": "MIT", "dependencies": { + "@vuepress/plugin-active-header-links": "^1.3.0", "axios": "^0.19.0" }, "devDependencies": {