-
-
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.
[optimize] separate the script files of 'docs' into a separate file
- Loading branch information
1 parent
eb6e0eb
commit 255f30b
Showing
2 changed files
with
23 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# 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
255f30b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Deploy preview for web-cell ready!
✅ Preview
https://web-cell-cnu1o4b4f-techquery.vercel.app
Built with commit 255f30b.
This pull request is being automatically deployed with vercel-action