mirror of
https://github.com/element-hq/matrix-authentication-service.git
synced 2026-04-26 13:07:56 +00:00
ci: use script to build the docs
This commit is contained in:
22
.github/workflows/docs.yaml
vendored
22
.github/workflows/docs.yaml
vendored
@@ -42,28 +42,8 @@ jobs:
|
||||
cache: 'npm'
|
||||
cache-dependency-path: frontend/package-lock.json
|
||||
|
||||
- name: Install Node dependencies
|
||||
working-directory: ./frontend
|
||||
run: npm ci
|
||||
|
||||
- name: Build the documentation
|
||||
run: mdbook build
|
||||
|
||||
- name: Build rustdoc
|
||||
env:
|
||||
# This is required to be able to use the unstable `-Zrustdoc-map` flag
|
||||
RUSTC_BOOTSTRAP: "1"
|
||||
run: cargo doc -Zrustdoc-map --workspace --lib --no-deps
|
||||
|
||||
- name: Remove the rustdoc lock file
|
||||
run: rm -f target/doc/.lock
|
||||
|
||||
- name: Build storybook
|
||||
working-directory: ./frontend
|
||||
run: npx storybook build -o ../target/book/storybook
|
||||
|
||||
- name: Move the Rust documentation within the mdBook
|
||||
run: mv target/doc target/book/rustdoc
|
||||
run: sh misc/build-docs.sh
|
||||
|
||||
- name: Fix permissions
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user