diff options
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/build.yml | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5cb794b..719f84b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -401,7 +401,14 @@ jobs: pushd $src rm -f .cargo/config - cargo doc || cargo doc --features timer-queue + # Version 1 and below uses cargo doc directly + if [[ $ver -gt 1 ]] + then + # Version 2 and above + cargo xtask doc + else + cargo doc || cargo doc --features timer-queue + fi mkdir -p $webroot/$ver/book cp -r target/doc $webroot/$ver/api |
