Godot 自己建置文件 (亂七八糟草稿篇)

Channel:
Subscribers:
64
Published on ● Video Link: https://www.youtube.com/watch?v=wAPU9SNPKTo



Duration: 1:22:30
14 views
0


我的建置環境是 Win10 + Cygwin
1. 參考 繁體中文文件左下角 建置 連結
https://docs.godotengine.org/zh_TW/4.x/
https://readthedocs.org/projects/godot-zh-tw/builds/
2. 可以參考 已通過 版本 4.x (html) 的建置紀錄
3.
git clone --depth 1 https://github.com/godotengine/godot-docs-l10n .
git fetch origin --force --prune --prune-tags --depth 50 refs/heads/4.x:refs/remotes/origin/4.x
git checkout --force origin/4.x
git clean -d -f -f
git submodule sync
git submodule update --init --force --recursive -- docs
cat .readthedocs.yml
vi build_langs.txt 砍到只剩 zh_TW
4. 從 Weblate 下載翻譯後的壓縮檔
https://hosted.weblate.org/projects/godot-engine/-/zh_Hant/
選擇 (檔案) - (下載原始翻譯檔為ZIP檔)
5. 將ZIP 中的 godot-engine\godot-docs\weblate 覆蓋在 weblate 上面
(主要覆蓋 docs.pot 跟 zh_TW.po)
6. 執行 ./update.sh -a 應該就行了
(影片內是按照 godot l10n github 說明 依次執行 ./update.sh -wo
./update.sh -st
./update.sh -wt
./update.sh -wo)
https://github.com/godotengine/godot-docs-l10n
7.cd docs
8.python -m sphinx -T -E -j12 -b html -d _build/doctrees -D language=zh_TW . tout/html

建出來的 index.html 在 docs/tout/html 內

未來我應該會再做一次正式影片,這些先記錄免得我忘光光。