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
docs/plex-media-server
docs/plex-tv

View File

@@ -212,8 +212,20 @@ const config = {
id: "openapi", id: "openapi",
docsPluginId: "classic", docsPluginId: "classic",
config: { config: {
Plex: { PlexTV: {
specPath: "static/plex-api-spec-dereferenced.yaml", // Path to designated spec file 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 outputDir: "docs/plex", // Output directory for generated .mdx docs
template: "api.mustache", template: "api.mustache",
downloadUrl: downloadUrl:

View File

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

View File

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

File diff suppressed because it is too large Load Diff