mirror of
https://github.com/changkun/modern-cpp-tutorial.git
synced 2025-12-17 12:44:40 +03:00
resolve #5, 使用 hexo 编译网站
This commit is contained in:
15
website/Makefile
Executable file
15
website/Makefile
Executable 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
|
||||
Reference in New Issue
Block a user