Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
59 commits
Select commit Hold shift + click to select a range
909208b
add docusaurus
acolytec3 May 14, 2025
19ac475
update deploy scripts
acolytec3 May 14, 2025
5b0c81b
clean up stuff
acolytec3 May 14, 2025
6e0dc69
update action
acolytec3 May 14, 2025
f272141
workflow dispatch trigger
acolytec3 May 14, 2025
406f4eb
build against main
acolytec3 May 14, 2025
9eef24a
Merge remote-tracking branch 'upstream/main' into docusaurus
acolytec3 May 14, 2025
54c3163
Merge pull request #1 from acolytec3/docusaurus
acolytec3 May 14, 2025
6bb9628
push build to correct place
acolytec3 May 14, 2025
b3a20fc
use correct working directory
acolytec3 May 14, 2025
1612d44
fix references
acolytec3 May 14, 2025
e15e33e
update build artifact path in deploy workflow
acolytec3 May 14, 2025
4557be6
consolidate in base dir
acolytec3 May 14, 2025
caf5990
more cleanup
acolytec3 May 14, 2025
8b0a015
add test deploy ci
acolytec3 May 14, 2025
1d5d76a
add workflow_dispatch
acolytec3 May 14, 2025
0f036d9
fix deploy script
acolytec3 May 14, 2025
55d1bda
build specs and website
acolytec3 May 14, 2025
fb9286f
don't throw on broken links
acolytec3 May 14, 2025
e4a3ddd
update baseUrl
acolytec3 May 14, 2025
929cd81
make ESM/CJS stuff play nice
acolytec3 May 15, 2025
4719822
clean up links and docusaurus references
acolytec3 May 15, 2025
0608537
more link cleanup
acolytec3 May 15, 2025
87e206e
update links to point to ethereum
acolytec3 May 15, 2025
b63f4c4
remove docu boilerplate
acolytec3 May 15, 2025
13b1f6e
build docs too
acolytec3 May 15, 2025
5e218ea
Update docs/reference/intro.md
acolytec3 May 15, 2025
b5fff3b
Update docusaurus.config.ts
acolytec3 May 15, 2025
4331158
remove old deployment job
acolytec3 May 15, 2025
2325067
remove gatsby
lightclient May 16, 2025
c98edde
update generator to v2
acolytec3 May 22, 2025
4e5e35b
Update openrpc version
acolytec3 Jun 8, 2025
bcaaffe
Update prepare script
acolytec3 Jun 8, 2025
d84a43f
move build script to correct place
acolytec3 Jun 8, 2025
d299793
Add config to prep step
acolytec3 Jun 11, 2025
3746c0f
update ci
acolytec3 Jun 12, 2025
2d73118
use correct trigger
acolytec3 Jun 12, 2025
63e7647
remove config
acolytec3 Jun 12, 2025
c002ffa
add write permission
acolytec3 Jun 12, 2025
994c9da
push to master
acolytec3 Jun 12, 2025
f3c8c52
remove docusaurus nonsense
acolytec3 Jun 12, 2025
0244712
update node evn
acolytec3 Jun 12, 2025
7bae577
commit package-lock only
acolytec3 Jun 13, 2025
335846c
Merge remote-tracking branch 'origin/main' into openrpc-v2
acolytec3 Jun 13, 2025
b0ef8a4
Merge pull request #2 from acolytec3/openrpc-v2
acolytec3 Jun 13, 2025
7b920a7
switch to module
acolytec3 Jun 13, 2025
8820122
put prefix back to empty string
acolytec3 Jun 14, 2025
c5f4697
specify prefix
acolytec3 Jun 14, 2025
31e8683
use crazy-max
acolytec3 Jun 17, 2025
453178b
Merge remote-tracking branch 'upstream/main'
acolytec3 Jun 17, 2025
035eb3d
update spellcheck
acolytec3 Jun 17, 2025
c95d608
make repo name dynamic
acolytec3 Jun 17, 2025
0788d9f
dynamically add all md to menu
acolytec3 Jun 18, 2025
af344fd
add deploy preview
acolytec3 Jun 18, 2025
17064fd
add deploy preview step to test-deploy
acolytec3 Jun 18, 2025
06e37a0
add correct permissions
acolytec3 Jun 18, 2025
7361589
fix yaml
acolytec3 Jun 18, 2025
36cc17d
try different preview
acolytec3 Jun 18, 2025
b7bd523
use peaceiris instead
acolytec3 Jun 18, 2025
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
60 changes: 21 additions & 39 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,48 +6,30 @@ on:
- main
workflow_dispatch:

jobs:
build:
name: Build Docusaurus
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
env:
NODE_OPTIONS: --max_old_space_size=20480
GITHUB_REPOSITORY: ${{ github.repository }}

- name: Install dependencies
run: npm install --frozen-lockfile

- name: Build specs and website
run: |
npm run build
npm run build:docs

- name: Upload Build Artifact
uses: actions/upload-pages-artifact@v3
with:
path: build

