ci: Build Storybook docs in CI
This commit is contained in:
15
.github/workflows/docs.yaml
vendored
15
.github/workflows/docs.yaml
vendored
@@ -35,12 +35,27 @@ jobs:
|
||||
with:
|
||||
mdbook-version: '0.4.25'
|
||||
|
||||
- name: Install Node
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 18
|
||||
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
|
||||
run: cargo doc -Zrustdoc-map --workspace --lib --no-deps
|
||||
|
||||
- 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
|
||||
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
# About this documentation
|
||||
|
||||
This documentation is intended to give an overview of how the `matrix-authentication-service` works, both from a admin perspective as well as from a developper perspective.
|
||||
|
||||
## Links
|
||||
|
||||
- Technical documentation for individual crates: [`rustdoc`](../rustdoc/mas_handlers/index.html)
|
||||
- UI components: [`storybook`](../storybook/index.html)
|
||||
|
||||
Reference in New Issue
Block a user