这里是哈哈就看见的个人网站Git仓库
- 编写-markdown格式个人笔记
- 生成-mkdocs
- 主题-Material
- 发布-Github Pages
- 自动化-Github Actions
-
Q
Github Actions 生成html文件并发布到Github Pages后,访问hahajiukanjian.githun.io没有出现以Material为主题的笔记文档,而是出现了README.md中的内容 -
A
在仓库的settings
中的pages
里,将分支从main
改为gh-pages
,并将根目录从root
改为/docs
-
Q
将目录从/改为/docs后,GitHub Actions出错Error: No such file or directory @ dir_chdir - /github/workspace/docs
-
A
阅读GitHub Pages文档后,需要将目录改回为根目录/