Skip to content

Commit

Permalink
Merge pull request hacklcx#207 from heretic-G/master
Browse files Browse the repository at this point in the history
fix:修复细节问题
  • Loading branch information
pickled-pepper authored Feb 7, 2023
2 parents bdcffdf + 17db37d commit 7adb467
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 10 deletions.
2 changes: 1 addition & 1 deletion docs/en/_navbar.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
- [homepage](https://hfish.net/#/en)
- [homepage](https://hfish.net/#/en/)
- [download](https://hfish.net/#/en/down)
- [GitHub](https://github.com/hacklcx/HFish)
- [Gitee](https://gitee.com/lauix/HFish)
Expand Down
59 changes: 50 additions & 9 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,22 @@
height: 100%;
width: 100%;
}

nav {
color: #ffffff;
.homepage_con nav {
color: #fff;
}
nav ul ul {

.homepage_con nav ul ul {
color: #34495e
}


.app-nav li ul a {
width: 86px;
}

nav {
color: #34495e;
}

.sticky nav {
color: #34495e;
}
Expand All @@ -67,6 +75,27 @@

<body>
<div id="app"></div>
<script>
var homePageClass = ' homepage_con'
function homePageHandle () {
var isHomePage = window.location.hash === '#/' || window.location.hash === '#/en/'
var bodyEl = document.body
var className = bodyEl.className
if (isHomePage) {
if ((className.indexOf(homePageClass) === -1)) {
bodyEl.className = '' + (bodyEl.className || '') + homePageClass
}
} else {
if ((className.indexOf(homePageClass) > -1)) {
bodyEl.className = bodyEl.className.replace(homePageClass, '')
}
}
}
window.addEventListener('hashchange', function () {
homePageHandle()
})
homePageHandle()
</script>
<script>
window.$docsify = {
name: 'HFish',
Expand All @@ -79,7 +108,10 @@
mergeNavbar: true,
auto2top: true,
subMaxLevel: 3,
coverpage: true,
coverpage: {
'/en/': '_coverpage.md',
'/': '_coverpage.md',
},
relativePath: true,
themeColor: '#e93636',
sidebarDisplayLevel: 0, // set sidebar display level
Expand Down Expand Up @@ -109,9 +141,18 @@
tabHeadings: true // default
},
copyCode: {
buttonText : '复制',
errorText : '失败',
successText: '成功'
buttonText: {
'/en/': 'Copy',
'/': '复制',
},
errorText: {
'/en/': 'Error',
'/': '失败',
},
successText: {
'/en/': 'Success',
'/': '成功',
}
}
// repo: 'https://github.com/hacklcx/HFish',
}
Expand Down

0 comments on commit 7adb467

Please sign in to comment.