Skip to content

Commit bb40582

Browse files
author
Christian Wick
committed
.
1 parent 0ff2d49 commit bb40582

5 files changed

Lines changed: 43 additions & 4 deletions

File tree

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,5 @@ dist
1010
.basement
1111
config.local.js
1212
basement_dist
13-
docs/.vuepress/dist
13+
docs/.vuepress/dist
14+
package-lock.json

docs/.vuepress/config.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,23 @@ module.exports = {
126126
indexSuffix: '/',
127127
notFoundPath: '/404.html',
128128
},
129+
[
130+
'vuepress-plugin-right-anchor',
131+
{
132+
showDepth: 1,
133+
ignore: [
134+
'/',
135+
'/api/',
136+
// more...
137+
],
138+
expand: {
139+
default: true,
140+
trigger: 'hover',
141+
},
142+
customClass: 'your-customClass',
143+
disableGlobalUI: false,
144+
},
145+
],
129146
],
130147
],
131148
};

docs/.vuepress/styles/palette.styl

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,13 @@ $accentColor = #FF4731
88
$textColor = #50617C
99
$borderColor = #DDE7E1
1010
$codeBgColor = #282c34
11+
12+
// vuepress-plugin-right-anchor
13+
$rightAnchorBgColor = #fff;
14+
$rightAnchorTextColor = $textColor;
15+
$rightAnchorFontSize = 14px;
16+
// btn
17+
$rightAnchorBtnTextColor = $rightAnchorTextColor;
18+
$rightAnchorBtnBgColor = $rightAnchorBgColor;
19+
// menu
20+
$rightAnchorMenuTextColor = $rightAnchorTextColor;

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"@vuepress/plugin-back-to-top": "^1.8.2",
1717
"@vuepress/plugin-medium-zoom": "^1.8.2",
1818
"vuepress": "^1.8.2",
19-
"vuepress-plugin-clean-urls": "^1.1.2"
19+
"vuepress-plugin-clean-urls": "^1.1.2",
20+
"vuepress-plugin-right-anchor": "^0.4.8"
2021
}
2122
}

yarn.lock

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4795,6 +4795,11 @@ lodash.templatesettings@^4.0.0:
47954795
dependencies:
47964796
lodash._reinterpolate "^3.0.0"
47974797

4798+
lodash.throttle@^4.1.1:
4799+
version "4.1.1"
4800+
resolved "https://registry.yarnpkg.com/lodash.throttle/-/lodash.throttle-4.1.1.tgz#c23e91b710242ac70c37f1e1cda9274cc39bf2f4"
4801+
integrity sha1-wj6RtxAkKscMN/HhzaknTMOb8vQ=
4802+
47984803
lodash.uniq@^4.5.0:
47994804
version "4.5.0"
48004805
resolved "https://registry.yarnpkg.com/lodash.uniq/-/lodash.uniq-4.5.0.tgz#d0225373aeb652adc1bc82e4945339a842754773"
@@ -7671,6 +7676,13 @@ vuepress-plugin-container@^2.0.2:
76717676
"@vuepress/shared-utils" "^1.2.0"
76727677
markdown-it-container "^2.0.0"
76737678

7679+
vuepress-plugin-right-anchor@^0.4.8:
7680+
version "0.4.8"
7681+
resolved "https://registry.yarnpkg.com/vuepress-plugin-right-anchor/-/vuepress-plugin-right-anchor-0.4.8.tgz#dc5e9176a9ce91b688874e92b543e6ed3a78a30f"
7682+
integrity sha512-2aQVL6gRs/MbGZk5o9ppbC929+F8QnToISHyWurZDScQ76m8dkpYheyHmnQiqSiMZMRldIdcSeGpP+5eGRrrnw==
7683+
dependencies:
7684+
lodash.throttle "^4.1.1"
7685+
76747686
vuepress-plugin-smooth-scroll@^0.0.3:
76757687
version "0.0.3"
76767688
resolved "https://registry.yarnpkg.com/vuepress-plugin-smooth-scroll/-/vuepress-plugin-smooth-scroll-0.0.3.tgz#6eff2d4c186cca917cc9f7df2b0af7de7c8c6438"
@@ -7702,10 +7714,8 @@ watchpack@^1.7.4:
77027714
resolved "https://registry.yarnpkg.com/watchpack/-/watchpack-1.7.5.tgz#1267e6c55e0b9b5be44c2023aed5437a2c26c453"
77037715
integrity sha512-9P3MWk6SrKjHsGkLT2KHXdQ/9SNkyoJbabxnKOoJepsvJjJG8uYTR3yTPxPQvNDI3w4Nz1xnE0TLHK4RIVe/MQ==
77047716
dependencies:
7705-
chokidar "^3.4.1"
77067717
graceful-fs "^4.1.2"
77077718
neo-async "^2.5.0"
7708-
watchpack-chokidar2 "^2.0.1"
77097719
optionalDependencies:
77107720
chokidar "^3.4.1"
77117721
watchpack-chokidar2 "^2.0.1"

0 commit comments

Comments
 (0)