Skip to content

Commit 21d07a4

Browse files
committed
Fix generation of NodeJS API documentation
NodeJS API docs are out of sync with NodeJS C++ wrapper documentation due to the doc build breaking back in #4043. The commit fixes the Node dev dependencies such that `npm run docs` works again and re-enables the check in CI.
1 parent 8e100ea commit 21d07a4

File tree

7 files changed

+8370
-6648
lines changed

7 files changed

+8370
-6648
lines changed

.babelrc

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
{
22
"plugins": ["transform-class-properties"],
33
"presets": [
4-
"stage-0",
5-
"es2015",
6-
"react"
4+
"@babel/preset-env",
5+
"@babel/preset-react"
76
]
87
}

.github/workflows/osrm-backend.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,7 @@ jobs:
4646
./scripts/check_taginfo.py taginfo.json profiles/car.lua
4747
./scripts/format.sh && ./scripts/error_on_dirty.sh
4848
node ./scripts/validate_changelog.js
49-
# See issue 4043
50-
#- npm run docs && ./scripts/error_on_dirty.sh
49+
npm run docs && ./scripts/error_on_dirty.sh
5150
5251
build-test-publish:
5352
needs: format-taginfo-docs

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
- Build:
77
- CHANGED: Replace Travis with Github Actions for CI builds [#6071](https://github.com/Project-OSRM/osrm-backend/pull/6071)
88
- FIXED: Fixed Boost link flags in pkg-config file. [#6083](https://github.com/Project-OSRM/osrm-backend/pull/6083)
9+
- FIXED: Fixed Node docs generation check in CI. [#6058](https://github.com/Project-OSRM/osrm-backend/pull/6058)
910
- Routing:
1011
- FIXED: Fix generation of inefficient MLD partitions [#6084](https://github.com/Project-OSRM/osrm-backend/pull/6084)
1112

docs/nodejs/api.md

Lines changed: 122 additions & 116 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)