File tree Expand file tree Collapse file tree 2 files changed +10
-7
lines changed
Expand file tree Collapse file tree 2 files changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -60,16 +60,19 @@ jobs:
6060 run : |
6161 npm run build
6262 npm run build:docs
63- - name : Create preview build
63+ - name : Update Gatsby config for preview
6464 run : |
65+ cd docs/config
66+ # Update gatsby-config.js to use preview path prefix
67+ sed -i 's|pathPrefix: "/execution-apis"|pathPrefix: "/execution-apis/preview/PR${{ github.event.number }}"|g' gatsby-config.js
68+ sed -i 's|siteUrl: "https://.*"|siteUrl: "https://${{ github.repository_owner }}.github.io"|g' gatsby-config.js
69+
70+ - name : Build preview version
71+ run : |
72+ npm run build:docs
6573 cd build/docs/gatsby
6674 # Copy the built files for preview
6775 cp -r public public-preview
68- # Fix paths in the preview build
69- find public-preview -name "*.html" -exec sed -i 's|href="/execution-apis/|href="/execution-apis/preview/PR${{ github.event.number }}/|g' {} \;
70- find public-preview -name "*.html" -exec sed -i 's|src="/execution-apis/|src="/execution-apis/preview/PR${{ github.event.number }}/|g' {} \;
71- find public-preview -name "*.js" -exec sed -i 's|"/execution-apis/|"/execution-apis/preview/PR${{ github.event.number }}/|g' {} \;
72- find public-preview -name "*.css" -exec sed -i 's|url(/execution-apis/|url(/execution-apis/preview/PR${{ github.event.number }}/|g' {} \;
7376
7477 - name : Upload preview build artifact
7578 uses : actions/upload-artifact@v4
Original file line number Diff line number Diff line change 1- # Contributors Guide with cheese and more cheese and less cheese
1+ # Contributors Guide with cheese and more cheese and more or less cheese
22
33This guide will explain for new and experienced contributors alike how to
44propose changes to Ethereum JSON-RPC API.
You can’t perform that action at this time.
0 commit comments