File tree 3 files changed +50
-0
lines changed
3 files changed +50
-0
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,14 @@ module.exports = {
6
6
} ] , [ '@vuepress/search' , {
7
7
test : [ "^((?!device-connect\/transactions).)*$" ]
8
8
} ] ] ,
9
+ mounted ( ) {
10
+ const hash = document . location . hash ;
11
+ if ( hash . length > 1 ) {
12
+ const id = hash . substring ( 1 )
13
+ const element = document . getElementById ( id )
14
+ if ( element ) element . scrollIntoView ( )
15
+ }
16
+ } ,
9
17
themeConfig : {
10
18
logo : '/logo.svg' ,
11
19
heroText : ' ' ,
Original file line number Diff line number Diff line change
1
+ module . exports = {
2
+ extend : '@vuepress/theme-default'
3
+ }
Original file line number Diff line number Diff line change
1
+ <template >
2
+ <Layout >
3
+ <div slot =" page-bottom" class =" footer" >
4
+ <p >
5
+ <span class =" item" >Copyright © {{ new Date().getFullYear() }}</span >
6
+ <span class =" item" >Moshpit Technologies Pvt. Ltd.</span >
7
+ </p >
8
+ </div >
9
+ </Layout >
10
+ </template >
11
+
12
+ <script >
13
+ import Layout from ' @vuepress/theme-default/layouts/Layout.vue'
14
+ export default {
15
+ components: {
16
+ Layout
17
+ },
18
+ mounted () {
19
+ // Fix scrolling to the referenced element upon initial page load
20
+ const hash = document .location .hash ;
21
+ if (hash .length > 1 ) {
22
+ const id = hash .substring (1 )
23
+ const element = document .getElementById (id)
24
+ if (element) element .scrollIntoView ()
25
+ }
26
+ }
27
+ }
28
+ </script >
29
+
30
+ <style scoped>
31
+ .footer {
32
+ text-align : center ;
33
+ color : #4e6e8e ;
34
+ padding : 0 2rem ;
35
+ }
36
+ .footer .item {
37
+ white-space : nowrap ;
38
+ }
39
+ </style >
You can’t perform that action at this time.
0 commit comments