@@ -65,34 +65,24 @@ const config = {
6565 plugins : [
6666 [
6767 "docusaurus-plugin-openapi-docs" ,
68- {
69- id : "openapi" ,
70- docsPluginId : "default" , // e.g. "classic" or the plugin-content-docs id
71- config : {
72- opensign : {
73- // Optional: put all versions under a single route
74- routeBasePath : 'api/opensign' ,
75- sidebarOptions : {
76- groupPathsBy : 'tag' ,
77- } ,
78- // Define your versions here
79- versions : {
80- 'v1' : {
81- specPath : 'docs/API-docs/v1/opensign.yaml' ,
82- outputDir : 'docs/API-docs/opensign/v1' ,
83- label : 'v1' ,
84- // isLatest: false, // default
85- } ,
86- 'v1.1' : {
87- specPath : 'docs/API-docs/v1.1/opensign.yaml' ,
88- outputDir : 'docs/API-docs/opensign/v1.1' ,
89- label : 'v1.1' ,
90- isLatest : true , // makes this the default version in the UI
91- } ,
68+ {
69+ id : "openapi" ,
70+ docsPluginId : "default" , // e.g. "classic" or the plugin-content-docs id
71+ config : {
72+ opensign_v1 : {
73+ // OpenAPI v1
74+ specPath : "docs/API-docs/v1/opensign.yaml" , // your v1 spec file
75+ outputDir : "docs/API-docs/v1" , // generated mdx + sidebar.js
76+ sidebarOptions : { groupPathsBy : "tag" } ,
9277 } ,
93- } ,
94- } ,
95- } ,
78+ opensign_v1_1 : {
79+ // OpenAPI v1.1
80+ specPath : "docs/API-docs/v1.1/opensign.yaml" , // your v1.1 spec file
81+ outputDir : "docs/API-docs/v1.1" , // generated mdx + sidebar.js
82+ sidebarOptions : { groupPathsBy : "tag" } ,
83+ }
84+ }
85+ }
9686 ]
9787 ] ,
9888 themes : [ "docusaurus-theme-openapi-docs" ] , // exports ApiItem and ApiDemoPanel
0 commit comments