deploy:
name: Deploy to GitHub Pages
needs: build

# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
jobs:
deploy-gh-pages:
permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source

# Deploy to the github-pages environment
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
pages: write
id-token: write
contents: write

runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js 22
uses: actions/setup-node@v4
with:
node-version: '22'
- run: npm ci
- run: npm run build
- run: npm run build:docs
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: build/docs/gatsby/public
commit_message: "Deploy to GitHub Pages"
21 changes: 15 additions & 6 deletions .github/workflows/test-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,16 @@ name: Test deployment

on:
pull_request:
branches:
- main
# Review gh actions docs if you want to further define triggers, paths, etc
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#on
workflow_dispatch:

jobs:
test-deploy:
test-deploy:
permissions:
pages: write
id-token: write
contents: write
pull-requests: write

name: Test deployment
runs-on: ubuntu-latest
steps:
Expand All @@ -26,4 +28,11 @@ jobs:
- name: Test build website
run: |
npm run build
npm run build:docs
npm run build:docs
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: build/docs/gatsby/public
destination_dir: preview/pr-${{ github.event.number }}
force_orphan: true
8 changes: 4 additions & 4 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ jobs:
lint-and-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js 15.x
uses: actions/setup-node@v1
- uses: actions/checkout@v4
- name: Use Node.js 22
uses: actions/setup-node@v4
with:
node-version: ^15.x
node-version: 22
- run: npm ci
- run: npm run build
- run: npm run lint
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,3 @@ data.json
schema.json
*.dic
.idea/
.docusaurus
30 changes: 0 additions & 30 deletions css/custom.css

This file was deleted.

100 changes: 100 additions & 0 deletions docs/config/gatsby-config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
const fs = require('fs');
const path = require('path');

// Function to get markdown files and create menu links
function getMenuLinksFromDocs() {
const docsPath = path.join(__dirname, 'src/docs');
const menuLinks = [];

try {
const files = fs.readdirSync(docsPath);
files.forEach(file => {
if (file.endsWith('.md') || file.endsWith('.mdx')) {
const name = file.replace(/\.(md|mdx)$/, '').replace(/-/g, ' ');
const link = `/${file.replace(/\.(md|mdx)$/, '')}`;
menuLinks.push({
name: name.charAt(0).toUpperCase() + name.slice(1),
link: link
});
}
});
} catch (error) {
console.warn('Could not read docs directory:', error.message);
}

return menuLinks;
}

module.exports = {
pathPrefix: "/execution-apis",
siteMetadata: {
title: 'Ethereum JSON-RPC Specification',
description: 'A specification of the standard interface for Ethereum clients.',
siteUrl: process.env.GITHUB_REPOSITORY
? `https://${process.env.GITHUB_REPOSITORY.split('/')[0]}.github.io/execution-apis`
: 'https://ethereum.github.io/execution-apis', // fallback for local development
logoUrl: 'https://raw.githubusercontent.com/open-rpc/design/master/icons/open-rpc-logo-noText/open-rpc-logo-noText%20(PNG)/256x256.png',
primaryColor: '#3f51b5', //material-ui primary color
secondaryColor: '#f50057', //material-ui secondary color
author: '',
menuLinks: [
{
name: 'API Documentation',
link: '/api-documentation'
},
...getMenuLinksFromDocs() // This will add all markdown files
],
footerLinks: [
{
name: 'OpenRPC',
link: 'https://open-rpc.org'
}
]
},
plugins: [
{
resolve: 'gatsby-plugin-mdx',
options: {
extensions: ['.mdx', '.md'],
gatsbyRemarkPlugins: [
{
resolve: 'gatsby-remark-autolink-headers',
options: {
icon: false,
},
},
],
},
},
"gatsby-openrpc-theme",
{
resolve: 'gatsby-plugin-manifest',
options: {
name: 'pristine-site',
short_name: 'pristine-site',
start_url: '/execution-apis/',
background_color: 'transparent',
theme_color: '#3f51b5',
display: 'minimal-ui',
icon: 'src/images/gatsby-icon.png', // This path is relative to the root of the site.
},
},
"gatsby-plugin-image",
"gatsby-plugin-sharp",
"gatsby-transformer-sharp",
{
resolve: "gatsby-source-filesystem",
options: {
name: "images",
path: __dirname + '/src/images',
},
},
{
resolve: "gatsby-source-filesystem",
options: {
name: "docs",
path: __dirname + '/src/docs',
},
},
],
}
File renamed without changes.
2 changes: 1 addition & 1 deletion docs/reference/making-changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,4 +115,4 @@ others don't.

[exec-apis]: https://github.com/ethereum/execution-apis
[pm]: https://github.com/ethereum/pm
[test-gen]: https://github.com/ethereum/execution-apis/blob/main/tests/README.md
[test-gen]: https://github.com/ethereum/execution-apis/blob/main/tests/README.md
103 changes: 0 additions & 103 deletions docusaurus.config.ts

This file was deleted.

Loading
Loading