Move docs to other repos

This commit is contained in:
Ottatop 2024-02-19 18:57:41 -06:00
parent e52af7a841
commit 3103269085
2 changed files with 7 additions and 6 deletions

View file

@ -45,7 +45,7 @@ jobs:
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
deploy_key: ${{ secrets.DOCS_DEPLOY_KEY_LUA }}
external_repository: pinnacle-comp/lua-reference
publish_dir: ../ldoc_gen/.ldoc_gen/doc
destination_dir: ${{ env.BRANCH_NAME }}/lua
# force_orphan: true
force_orphan: true

View file

@ -25,12 +25,13 @@ jobs:
- name: Get protoc
run: sudo apt install protobuf-compiler
- name: Build docs
run: cd ./api/rust && cargo doc
run: cd ./api/rust && cargo doc --no-deps -p pinnacle-api -p tokio -p xkbcommon
- name: Create index.html
run: echo "<meta http-equiv=\"refresh\" content=\"0; url=pinnacle_api\">" > ./target/doc/index.html
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
deploy_key: ${{ secrets.DOCS_DEPLOY_KEY_RUST }}
external_repository: pinnacle-comp/rust-reference
publish_dir: ./target/doc
destination_dir: ${{ env.BRANCH_NAME }}/rust
force-orphan: true