Update docs and resolve merge conflicts

Resolved merge conflict markers in service_config.json and page-authors.json. Updated a link in docs/link.md and cleaned up outdated workflow instructions and formatting in 利用Mkdocs部署静态网页至GitHubpages.md.
This commit is contained in:
Wcowin 2025-07-15 23:52:09 +08:00
parent d7cd2e9703
commit 85a392130b
4 changed files with 14 additions and 53 deletions

View File

@ -6,5 +6,9 @@
"gemini"
],
"summary_language": "zh",
<<<<<<< Updated upstream
"check_time": "2025-07-15T23:27:54.141436"
=======
"check_time": "2025-07-12T17:33:43.408549"
>>>>>>> Stashed changes
}

View File

@ -1 +1,5 @@
{"cache_date": "2025-07-15", "page_authors": {}}
<<<<<<< Updated upstream
{"cache_date": "2025-07-15", "page_authors": {}}
=======
{"cache_date": "2025-07-12", "page_authors": {}}
>>>>>>> Stashed changes

View File

@ -48,7 +48,7 @@ t.parentNode.insertBefore(e,t)}})();
<img class="ava" src="https://s1.imagehub.cc/images/2025/06/03/526b59b6a2e478f2ffa1629320e3e2ce.png" />
<div class="card-header">
<div>
<a href="https://wcowin.work/Mkdocs-AI-Summary/MkDocs-AI-Summary/">MkDocs AI Summary</a>
<a href="https://wcowin.work/Mkdocs-AI-Summary-Plus/MkDocs-AI-Summary/">MkDocs AI Summary</a>
</div>
<div class="info">
AI驱动的摘要生成

View File

@ -1,16 +1,6 @@
---
title: 利用Mkdocs部署静态网页至GitHubpages
tags:
- Mkdocs
---
!!! info
Material for MkDocs官方网站: [Material for MkDocs](https://www.mkdocs.org/)
MkDocs中文文档: [MkDocs中文文档](https://hellowac.github.io/mkdocs-docs-zh/)
---
推荐看下这个视频:
:fontawesome-brands-bilibili:{ style="color: #EE98A7" }
__[How to set up Material for MkDocs]__ by @Wcowin :octicons-clock-24:
__[How to set up Material for MkDocs]__ by @Wcowin
10m 用MKdocs构建一个博客网站.
[How to set up Material for MkDocs]: https://space.bilibili.com/1407028951/lists/4566631?type=series
@ -61,42 +51,6 @@ mkdocs new mkdocs-site
执行下面的代码添加一个GitHub Workflow
***
???note "过时的PublishMySite.yml"
(执行下面的代码添加一个GitHub Workflow(**已经过时但是仍然能用最新方法见下方ci.yml**)
```
mkdir .github
cd .github
mkdir workflows
cd workflows
vim PublishMySite.yml
```
在PublishMySite.yml里面输入以下内容
```yaml
name: publish site
on: # 在什么时候触发工作流
push: # 在从本地main分支被push到GitHub仓库时
branches:
- main
pull_request: # 在main分支合并别人提的pr时
branches:
- main
jobs: # 工作流的具体内容
deploy:
runs-on: ubuntu-latest # 创建一个新的云端虚拟机 使用最新Ubuntu系统
steps:
- uses: actions/checkout@v2 # 先checkout到main分支
- uses: actions/setup-python@v2 # 再安装Python3和相关环境
with:
python-version: 3.x
- run: pip install mkdocs-material # 使用pip包管理工具安装mkdocs-material
- run: mkdocs gh-deploy --force # 使用mkdocs-material部署gh-pages分支
```
)
***
```
mkdir .github
@ -155,8 +109,7 @@ Wcowin.github.io
└── mkdocs.yml
```
!!!重点来了
**重点来了**
Github仓库setings/Actions/General 勾选这两项
![](https://s1.imagehub.cc/images/2024/02/02/02fd4e77eb52d4ce18c227f0e29b2c6d.png)
@ -177,7 +130,7 @@ theme:
详细mkdocs.yml配置见[Changing the colors - Material for MkDocs](https://squidfunk.github.io/mkdocs-material/setup/changing-the-colors/)
[下次](https://blog.csdn.net/m0_63203517/article/details/127444446?spm=1001.2014.3001.5502)我会具体谈谈这个问题
***
在下方终端运行可以在浏览器看到实时网站
```