Blog
Wiki¶
- Modify $WIKI/mkdocs.yml to modify the directory
- Add markdown file in $WIKI/docs
mkdocs gh-deploy
# Copying 'wiki/site' to 'gh-pages' branch and pushing to GitHub.- Push all files to Github
Blog¶
Install hexo on Mac
npm install hexo-cli -g
hexo init blog
cd blog
npm install
hexo server
Change theme into maupassant refe
git clone https://github.com/tufu9441/maupassant-hexo.git themes/maupassant
npm install hexo-renderer-pug --save
npm install hexo-renderer-sass --save
change theme to maupassant in _config.yml
Deploy
npm install hexo-deployer-git --save
# Add follows in _config.yml
deploy:
type: git
repo: https://github.com/dpatrickx/dpatrickx.github.io.git
branch: master
message: blog update
hexo deploy
Add Mathjax
Add Mathjax Support like a_b
Post article
- Add markdown file into $BLOG/source/_posts
- hexo s/g/d -> server/generate/deploy
- Push all files to Github