-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from Xiangao2018/dev-python
Move From blog Source Code
- Loading branch information
Showing
11 changed files
with
1,742 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: Build and Deploy docs | ||
|
||
on: | ||
push: | ||
branches: | ||
- main # 监听 main 分支的提交,或根据需要更改为其他分支 | ||
|
||
jobs: | ||
build-and-deploy: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
# 检出源代码 | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
# 安装 Python 和 MkDocs | ||
- name: Set up Python | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: '3.13.0' # 可以选择其他 Python 版本 | ||
|
||
- name: Install MkDocs and dependencies | ||
run: | | ||
python3 -m pip install --upgrade pip | ||
pip install mkdocs | ||
# 构建静态网站 | ||
- name: Build site with MkDocs | ||
run: mkdocs build --site-dir site | ||
|
||
- name: Deploy | ||
uses: s0/git-publish-subdir-action@develop | ||
env: | ||
REPO: [email protected]:Xiangao2018/xiangao2018.github.io.git | ||
BRANCH: gh-pages | ||
FOLDER: site | ||
SSH_PRIVATE_KEY: ${{ secrets.PAGS_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# About | ||
|
||
Hi, My name is Xiangao2018, Welcome to my webSite |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Home | ||
|
||
For full documentation visit [mkdocs.org](https://www.mkdocs.org). | ||
|
||
## Commands | ||
|
||
* `mkdocs new [dir-name]` - Create a new project. | ||
* `mkdocs serve` - Start the live-reloading docs server. | ||
* `mkdocs build` - Build the documentation site. | ||
* `mkdocs -h` - Print help message and exit. | ||
|
||
## Project layout | ||
|
||
mkdocs.yml # The configuration file. | ||
docs/ | ||
index.md # The documentation homepage. | ||
... # Other markdown pages, images and other files. |
Oops, something went wrong.