Skip to content

Commit

Permalink
Merge pull request #2 from Xiangao2018/dev-python
Browse files Browse the repository at this point in the history
Move From blog Source Code
  • Loading branch information
Xiangao2018 authored Dec 4, 2024
2 parents 176f60b + 1a2bcf9 commit 9698165
Show file tree
Hide file tree
Showing 11 changed files with 1,742 additions and 0 deletions.
Binary file modified .DS_Store
Binary file not shown.
38 changes: 38 additions & 0 deletions .github/workflows/deploy.yml
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 }}
3 changes: 3 additions & 0 deletions docs/about.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# About

Hi, My name is Xiangao2018, Welcome to my webSite
17 changes: 17 additions & 0 deletions docs/index.md
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.
Loading

0 comments on commit 9698165

Please sign in to comment.