Skip to content

Commit

Permalink
Dev/build doc (Tencent#42)
Browse files Browse the repository at this point in the history
* feat: 调整前端文档构建方式

* feat: 删除tca-document
  • Loading branch information
Faberiii committed Aug 24, 2022
1 parent 2feb446 commit 148d895
Show file tree
Hide file tree
Showing 204 changed files with 15 additions and 13,936 deletions.
16 changes: 15 additions & 1 deletion web/build-source.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,20 @@ function default_frontend() {
status "打包完成 $1"
}

# 文档构建资源打包
function document_frontend() {
cd ${ROOT_PATH}
if [ -d "packages/tca-document" ]; then
rm -r packages/tca-document
fi
cp -r ../doc packages/tca-document
rm -r packages/tca-document/old
sed -i 's/CodeAnalysis/document/' packages/tca-document/package.json
default_frontend 'tca-document'
rm -r packages/tca-document
}


# 子微前端的构建资源打包
function sub_microfrontend() {
status "开始构建 $1 ..."
Expand All @@ -48,7 +62,7 @@ function run() {
if [ "$pkg_name" = "framework" ]; then
default_frontend $pkg_name
elif [ "$pkg_name" = "tca-document" ]; then
default_frontend $pkg_name
document_frontend $pkg_name
else
sub_microfrontend $pkg_name
fi
Expand Down
3 changes: 0 additions & 3 deletions web/packages/tca-document/.gitignore

This file was deleted.

132 changes: 0 additions & 132 deletions web/packages/tca-document/.vuepress/config.ts

This file was deleted.

2 changes: 0 additions & 2 deletions web/packages/tca-document/.vuepress/configs/index.ts

This file was deleted.

47 changes: 0 additions & 47 deletions web/packages/tca-document/.vuepress/configs/navbar/en.ts

This file was deleted.

2 changes: 0 additions & 2 deletions web/packages/tca-document/.vuepress/configs/navbar/index.ts

This file was deleted.

46 changes: 0 additions & 46 deletions web/packages/tca-document/.vuepress/configs/navbar/zh.ts

This file was deleted.

0 comments on commit 148d895

Please sign in to comment.