-
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[docs] update GitHub and website multilingual documentation links (#25)
- Loading branch information
1 parent
c295656
commit 9d00830
Showing
5 changed files
with
144 additions
and
14 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
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,18 @@ | ||
# generate multilingual file | ||
for file in ReadMe-*.md; do | ||
typedoc --readme $file | ||
|
||
mv docs/index.html ${file%.md}.html | ||
done | ||
|
||
# generate docs | ||
typedoc source/ | ||
|
||
# copy html file to docs folder, replace link | ||
for file in ReadMe-*.html; do | ||
# example: mv ReadMe-zh.html docs/zh.html | ||
mv $file docs/"${file#ReadMe-}" | ||
|
||
# example: replace ReadMe-zh.md zh.html | ||
replace "./${file%.html}.md" "./${file#ReadMe-}" docs/*.html | ||
done |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.