We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5213c74 commit 7de9b7eCopy full SHA for 7de9b7e
.nojekyll
index.html
@@ -38,15 +38,17 @@
38
<body>
39
<div id="app"></div>
40
<script>
41
+ // 动态设置basePath,适配本地开发和GitHub Pages部署
42
+ const isGitHubPages = window.location.hostname.endsWith('github.io');
43
window.$docsify = {
44
name: 'JavaWeb项目源码库',
45
repo: 'coderzcr/JavaWeb-Project-Source-Share',
46
loadSidebar: true,
47
subMaxLevel: 0,
48
auto2top: true,
49
coverpage: true,
- basePath: './',
- relativePath: true,
50
+ basePath: isGitHubPages ? '/JavaWeb-Project-Source-Share/' : './',
51
+ homepage: isGitHubPages ? 'README.md' : undefined,
52
search: {
53
maxAge: 86400000,
54
paths: 'auto',
0 commit comments