Skip to content

Commit

Permalink
Revert "Ensure we load stoplight css first so that base styles get ov…
Browse files Browse the repository at this point in the history
…erridden" (#4351)

Reverts #4348
  • Loading branch information
runleonarun authored Oct 26, 2023
1 parent 8597c72 commit ccffb1f
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 15 deletions.
5 changes: 0 additions & 5 deletions website/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -278,11 +278,6 @@ var siteSettings = {
},
{rel: 'icon', href: '/img/favicon.png', type: 'image/png'},
{rel: 'icon', href: '/img/favicon.svg', type: 'image/svg+xml'},
{
href: "https://unpkg.com/@stoplight/elements/styles.min.css",
type: "text/css",
crossorigin: "anonymous"
},
],
};

Expand Down
27 changes: 17 additions & 10 deletions website/src/components/stoplight/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,22 @@ export default function Stoplight({ version }) {
return null;
}
return (
<API
apiDescriptionUrl={
"https://raw.githubusercontent.com/dbt-labs/dbt-cloud-openapi-spec/master/openapi-" +
version +
".yaml"
}
platformUrl={useBaseUrl("/")}
basePath={useBaseUrl("/dbt-cloud/api-" + version) + "#"}
hideSchemas
/>
<>
<link
href="https://unpkg.com/@stoplight/elements/styles.min.css"
type="text/css"
rel="stylesheet"
/>
<API
apiDescriptionUrl={
"https://raw.githubusercontent.com/dbt-labs/dbt-cloud-openapi-spec/master/openapi-" +
version +
".yaml"
}
platformUrl={useBaseUrl("/")}
basePath={useBaseUrl("/dbt-cloud/api-" + version) + "#"}
hideSchemas
/>
</>
);
}

0 comments on commit ccffb1f

Please sign in to comment.