Skip to content

Commit 1926ff6

Browse files
committed
refactor: Use symlink for API
1 parent 2b5f2a0 commit 1926ff6

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/deploy-vitepress-docs.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,8 @@ jobs:
8686
# Alias route. E.g., next, latest, stable, etc.
8787
# For vitepress must be a copy with different config, not a symlink
8888
cp -R ./packages/documentation/dist-${DOC_ALIAS} ./gh-pages/${DOC_ALIAS}/
89-
cp -R ./site/api ./gh-pages/${DOC_ALIAS}/api
89+
# Symlink the api docs to avoid duplication
90+
ln -s ../${DOC_VERSION}/api ./gh-pages/${DOC_ALIAS}/api
9091
9192
cp ./scripts/resources/custom404.html ./gh-pages/404.html
9293
- name: Publish Docs

0 commit comments

Comments
 (0)