Closed aralovelace closed 2 months ago
Could we call the
DisplayRedoc
componentLoader
, orRender, or event just
Display? Then in
index.tswe can re-export it as
Redoc`so it when we then render it we simply call``?I also don't think we need an environment variable for the spec URL, it can just be provided by the caller. Just thinking ahead if we ever need to render other specs, then naming ENV vars becomes an issue.
What are your thoughts on just moving the spec file into the docs repo, rather than calling out to open specs? @kennethkalmer @aralovelace
What are your thoughts on just moving the spec file into the docs repo, rather than calling out to open specs? @kennethkalmer @aralovelace
I don't have a strong opinion on this @m-hulbert, because I don't have all the insights about these various open repos and their purpose. The "well groomed" spec needs a home somewhere, and as long as it is accessible over HTTPS we can fetch and render it.
If we want it in the repo we can simply drop it into static/open-specs/control-v1.yml
and update the references.
thanks @kennethkalmer I have updated the components and remove the env variable Also as suggested by @m-hulbert the file is now local;
Description
control API
content file as it won't be used anymore in thewebsite
Note for Future: In the Modernise UI (WEB-3426) this task adds the new Control API page needs to be updated and use the new font styling
A PR description indicating the purpose of the PR.
Review
Instructions on how to review the PR.
Preview - https://ably-docs-web-3922-gpfi4yshwf6.herokuapp.com/docs/api/control-api Compare it to the current page - https://ably.com/docs/api/control-api