generated from loonghao/repo-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: Update documentation for multi-language support and language sw…
…itcher Add source repository, branch, and directory configurations. Implement a language switcher on the documentation website. Update the build process to generate POT files and update PO files for each language. Create a language selection page. Update GitHub Actions workflow to use a personal access token for deploying documentation. Signed-off-by: longhao <hal.long@outlook.com>
- Loading branch information
Showing
4 changed files
with
103 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{% if language == 'en_US' %} | ||
<div class="language-switcher"> | ||
<strong>Language:</strong> | ||
<span>English</span> | | ||
<a href="{{ pathto('../zh/' + pagename + '.html', 1) }}">中文</a> | ||
</div> | ||
{% elif language == 'zh_CN' %} | ||
<div class="language-switcher"> | ||
<strong>语言:</strong> | ||
<a href="{{ pathto('../en/' + pagename + '.html', 1) }}">English</a> | | ||
<span>中文</span> | ||
</div> | ||
{% endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters