{{/* Apache Polaris custom redoc shortcode that takes just the file of the OpenAPI spec YAML and loads either the in-development version from the `main` branch or a released version from the corresponding Git tag. This is a copy of the original Docsy redoc shortcode, except the part to calculate the URL is adopted for Polaris in-dev/releases docs. Copied from Docsy shortcodes/redoc.html. */}} {{- $spec := .Get 0 -}} {{- $otheroptions := .Get 1 -}} {{- $url := partial "rawGithubPolarisUrl.html" (dict "page" . "path" (printf "spec/%s" $spec)) -}}