From 760463b81228a64fccdf1d40fa364d3087b6de49 Mon Sep 17 00:00:00 2001 From: Helder Oliveira Date: Wed, 1 Nov 2023 14:32:49 +0000 Subject: [PATCH] =?UTF-8?q?chore:=20=F0=9F=A4=96=20base=20path?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/openrpc-docs.yml | 49 +++++++++++++++++++++++++++++- 1 file changed, 48 insertions(+), 1 deletion(-) diff --git a/.github/workflows/openrpc-docs.yml b/.github/workflows/openrpc-docs.yml index a535558f2..ad7306b99 100644 --- a/.github/workflows/openrpc-docs.yml +++ b/.github/workflows/openrpc-docs.yml @@ -4,7 +4,7 @@ on: push: branches: - main - - fix/docs-rpc-publisher-blank-page + - chore/docs-rpc-publisher paths: - docs/rpc @@ -32,6 +32,53 @@ jobs: - name: Generate OpenRPC Site (Gatsby) run: open-rpc-generator generate -t docs -d openrpc.json -l gatsby + - name: Setup config + working-directory: ./docs/rpc/docs/gatsby + run: | + echo "module.exports = { + pathPrefix: 'lightning', + siteMetadata: { + title: 'Fleek Network JSON-RPC', + description: 'This API enables JSON-RPC interaction with Fleek Network Node', + 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: 'home', + link: '/', + ignoreNextPrev: true + }, + { + name: 'API Documentation', + link: '/api-documentation' + } + ], + footerLinks: [ + { + name: 'OpenRPC', + link: 'https://open-rpc.org' + } + ] + }, + plugins: [ + '@xops.net/gatsby-openrpc-theme', + { + resolve: 'gatsby-plugin-manifest', + options: { + name: 'pristine-site', + short_name: 'pristine-site', + start_url: '/', + 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-config.js + - name: Install dependencies working-directory: ./docs/rpc/docs/gatsby run: |