Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

如何同时实现 multi-version 和 multi-language 功能切换? #8

Open
CieloHX opened this issue Feb 8, 2022 · 1 comment
Open

Comments

@CieloHX
Copy link

CieloHX commented Feb 8, 2022

如题

@Neutree
Copy link
Member

Neutree commented Feb 10, 2022

多语言目前支持得比较好,在site_config 中设置翻译文档就好了: https://github.com/teedoc/teedoc.github.io/blob/8ebd1e8f56a14287f97d885deeb79b8c13fb072d/site_config.json#L25-L45

多版本目前还没有特意优化, 用起来比较麻烦, 只能拷贝文档到一份新的目录作为一份新的文档,和新建一份文档一样;然后在header手动添加版本的按钮 https://github.com/teedoc/teedoc.github.io/blob/8ebd1e8f56a14287f97d885deeb79b8c13fb072d/config/config_zh.json#L10-L38

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants