-
-
Notifications
You must be signed in to change notification settings - Fork 957
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1916 from DogeDark/master
Add Prerelease Doc Generation
- Loading branch information
Showing
29 changed files
with
191 additions
and
425 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,49 +1,37 @@ | ||
name: github pages | ||
|
||
name: Deploy Nightly Docs | ||
on: | ||
workflow_dispatch: | ||
# push: | ||
# paths: | ||
# - docs/** | ||
# - .github/workflows/docs.yml | ||
# branches: | ||
# - master | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
cancel-in-progress: true | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
build-deploy: | ||
deploy: | ||
name: Build & Deploy | ||
runs-on: ubuntu-latest | ||
environment: docs | ||
steps: | ||
|
||
# NOTE: Comment out when https://github.com/rust-lang/mdBook/pull/1306 is merged and released | ||
# - name: Setup mdBook | ||
# uses: peaceiris/actions-mdbook@v1 | ||
# with: | ||
# mdbook-version: "0.4.10" | ||
permissions: | ||
contents: write | ||
|
||
# NOTE: Delete when the previous one is enabled | ||
- name: Setup mdBook | ||
run: | | ||
cargo install mdbook --git https://github.com/Demonthos/mdBook.git --branch master | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- run: sudo apt-get update | ||
- run: sudo apt install libwebkit2gtk-4.1-dev libgtk-3-dev libayatana-appindicator3-dev libxdo-dev | ||
- uses: dtolnay/rust-toolchain@nightly | ||
- uses: Swatinem/rust-cache@v2 | ||
with: | ||
cache-all-crates: "true" | ||
save-if: ${{ github.ref == 'refs/heads/master' }} | ||
- uses: ilammy/setup-nasm@v1 | ||
|
||
- name: Build | ||
run: cd docs && | ||
cd guide && mdbook build -d ../nightly/guide && cd .. && | ||
cd router && mdbook build -d ../nightly/router && cd .. | ||
# cd reference && mdbook build -d ../nightly/reference && cd .. && | ||
# cd fermi && mdbook build -d ../nightly/fermi && cd .. | ||
- name: cargo doc | ||
run: cargo doc --no-deps --workspace --all-features | ||
|
||
- name: Deploy 🚀 | ||
- name: Deploy | ||
uses: JamesIves/[email protected] | ||
with: | ||
branch: gh-pages # The branch the action should deploy to. | ||
folder: docs/nightly # The folder the action should deploy. | ||
target-folder: docs/nightly | ||
branch: gh-pages | ||
folder: target/doc | ||
target-folder: api-docs/nightly | ||
repository-name: dioxuslabs/docsite | ||
clean: false | ||
token: ${{ secrets.DEPLOY_KEY }} # let's pretend I don't need it for now | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.