Skip to content

Commit c95d608

Browse files
committed
make repo name dynamic
1 parent 035eb3d commit c95d608

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.github/workflows/deploy.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ on:
66
- main
77
workflow_dispatch:
88

9+
env:
10+
NODE_OPTIONS: --max_old_space_size=20480
11+
GITHUB_REPOSITORY: ${{ github.repository }}
12+
913
jobs:
1014
deploy-gh-pages:
1115
permissions:

docs/config/gatsby-config.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ module.exports = {
33
siteMetadata: {
44
title: 'Ethereum JSON-RPC Specification',
55
description: 'A specification of the standard interface for Ethereum clients.',
6-
siteUrl: 'https://acolytec3.github.io/execution-apis',
6+
siteUrl: process.env.GITHUB_REPOSITORY
7+
? `https://${process.env.GITHUB_REPOSITORY.split('/')[0]}.github.io/execution-apis`
8+
: 'https://ethereum.github.io/execution-apis', // fallback for local development
79
logoUrl: 'https://raw.githubusercontent.com/open-rpc/design/master/icons/open-rpc-logo-noText/open-rpc-logo-noText%20(PNG)/256x256.png',
810
primaryColor: '#3f51b5', //material-ui primary color
911
secondaryColor: '#f50057', //material-ui secondary color

0 commit comments

Comments
 (0)