Skip to content

Commit

Permalink
feat: merge #84
Browse files Browse the repository at this point in the history
  • Loading branch information
purple-force committed Mar 10, 2021
1 parent 74a9677 commit 0009888
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "docsite",
"version": "1.3.10",
"version": "1.3.11",
"description": "A tool for build static doc site(react)",
"bin": {
"docsite": "./bin/docsite.js"
Expand Down
4 changes: 2 additions & 2 deletions website/src/pages/blogDetail/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class BlogDetail extends Language {
duration: 1000,
smooth: 'easeInOutQuint',
});
location.hash = "#" + id;
location.hash = `#${id}`;
}
});
}
Expand All @@ -49,7 +49,7 @@ class BlogDetail extends Language {
this.handleRelativeImg();
const hash = location.hash;
if (hash) {
const id = hash.replace(/^#/g, "");
const id = hash.replace(/^#/g, '');
scroller.scrollTo(id, {
duration: 1000,
smooth: 'easeInOutQuint',
Expand Down
4 changes: 2 additions & 2 deletions website/src/pages/documentation/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class Documentation extends Language {
duration: 1000,
smooth: 'easeInOutQuint',
});
location.hash = "#" + id;
location.hash = `#${id}`;
}
});
}
Expand All @@ -53,7 +53,7 @@ class Documentation extends Language {
this.handleRelativeImg();
const hash = location.hash;
if (hash) {
const id = hash.replace(/^#/g, "");
const id = hash.replace(/^#/g, '');
scroller.scrollTo(id, {
duration: 1000,
smooth: 'easeInOutQuint',
Expand Down

0 comments on commit 0009888

Please sign in to comment.