4
创建博客或文档网站
source link: https://maxyoung.fun//blog/%E5%88%9B%E5%BB%BA%E5%8D%9A%E5%AE%A2%E5%92%8C%E6%96%87%E6%A1%A3%E7%BD%91%E7%AB%99.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
github page创建个人博客
-
github创建仓库
参照https://pages.github.com/
-
jekyll
https://jekyllrb.com/docs/
需要注意的是, 在已有仓库里初始化jekyll, cd到仓库路径下, 运行
$ jekyll new . --force
在本地运行
bundle exec jekyll server
在浏览器访问
localhost:4000
就可以看到效果了 -
jekyll theme
上一步看到的是默认模板, 可以采用网上的模板来美化我们的博客
我采用的是https://github.com/willard-yuan/willard-yuan.github.io
按照步骤做就可以了
Docsify部署markdown文档
Docsify部署markdown文档
- C++ code color
在index.html里引用js:<script src="//cdn.jsdelivr.net/npm/prismjs@1/components/prism-c.js"></script> <script src="//cdn.jsdelivr.net/npm/prismjs@1/components/prism-cpp.js"></script>
markdown文件里写C++代码时加上cpp标签
Material for MkDocs部署markdown文档
Material for MkDocs部署markdown文档
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK