Repository navigation
[AP] cleanup specfiles and sidebar - #872
Conversation
|
Something went wrong with PR preview build please check |
|
Something went wrong with PR preview build please check |
|
Something went wrong with PR preview build please check |
|
Something went wrong with PR preview build please check |
|
Something went wrong with PR preview build please check |
ifropc
left a comment
There was a problem hiding this comment.
Do you mind adding a small README in /openrpc folder to maybe add some information on how to add new method? (I think changing existing methods is relatively straight-forward but if you think it should also be documented it'd be a nice addition as well)
| license: | ||
| name: Apache 2.0 | ||
| url: http://www.apache.org/licenses/LICENSE-2.0.html | ||
| tags: |
There was a problem hiding this comment.
Everything below is copy of Platform API + Custody API right?
There was a problem hiding this comment.
Actually, Platform API + Custody API + Callbacks API
There was a problem hiding this comment.
Got it, any reason for merging them back together? I liked the previous one because it's easy to navigate, but don't have any strong preference.
Also cc @philipliu for opinion on merging this yaml files together
There was a problem hiding this comment.
I would prefer if we could keep them separate, although 1 file makes the migration easier, that's fine too.
There was a problem hiding this comment.
The reasoning was that it's a bit of a "pre-emptive" move for the versioning setup. It would be much simpler to coordinate and manage the versions of a single specification file, rather than 3 or 4 different files.
That said, my mind has been moving in the same direction as you both over the last couple days. I think there are a couple options to address it. I'm gonna dig a bit into the versioning capabilities of the openapi plugin we're using, as well as this experimental join command in the Redocly CLI. I think both could provide a reasonable option for what we're after (which is: A useful, maintainable specfile (or set of them) that cleanly and nicely generates the documentation pages for us).
|
LGTM, thanks @ElliotFriend ! We can always get back to splitting API files later on |
|
Something went wrong with PR preview build please check |
|
Something went wrong with PR preview build please check |
|
Something went wrong with PR preview build please check |
|
Updates since last major review:
Here's the PR Preview: Would love another review to see how we think this'll work out. |
* start on consolidated AP specfile * fine-tune some yaml formatting * move and regenerate anchor-platform api docs * re-throw on broken links, comment it instead of removing * make binary file schemas typed as string https://swagger.io/docs/specification/data-models/data-types/#file * remove old hand-written category files * delete old yaml files * rename files yml -> yaml * upgrade sdp specfile to openapi v3.1 * rearrange tags in sdp specfile * reconfig and regenerate sdp spec pages * remove unused sidebar generator and cleanup config file * remove unnecessary README files * fix broken links and anchors * abstract rpc generation so it can be used for anchor platform, too * first step toward a generated rpc specfile * modify rpc method component to take objects instead of strings * embed examples in rpc spec * fix a broken link * remove now unused react component * correct a filepath in rpc spec validation script * check that directories exist while building rpc specfiles * fix some example and schema validation errors * regenerate specfile docs * update redocly cli * improve redocly configs * regenerate api docs * remove unnecessary rpc specfile * modify metamask patch to display relevant server URL for AP * update openrpc README with some better instructions * experiment with things apart again * re-separate anchor platform specfiles into distinct specs * fix broken links and config to throw on them again * better word choice * fix filepath in rpc build script
What's this, then?
To get the site ready for us to add docs versioning to AP (#345), there is some preparation that should be done. First, was upgrading to docusaurus v3, and now it's cleaning up a bit how we have docusaurus handling the AP files. This PR aims to tackle that second part.
We're consolidates the callback, platform, and custody specfiles into a single(Edit: We're not consolidating, but still doing some cleanup) This also upgrades the SDP specfile to openapi v3.1, and fixes some spec errors in the file.main.yamlfile (notwithstanding the external schemas, etc. files).Remains to be done:
TL;DR
There's a lot happening in this PR, so here's a recap of what I've done: