resolve #5, 使用 hexo 编译网站

This commit is contained in:
Changkun Ou
2018-05-03 11:30:28 +02:00
parent 0247488f7a
commit 497516914d
52 changed files with 16839 additions and 3 deletions

15
website/Makefile Executable file
View File

@@ -0,0 +1,15 @@
all:
rm -rf public db.json
node install.js
rm -rf src/modern-cpp/book
python3 filter.py
rm -rf ./src/modern-cpp/images/cover-2nd.png
cp ../assets/cover-2nd.png ./src/modern-cpp/images/cover-2nd.png
hexo generate
mv public/index.html public/modern-cpp/index.html
s:
node_modules/serve/bin/serve.js ./public
clean:
rm ./src/modern-cpp/images/cover-2nd.png
rm -rf src/modern-cpp/book
rm -rf public db.json