Skip to content

Commit 38fce2f

Browse files
authored
fix: update workflow not use script (#1972)
fix: update workflow not use script
1 parent d05cf81 commit 38fce2f

File tree

2 files changed

+17
-13
lines changed

2 files changed

+17
-13
lines changed

.github/workflows/publish-docs.yaml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,23 @@ jobs:
3333
curl -sSL "https://github.com/rust-lang/mdBook/releases/download/v$MDBOOK_ENV/mdbook-v$MDBOOK_ENV-x86_64-unknown-linux-gnu.tar.gz" | tar -xz --directory $DEST_DIR
3434
curl -sSL "https://github.com/badboy/mdBook-mermaid/releases/download/v$MERMAID_ENV/mdbook-mermaid-v$MERMAID_ENV-x86_64-unknown-linux-gnu.tar.gz" | tar -xz --directory $DEST_DIR
3535
- name: Build docs
36-
run: cd docs && sh make_book.sh
36+
run: |
37+
cd docs
38+
echo Generating the cargo docs
39+
cargo doc --no-deps
40+
echo Generating mdbook - DEBUG mode for logging
41+
mdbook-mermaid install .
42+
MDBOOK_LOG=debug mdbook build -d output
43+
echo Generate the API docs
44+
mkdir -p output/api
45+
cargo doc --no-deps
46+
cp -r ../target/doc/* output/api
47+
- name: Debug output directory
48+
run: |
49+
echo "Checking docs/output:"
50+
ls -lah output || true
51+
echo "Listing output root files:"
52+
find output -maxdepth 2 -type f -name "index.html" -print || true
3753
- name: Upload artifact
3854
uses: actions/upload-pages-artifact@v3
3955
with:

docs/make_book.sh

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)