diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d96af7ef3f..faf06d2241 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -515,7 +515,7 @@ jobs: uses: actions/download-artifact@v6 with: artifact-ids: ${{ needs.build-compiler.outputs.api-docs-artifact-id }} - path: data + path: data/api - name: Check if repo is clean id: diffcheck diff --git a/scripts/res/GenApiDocs.res b/scripts/res/GenApiDocs.res index ded9637745..f47f12723c 100644 --- a/scripts/res/GenApiDocs.res +++ b/scripts/res/GenApiDocs.res @@ -15,7 +15,7 @@ let version = switch Fs.readFileSync(packagePath, ~encoding="utf8")->JSON.parseO | Object(dict{"version": JSON.String(version)}) => version | _ => JsError.panic("Invalid package.json format") } -let version = Semver.parse(version)->Option.getExn +let version = Semver.parse(version)->Option.getOrThrow let version = Semver.toString({...version, preRelease: None}) // Remove pre-release identifiers for API docs let dirVersion = Path.join([Node.dirname, "apiDocs", version]) if !Fs.existsSync(dirVersion) { @@ -257,7 +257,7 @@ let () = { tocTree ->Dict.fromArray ->JSON.stringifyAny - ->Option.getExn, + ->Option.getOrThrow, ) Console.log("Generated toc_tree.json") Console.log(`API docs generated successfully in ${dirVersion}`)