Autogenerate rest api docs
Signed-off-by: Joshua Castle <26531652+Kas-tle@users.noreply.github.com>
This commit is contained in:
33 files changed
+8446
-55
No files matched your search
+30
-3
@@ -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',
|
||||
|
||||
Reference in new issue
Block a user