- 🔤 文字学证据:𥘵字(示+旦)揭示祖先崇拜=生殖崇拜 - 🌋 地理学证据:大同火山→昊天寺→平城→奈良→富士山崇拜传播链 - 🏛️ 建筑学证据:应县木塔承载寇谦之静轮天宫的生殖象征 - 📜 制度学证据:北魏→日本完整政治文化传播机制 核心发现: ✨ 四重证据相互印证的完整理论体系 ✨ 从一个汉字解开东亚文化千年之谜 ✨ 首次系统解释日本阳具崇拜历史起源 ✨ 为'胡汉三千年'理论提供核心实证支撑 学术价值: - 创新'纯逻辑考古'研究方法论 - 建立跨学科文化传播理论 - 填补东亚文化研究重要空白 - 为中华文明世界影响提供科学证据
63 lines
1.5 KiB
YAML
63 lines
1.5 KiB
YAML
name: 构建和部署文档
|
|
# Build and Deploy Documentation
|
|
|
|
on:
|
|
push:
|
|
branches: [ main, master ]
|
|
pull_request:
|
|
branches: [ main, master ]
|
|
|
|
jobs:
|
|
build-docs:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: 检出代码
|
|
uses: actions/checkout@v4
|
|
|
|
- name: 设置Python环境
|
|
uses: actions/setup-python@v4
|
|
with:
|
|
python-version: '3.11'
|
|
|
|
- name: 安装依赖
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
pip install -r documentation/sphinx-docs/requirements.txt
|
|
|
|
- name: 构建Sphinx文档
|
|
run: |
|
|
cd documentation/sphinx-docs
|
|
make html
|
|
|
|
- name: 部署到GitHub Pages
|
|
if: github.ref == 'refs/heads/main'
|
|
uses: peaceiris/actions-gh-pages@v3
|
|
with:
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
publish_dir: ./documentation/sphinx-docs/_build/html
|
|
|
|
deploy-local:
|
|
runs-on: self-hosted
|
|
if: github.ref == 'refs/heads/main'
|
|
needs: build-docs
|
|
|
|
steps:
|
|
- name: 检出代码
|
|
uses: actions/checkout@v4
|
|
|
|
- name: 构建文档
|
|
run: |
|
|
./build_docs.sh
|
|
|
|
- name: 启动本地服务器
|
|
run: |
|
|
# 停止旧的服务器
|
|
pkill -f "python.*http.server.*8000" || true
|
|
|
|
# 启动新的服务器
|
|
nohup python3 -m http.server 8000 \
|
|
--directory documentation/sphinx-docs/_build/html \
|
|
> server.log 2>&1 &
|
|
|
|
echo "文档服务器已启动: http://localhost:8000" |