1 Star 2 Fork 0

WebCell/core

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
pack-docs.sh 697 Bytes
一键复制 编辑 原始数据 按行查看 历史
TechQuery 提交于 2024-08-15 02:30 +08:00 . [optimize] enable NPM provenance for CI/CD
mkdir -p dist/
cp ReadMe.md dist/
cp guide/*.md dist/
cd dist/
# remove Markdown suffix, because TypeDoc will copy Markdown file to `/media` folder
replace ".md\)" ")" *.md
replace "guide/" "" ReadMe.md
# generate multilingual file
for file in *.md; do
typedoc --readme $file
mv docs/index.html ./${file%.md}.html
done
cd ../
# generate docs
typedoc source/
mv dist/*.html docs/
rm -r dist/docs dist/*.md
cd docs
# default language
mv ReadMe.html index.html
# replace ReadMe-* to *, change URL in *.html
for file in ReadMe-*.html; do
# example: mv ReadMe-zh.html docs/zh.html
mv $file "${file#ReadMe-}"
# example: remove ReadMe-
replace "./ReadMe-" "./" *.html
done
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
TypeScript
1
https://gitee.com/WebCell/core.git
git@gitee.com:WebCell/core.git
WebCell
core
core
main

搜索帮助