redoc_spec | R Documentation |
Produces the content for a index.html
file that will attempt to access a
provided OpenAPI Specification URL.
redoc_spec(spec_url = "https://redocly.github.io/redoc/openapi.yaml", ...)
spec_url |
Url to an OpenAPI specification |
... |
Additional options for Redoc. See https://github.com/Redocly/redoc#redoc-options-object |
large string containing the contents of redoc_index()
with
the appropriate specification path changed to the spec_url
value.
## Not run:
if (interactive()) {
redoc_spec("https://docs.docker.com/engine/api/v1.38.yaml",
scrollYOffset = 250,
disableSearch = TRUE)
}
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.