Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

Attempting to integrate an OpenRPC spec into our docs site #533

Closed

Conversation

ElliotFriend
Copy link
Contributor

This required a bit of fiddling, configuring, and customizing some packages. Hopefully, it all builds and compiles OK 🤞🏻

Essentially, I've made an openrpc.json spec for the Soroban-RPC specification to live within. This is then used to generate the RPC pages, using the @metamask/docusaurus-openrpc package. I've swizzzled the method page from that package into a theme file for our own customizations. I've also included a patch to the @metamask/open-rpc-docs-react package that will remove any irrelevant stuff about ethereum, and include a better code examples section.

@stellar-jenkins
Copy link

@ElliotFriend
Copy link
Contributor Author

Looks like the patch for @metamask/open-rpc-docs-react didn't apply... 🤔 I'ma have to look into that...

@stellar-jenkins
Copy link

Something went wrong with PR preview build please check

@stellar-jenkins
Copy link

@ElliotFriend
Copy link
Contributor Author

To see what is happening, I set up a new series of pages that can be found here: https://soroban-docs-pr533.previews.kube001.services.stellar-ops.com/rpc. I'm particularly happy with how the "methods" pages have turned out, like this one: https://soroban-docs-pr533.previews.kube001.services.stellar-ops.com/rpc/methods/getEvents

@ElliotFriend ElliotFriend marked this pull request as draft August 7, 2023 20:49
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants