Skip to content

github

github 操作

github docs

  • vitepress中github配置
    • .github/workflows 目录中创建一个名为 deploy.yml 的文件
    • 项目vite base 选项配置正确
    • github 库设置中的“Pages”菜单项下,需要选择“Build and deployment > Source > GitHub Actions”
      • 一开始设置了 Build and deployment > Source > deploy from 分支,导致更新失败,页面一直404,可能因为 docs/ 目录是空的
      • 之前vitepress 项目分支选择的是 Build and deployment > Source > deploy from 分支,却可以每次更新成功,可能因为 docs/ 目录不是空的
    • GitHub Actionsdeploy from 分支 区别
      • GitHub Actions 走 workflows中的deploy.yml部署脚本 -> 打包、发布
      • deploy from 分支,其实就是走 代码中,比如mian分支 下 docs/ 目录
  • 参考

github 个人主页

获取数据

fetch 请求获取github公开markdown数据

github gists

GitHub双重验证(2FA)

开源