Skip to content

Commit

Permalink
Merge pull request #22 from HotSushi/docsite
Browse files Browse the repository at this point in the history
Add Specification for Tables and jobs, and a beautiful new UI
  • Loading branch information
HotSushi authored Feb 24, 2024
2 parents 157458d + db5e78b commit 4f74053
Show file tree
Hide file tree
Showing 10 changed files with 3,730 additions and 24 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,7 @@ Server should be brought up at http://localhost:3000/
### Adding new documentation
Follow user guide in [docusaurus.io/docs](https://docusaurus.io/docs/category/guides) to add new documentation. Particularly [Pages](https://docusaurus.io/docs/creating-pages), [Docs](https://docusaurus.io/docs/docs-introduction), [Blog](https://docusaurus.io/docs/blog).

A special flavor of markdown [MDX](https://docusaurus.io/docs/markdown-features) is used by default for all md files by Docusaurus. It is more powerful with its javascript integration.
A special flavor of markdown [MDX](https://docusaurus.io/docs/markdown-features) is used by default for all md files by Docusaurus. It is more powerful with its javascript integration.

#### Updating OpenAPI Specification
Instructions to update specification can be found at [/specs](specs/README.md).
15 changes: 15 additions & 0 deletions docs/User Guide/Catalog/TableSpec.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
title: Spec
tags:
- Table
- Service
- API
- OpenAPI
- Spec
hide_table_of_contents: true
---
# Table Service OpenAPI Spec

import ApiDocMdx from '@theme/ApiDocMdx';

<ApiDocMdx id="tables-openapi-spec-json" />
15 changes: 15 additions & 0 deletions docs/User Guide/Jobs/JobSpec.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
title: Spec
tags:
- Jobs
- Service
- API
- OpenAPI
- Spec
hide_table_of_contents: true
---
# Jobs Service OpenAPI Spec

import ApiDocMdx from '@theme/ApiDocMdx';

<ApiDocMdx id="jobs-openapi-spec-json" />
2 changes: 1 addition & 1 deletion docs/User Guide/_category_.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
"type": "generated-index",
"description": "Learn more about the APIs OpenHouse provide"
}
}
}

16 changes: 15 additions & 1 deletion docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,21 @@ const config = {
customCss: './src/css/custom.css',
},
}),
],
],[
'redocusaurus',
{
specs: [
{
id: 'tables-openapi-spec-json',
spec: 'specs/tables.json'
},
{
id: 'jobs-openapi-spec-json',
spec: 'specs/jobs.json'
}
],
},
]
],

themeConfig:
Expand Down
Loading

0 comments on commit 4f74053

Please sign in to comment.