mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-04-08 10:45:45 -05:00
| .. | ||
| .vscode | ||
| api | ||
| articles | ||
| src/UniVRM | ||
| .gitignore | ||
| docfx.json | ||
| filterConfig.yml | ||
| index.md | ||
| README.md | ||
| tasks.py | ||
| toc.yml | ||
| watch_build.py | ||
UniVRM Programming Document
UniVRM/docfx フォルダから gh-pages ブランチを作成する。
dependencies
- docfx(2系)
- python3
- pip install invoke
- pip install watchdog
記事の更新
- index.md
- articles フォルダを更新して
articles/toc.ymlにそれを反映する
docfx 作業記録
初期化
Project ROOT から
$ docfx init -o docfx -q
csproj をコピー
- Unity の Editor を vscode に設定
Open C# projectによりslnとcsprojが生成される- Unity の csproj(vscode向け) を
docfx/src/UniVRMにコピーする python スクリプト作った
$ pip install invoke
$ cd docfx
docfx$ invoke copy-csproj
コピーする際にパスを調整している。
docfx/src/UniVRM からの相対パスに改変。
Assets => ..\\..\\..\\Assets
csproj から meta情報を生成する
docfx$ docfx metadata
preview
docfx$ docfx --serve
記事更新の反映
docfx$ docfx build
github actions
.github/workflows/docfx.yml
name: DocFX
on:
push:
branches:
- master
jobs:
build:
runs-on: windows-2019
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 1
# build docfx site to docfx/_site
- name: DocFX
shell: cmd
run: |
choco install docfx -y
docfx docfx\docfx.json
# push docfx/_site to gh-pages
- name: Publish Documentation on GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docfx/_site