When translating the docs of a repo, it is natural to write codes in different branch. Documenter.jl provides two ways to deploy docs from different sources: Hosting Documentation · Documenter.jl
-
Deploy by version number
-
Deploy from
devbranch
Below is my code for docs of binarybuilder.
# make.jl
deploydocs(
repo = "github.com/RexWzh/BinaryBuilder.jl.git",
devurl = "dev",
devbranch = "zh_CN",
versions = ["dev" => "dev", "stable" => "v^"], # use git tag to track other language(dumb way)
# forcepush = true,
)
My question is
Q: Can I specify more branches?
Then I can
- use
en
to track the original branch - use
zh
to track the translated version - use
mix
to store the mixed-language docs
Also,
Q2: Is there someway to overwrite the
gh-pages
branch rather than merge?
I’ve tried the keyword forcepush
but old folders are not removed.
Thanks for your time!