Skip to content

Commit 989bb02

Browse files
committed
update support for latest generator
This change allows for documentation assets to be copied by the generator into the proper build locations, eliminating the need for manual copy.
1 parent 6f17bb6 commit 989bb02

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
lines changed

open-rpc-generator-config.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@
55
{
66
"type": "docs",
77
"name": "execution-apis",
8-
"language": "gatsby"
8+
"language": "gatsby",
9+
"extraConfig": {
10+
"gatsbyConfigPath": "./docs/config",
11+
"docsPath": "./docs/reference"
12+
}
913
}
1014
]
11-
}
15+
}

package-lock.json

Lines changed: 4 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"build": "npm run build:spec",
88
"build:spec": "node scripts/build.js",
99
"build:docs": "npm run generate-clients && npm run build:docs:gatsby",
10-
"build:docs:gatsby": "cp docs/config/gatsby-config.js build/docs/gatsby && cd build/docs/gatsby && npm install && gatsby build --prefix-paths",
10+
"build:docs:gatsby": "cd build/docs/gatsby && npm install && gatsby build --prefix-paths",
1111
"lint": "node scripts/build.js && node scripts/validate.js && node scripts/graphql-validate.js",
1212
"clean": "rm -rf build && mkdir -p build",
1313
"generate-clients": "mkdir -p build && open-rpc-generator generate -c open-rpc-generator-config.json",
@@ -28,7 +28,7 @@
2828
"homepage": "https://github.com/ethereum/execution-apis#readme",
2929
"devDependencies": {
3030
"@graphql-inspector/core": "~3.3.0",
31-
"@open-rpc/generator": "^2.0.1",
31+
"@open-rpc/generator": "^2.1.0",
3232
"@open-rpc/schema-utils-js": "^2.1.2",
3333
"gatsby": "^5.14.3",
3434
"gh-pages": "~4.0.0",

0 commit comments

Comments
 (0)