Skip to content

Commit d8424b8

Browse files
committed
修改目录结构
1 parent de54dbb commit d8424b8

2 files changed

Lines changed: 27 additions & 7 deletions

File tree

‎deploy.sh‎

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,29 @@
33
# 确保脚本抛出遇到的错误
44
set -e
55

6+
rm gh-pages -rf; mkdir gh-pages; cp -r notes/* gh-pages/;
7+
cd gh-pages;
8+
9+
rm assets/ -rf
10+
mkdir assets
11+
12+
rm pics/ -rf
13+
mkdir pics
14+
15+
for f in $(find ../notes/ -type f -print | grep assets)
16+
do
17+
cp $f ./assets
18+
done
19+
20+
for f in $(find ../notes/ -type f -print | grep pics)
21+
do
22+
cp $f ./pics
23+
done
24+
625
# 进入生成的文件夹
7-
cd notes
26+
827
#创建.nojekyll 防止Github Pages build错误
28+
touch .nojekyll
929

1030
git init
1131
git add -A

‎notes/docsify/js/main.js‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -146,9 +146,9 @@
146146
isInitialzed = true;
147147
// Restore active stylesheet
148148
document.addEventListener('DOMContentLoaded', function () {
149-
setTimeout(function () {
150-
imgAdd();
151-
}, 300)
149+
// setTimeout(function () {
150+
// imgAdd();
151+
// }, 300)
152152
var activeHref = sessionStorage.getItem(sessionStorageKey);
153153

154154
if (activeHref) {
@@ -174,9 +174,9 @@
174174
handleSwitch(dataHref, dataTitle);
175175
evt.preventDefault();
176176
}
177-
setTimeout(function () {
178-
imgAdd();
179-
}, 300)
177+
// setTimeout(function () {
178+
// imgAdd();
179+
// }, 300)
180180
});
181181
}
182182
}

0 commit comments

Comments
 (0)