Julia 公式ドキュメント日本語翻訳化プロジェクト
English follows Japanese
下記のコマンドを実行するだけです.
git clone https://github.com/AtelierArith/UnofficialJuliaDoc-ja.git
cd UnofficialJuliaDoc-ja
git submodule update --init --recursive
bash run.sh
julia -e 'using LiveServer; serve(dir="julia/doc/_build/html/ja")'
上記のコマンドによって下記が実行されます.
- UnofficialJuliaDoc-ja のクローン
julia
リポジトリ v1.11.5 をクローンassets
以下にあるファイルをjulia/doc
に適用.julia/doc/Project.toml
,julia/doc/Manifest.toml
,julia/doc/make.jl
が更新されます.make -C julia && make -C julia/doc
が実行されます.
上記の手順を踏むことで下記が成果物として得られます:
julia/doc/_build/html/ja
に翻訳された日本語ドキュメントが生成されます.
翻訳結果は使用した OpenAI API の品質に左右されます.翻訳結果に不備・不満がある場合は translation
ディレクトリにある ja.md
を修正してください.original.md
は編集・修正しないでください.
- OpenAI API キーを取得. OpenAI.jl の README.md を参考にすること
- 環境変数
OPENAI_API_KEY=sk-<blah>
を設定 -
にある
:ja
を変更.:ja
は ISO 639 language codes における日本語(Japanese)に対応します. bash run.sh
を実行
Julia Official Documentation Japanese Translation Project
Simply run the following commands:
git clone https://github.com/AtelierArith/UnofficialJuliaDoc-ja.git
cd UnofficialJuliaDoc-ja
git submodule update --init --recursive
bash run.sh
julia -e 'using LiveServer; serve(dir="julia/doc/_build/html/ja")'
The above commands will execute the following:
- Clone UnofficialJuliaDoc-ja
- Clone
julia
repository v1.11.5 - Apply files under
assets
tojulia/doc
. This will updatejulia/doc/Project.toml
,julia/doc/Manifest.toml
, andjulia/doc/make.jl
. - Execute
make -C julia && make -C julia/doc
By following the above steps, you will obtain the following output:
Translated Japanese documentation will be generated in julia/doc/_build/html/ja
.
The translation quality depends on the OpenAI API used. If there are issues or dissatisfaction with the translation results, please modify ja.md
in the translation
directory. Do not edit or modify original.md
.
- Obtain an OpenAI API key. Refer to the OpenAI.jl README.md for guidance
- Set the environment variable
OPENAI_API_KEY=sk-<blah>
- Change
:ja
in .:ja
corresponds to Japanese in ISO 639 language codes. - Run
bash run.sh