Skip to content

Commit

Permalink
Use vite-plugin-static-copy to copy files
Browse files Browse the repository at this point in the history
  • Loading branch information
anuraaga committed Feb 20, 2024
1 parent bb7378c commit 08f96d6
Show file tree
Hide file tree
Showing 7 changed files with 192 additions and 1,261 deletions.
12 changes: 0 additions & 12 deletions build-bin/dist_to_gh_pages
Original file line number Diff line number Diff line change
Expand Up @@ -31,18 +31,6 @@ rm -rf *

git checkout $ORIGIN_BRANCH docs

things_to_copy='zipkin-api.yaml zipkin2-api.yaml zipkin.proto'

# Iterate over the list
for item in $things_to_copy
do
git checkout $ORIGIN_BRANCH "$item"
rm -rf ./docs/public/"$item" || true
mv "./$item" ./docs/public/"$item"
git add ./docs/public/"$item"
done


cd docs
pnpm i
pnpm run build
Expand Down
6 changes: 4 additions & 2 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@
"preview": "vite preview"
},
"devDependencies": {
"@types/node": "^20.11.19",
"@types/swagger-ui": "^3.52.4",
"swagger-ui": "^5.11.7",
"typescript": "^5.3.3",
"vite": "^5.1.3",
"swagger-ui": "^5.11.7",
"@types/swagger-ui": "^3.52.4"
"vite-plugin-static-copy": "^1.0.1"
}
}
169 changes: 166 additions & 3 deletions docs/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 08f96d6

Please sign in to comment.