1.下载Github Desktop 2.有一个GitHub账号 二、Creating your site 参考教程: 网站制作 - Wcowin的个人网站 与以往教程不同,我首先建议先在Github创建一个名为你的名字+github.io的仓库 img img 然后打开github Desktop 克隆到本地 img
_x_tr_sl=zh-CN&_x_tr_tl=zh-TW&_x_tr_hl=zh-CN&_x_tr_pto=wapplang:zh-TWgenerator:false#删除页脚显示“使用 MkDocs 材料制造”social:-icon:fontawesome/brands/twitterlink:https://twitter.com/wcowin_-icon:fontawesome/brands/githublink:https://github.com/Wcowin-icon:fontawesome/brands/bi...
# 打开Tab时左侧目录全部展开#- navigation.indexes #启用节索引页后,可以将文档直接附加到节-search.share#搜索分享按钮language:zh# 一些提示性的文字会变成中文icon:repo:fontawesome/brands/github#右上角图标edit_uri:edit/main/docs# 编辑按钮跳转的链接repo_url:https://github.com/Wcowin/mymkdocs# 右上角...
Deploy MkDocs to GitHub Pages #1165: Commit 815f8b6 pushed by github-merge-queue bot main May 13, 2025 04:35 7m 51s Create MCP proxy from OpenAPI specifications (#1561) Deploy MkDocs to GitHub Pages #1164: Commit 8dc3b3a pushed by github-merge-queue bot main May 12, 2025 11...
repo_url: https://github.com/Wcowin/mymkdocs # 右上角点击跳转的链接 repo_name: Wcowin.github.io # 右上角的名字 # [Navigtion] nav: - 博客: - 好用/好玩网站分享: blog/Webplay.md - What is Github: blog/Github.md - 解决谷歌翻译用不了的问题: blog/googletranslate.md ...
1.下载Github Desktop 2.有一个GitHub账号 二、Creating your site 参考教程: 网站制作 - Wcowin的个人网站 与以往教程不同,我首先建议先在Github创建一个名为你的名字+github.io的仓库 然后打开github Desktop 克隆到本地 打开Wcowin.github.io目录进入终端运行: mkdocs new mkdocs-si...
In the sample above you need to add the line mkdocs-codeinclude-plugin. Then you need to link the file using the REQUIREMENTS variable. Example usage name: Publish docs via GitHub Pages on: push: branches: - main jobs: build: name: Deploy docs runs-on: ubuntu-latest steps: - name: ...
通过Github Actions 部署到 Github Pages 我们可以用 Github Actions 把上述的构建和发布工作自动化,只需要在代码库上新建.github/workflow/gh-deploy.yml文件,内容如下: 代码语言:javascript 代码运行次数:0 运行 AI代码解释 name:Deploy to Github Pageson:push:branches:-master-mainjobs:deploy:runs-on:ubuntu-la...
首先,在MkDocs项目的根目录中创建一个名为“docs”的分支,并将MkDocs生成的静态网站文件放在该分支中的“site”目录中。然后,将该分支推送到GitHub仓库中。接下来,在GitHub仓库的设置页面中启用GitHub Pages,并将“Source”设置为“docs”分支。这将使GitHub Pages自动构建和托管MkDocs生成的文档网站。现在,可以在...
GitHub Pages 如果您在GitHub上托管项目的源代码,则可以轻松使用GitHub Pages来托管项目的文档。GitHub页面有两种基本类型:Project Pages站点和User and Organization Pages站点。它们几乎完全相同但有一些重要的区别,在部署时需要不同的工作流程。 Project Pages ...