Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions scripts/res/GenApiDocs.res
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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}`)
Expand Down
Loading