Merge pull request #1 from LukeHagar/dev

Separating Specs for SDK Generation
This commit is contained in:
Luke Hagar
2023-04-20 10:03:00 -05:00
committed by GitHub
5 changed files with 35 additions and 4175 deletions

2
.gitignore vendored
View File

@@ -21,3 +21,5 @@ yarn-error.log*
docs/plex
docs/plex-media-server
docs/plex-tv

View File

@@ -212,8 +212,20 @@ const config = {
id: "openapi",
docsPluginId: "classic",
config: {
Plex: {
specPath: "static/plex-api-spec-dereferenced.yaml", // Path to designated spec file
PlexTV: {
specPath: "static/plex-tv-spec-dereferenced.yaml", // Path to designated spec file
outputDir: "docs/plex-tv", // Output directory for generated .mdx docs
template: "api.mustache",
downloadUrl:
"https://raw.githubusercontent.com/LukeHagar/plex-api-spec/main/plex-api-spec-dereferenced.yaml",
sidebarOptions: {
groupPathsBy: "tag",
categoryLinkSource: "tag",
sidebarCollapsed: false,
},
},
PMS: {
specPath: "static/plex-media-server-spec-dereferenced.yaml", // Path to designated spec file
outputDir: "docs/plex", // Output directory for generated .mdx docs
template: "api.mustache",
downloadUrl:

View File

@@ -11,8 +11,8 @@
"deploy": "docusaurus deploy",
"clear": "docusaurus clear",
"serve": "docusaurus serve",
"gen-docs": "docusaurus gen-api-docs Plex",
"clean-docs": "docusaurus clean-api-docs Plex",
"gen-docs": "docusaurus gen-api-docs all",
"clean-docs": "docusaurus clean-api-docs all",
"rebuild": "yarn clean-docs && yarn gen-docs"
},
"dependencies": {

View File

@@ -3,18 +3,32 @@ const sidebars = {
plexSidebar: [
{
type: "category",
label: "Plex API",
label: "Plex Media Server API",
collapsible: false,
collapsed: false,
link: {
type: "generated-index",
title: "Plex API",
title: "Plex Media Server API",
description:
"This documentation is generated from an OpenAPI Specificiation File",
slug: "/plex",
},
items: require("./docs/plex/sidebar.js"),
},
{
type: "category",
label: "Plex TV API",
collapsible: false,
collapsed: false,
link: {
type: "generated-index",
title: "Plex TV API",
description:
"This documentation is generated from an OpenAPI Specificiation File",
slug: "/plex-tv",
},
items: require("./docs/plex-tv/sidebar.js"),
},
{
type: "category",
label: "Legacy Markdown",

File diff suppressed because it is too large Load Diff