Autogenerate rest api docs

Signed-off-by: Joshua Castle <26531652+Kas-tle@users.noreply.github.com>
This commit is contained in:
Joshua Castle committed 2024-03-12 00:35:02 -07:00
1 parent c441639de7
commit ef727cf6db
33 files changed
+8446 -55

No files matched your search

+30 -3
View File
@@ -39,6 +39,7 @@ const config: Config = {
'https://github.com/GeyserMC/Geyser/tree/main/',
routeBasePath: '/', // Serve the docs at the site's root
docItemComponent: "@theme/ApiItem",
},
blog: {},
theme: {
@@ -48,6 +49,27 @@ const config: Config = {
],
],
plugins: [
[
'docusaurus-plugin-openapi-docs',
{
id: "api",
docsPluginId: "classic",
config: {
downloads: {
specPath: "openapi/downloads.yaml",
outputDir: "docs/api/downloads",
},
global: {
specPath: "openapi/global.yaml",
outputDir: "docs/api/global",
}
}
},
]
],
themes: ["docusaurus-theme-openapi-docs"],
themeConfig: {
image: 'img/site/geyser.png',
navbar: {
@@ -74,6 +96,11 @@ const config: Config = {
docId: 'floodgate/setup',
label: 'Floodgate',
},
{
type: 'doc',
docId: 'api/downloads/downloads-api',
label: 'REST APIs',
},
{
type: 'doc',
docId: 'other/geyseroptionalpack',
@@ -82,8 +109,8 @@ const config: Config = {
]
},
{
to: 'blog',
label: 'Blog',
to: 'blog',
label: 'Blog',
position: 'left',
className: 'header-blog-link'
},
@@ -130,7 +157,7 @@ const config: Config = {
},
algolia: {
appId: '0DTHI9QFCH',
apiKey: '3cc0567f76d2ed3ffdb4cc94f0ac9815',
apiKey: '3cc0567f76d2ed3ffdb4cc94f0ac9815',
indexName: 'geysermc',
contextualSearch: true,
searchPagePath: 'search',