Skip to content
This repository was archived by the owner on Jun 17, 2024. It is now read-only.

Commit

Permalink
Add OpenAPI spec for alerts and dashboards (#1470)
Browse files Browse the repository at this point in the history
  • Loading branch information
srikanthccv authored Jan 24, 2024
1 parent 18f8ce3 commit faf4c74
Show file tree
Hide file tree
Showing 4 changed files with 1,618 additions and 17 deletions.
20 changes: 19 additions & 1 deletion docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const config = {
prism: {
// Supported languages are:
// https://prismjs.com/index.html#supported-languages
additionalLanguages: ["ruby", "csharp", "php", "java"],
additionalLanguages: ["ruby", "csharp", "php", "java", "scala", "kotlin"],
},
zoom: {
selector: "figure[data-zoomable] > img",
Expand Down Expand Up @@ -266,6 +266,24 @@ const config = {
},
},
],
// Redocusaurus config
[
'redocusaurus',
{
// Plugin Options for loading OpenAPI files
specs: [
{
spec: 'openapi/alerts.yaml',
route: '/api_reference',
},
],
// Theme Options for modifying how redoc renders them
theme: {
// Change with your site colors
primaryColor: '#1890ff',
},
},
],
],
// plugins: ["posthog-docusaurus"],
plugins: [
Expand Down
Loading

0 comments on commit faf4c74

Please sign in to comment.