mirror of
https://github.com/LukeHagar/plex-docs.git
synced 2025-12-06 12:37:45 +00:00
Merge pull request #1 from LukeHagar/dev
Separating Specs for SDK Generation
This commit is contained in:
4
.gitignore
vendored
4
.gitignore
vendored
@@ -20,4 +20,6 @@ yarn-debug.log*
|
||||
yarn-error.log*
|
||||
|
||||
|
||||
docs/plex
|
||||
docs/plex
|
||||
docs/plex-media-server
|
||||
docs/plex-tv
|
||||
@@ -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:
|
||||
|
||||
@@ -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": {
|
||||
|
||||
18
sidebars.js
18
sidebars.js
@@ -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
Reference in New Issue
Block a user