docusaurus-theme-openapi-docs 1.6.1 → 1.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -98,6 +98,15 @@ const languageSet = [{
98
98
  trimRequestBody: true
99
99
  },
100
100
  variant: "OkHttp"
101
+ }, {
102
+ highlight: "powershell",
103
+ language: "powershell",
104
+ logoClass: "powershell",
105
+ options: {
106
+ followRedirect: true,
107
+ trimRequestBody: true
108
+ },
109
+ variant: "RestMethod"
101
110
  }];
102
111
  exports.languageSet = languageSet;
103
112
  function CodeTab({
@@ -219,7 +228,7 @@ function Curl({
219
228
  return <CodeTab value={lang.language} label={""} key={lang.variant ? `${lang.language}-${lang.variant}` : lang.language} attributes={{
220
229
  className: `code__tab--${lang.logoClass}`
221
230
  }}>
222
- <_CodeBlock.default language={lang.highlight} className={_stylesModule.default.codeBlock}>
231
+ <_CodeBlock.default language={lang.highlight} className={_stylesModule.default.codeBlock} title={`${lang.language} / ${lang.variant}`}>
223
232
  {codeText}
224
233
  </_CodeBlock.default>
225
234
  </CodeTab>;
@@ -82,8 +82,3 @@
82
82
  background: var(--ifm-menu-color-background-active);
83
83
  color: var(--ifm-menu-color-active);
84
84
  }
85
-
86
- .codeBlock code {
87
- max-width: revert;
88
- max-height: revert;
89
- }
@@ -57,7 +57,7 @@ function Response() {
57
57
  </button>
58
58
  </div>
59
59
  </summary>
60
- <_CodeBlock.default language={response.startsWith("<") ? `xml` : `json`}>
60
+ <_CodeBlock.default language={response.startsWith("<") ? `xml` : `json`} className="openapi-demo__code-block">
61
61
  {prettyResponse || "No Response"}
62
62
  </_CodeBlock.default>
63
63
  </details>;
@@ -17,10 +17,16 @@
17
17
  --openapi-card-border-radius: var(--ifm-pre-border-radius);
18
18
  --openapi-input-border: var(--ifm-color-primary);
19
19
  --openapi-input-background: var(--openapi-card-background-color);
20
+ --bash-background-color: transparent;
21
+ --bash-border-radius: none;
22
+ --code-tab-logo-width: 26px;
23
+ --code-tab-logo-height: 26px;
20
24
  }
21
25
 
22
26
  [data-theme="dark"] {
23
27
  --openapi-card-background-color: var(--ifm-color-gray-900) !important;
28
+ --bash-background-color: lightgrey;
29
+ --bash-border-radius: 20px;
24
30
  }
25
31
 
26
32
  .docs-wrapper {
@@ -155,14 +161,6 @@
155
161
  margin-right: 1rem;
156
162
  }
157
163
 
158
- /* Code block */
159
-
160
- .theme-api-markdown code {
161
- max-width: 600px;
162
- max-height: 500px;
163
- overflow: auto;
164
- }
165
-
166
164
  /* Version button */
167
165
 
168
166
  .version-button div {
@@ -239,8 +237,8 @@
239
237
 
240
238
  .code__tab--python::after {
241
239
  content: "";
242
- width: 28px;
243
- height: 28px;
240
+ width: var(--code-tab-logo-width);
241
+ height: var(--code-tab-logo-height);
244
242
  background: url("https://raw.githubusercontent.com/devicons/devicon/master/icons/python/python-original.svg");
245
243
  margin-block: auto;
246
244
  }
@@ -265,8 +263,8 @@
265
263
 
266
264
  .code__tab--go::after {
267
265
  content: "";
268
- width: 28px;
269
- height: 28px;
266
+ width: var(--code-tab-logo-width);
267
+ height: var(--code-tab-logo-height);
270
268
  background: url("https://raw.githubusercontent.com/devicons/devicon/master/icons/go/go-original-wordmark.svg");
271
269
  margin-block: auto;
272
270
  }
@@ -291,8 +289,8 @@
291
289
 
292
290
  .code__tab--javascript::after {
293
291
  content: "";
294
- width: 28px;
295
- height: 28px;
292
+ width: var(--code-tab-logo-width);
293
+ height: var(--code-tab-logo-height);
296
294
  background: url("https://raw.githubusercontent.com/devicons/devicon/master/icons/javascript/javascript-original.svg");
297
295
  margin-block: auto;
298
296
  }
@@ -317,9 +315,11 @@
317
315
 
318
316
  .code__tab--bash::after {
319
317
  content: "";
320
- width: 28px;
321
- height: 28px;
322
- background: url("https://raw.githubusercontent.com/devicons/devicon/master/icons/linux/linux-original.svg");
318
+ width: var(--code-tab-logo-width);
319
+ height: var(--code-tab-logo-height);
320
+ background: url("https://raw.githubusercontent.com/devicons/devicon/master/icons/bash/bash-plain.svg");
321
+ background-color: var(--bash-background-color);
322
+ border-radius: var(--bash-border-radius);
323
323
  margin-block: auto;
324
324
  }
325
325
 
@@ -343,8 +343,8 @@
343
343
 
344
344
  .code__tab--ruby::after {
345
345
  content: "";
346
- width: 28px;
347
- height: 28px;
346
+ width: var(--code-tab-logo-width);
347
+ height: var(--code-tab-logo-height);
348
348
  background: url("https://raw.githubusercontent.com/devicons/devicon/master/icons/ruby/ruby-plain.svg");
349
349
  margin-block: auto;
350
350
  }
@@ -369,8 +369,8 @@
369
369
 
370
370
  .code__tab--csharp::after {
371
371
  content: "";
372
- width: 28px;
373
- height: 28px;
372
+ width: var(--code-tab-logo-width);
373
+ height: var(--code-tab-logo-height);
374
374
  background: url("https://raw.githubusercontent.com/devicons/devicon/master/icons/csharp/csharp-original.svg");
375
375
  margin-block: auto;
376
376
  }
@@ -395,8 +395,8 @@
395
395
 
396
396
  .code__tab--nodejs::after {
397
397
  content: "";
398
- width: 28px;
399
- height: 28px;
398
+ width: var(--code-tab-logo-width);
399
+ height: var(--code-tab-logo-height);
400
400
  background: url("https://raw.githubusercontent.com/devicons/devicon/master/icons/nodejs/nodejs-original.svg");
401
401
  margin-block: auto;
402
402
  }
@@ -421,8 +421,8 @@
421
421
 
422
422
  .code__tab--php::after {
423
423
  content: "";
424
- width: 28px;
425
- height: 28px;
424
+ width: var(--code-tab-logo-width);
425
+ height: var(--code-tab-logo-height);
426
426
  background: url("https://raw.githubusercontent.com/devicons/devicon/master/icons/php/php-original.svg");
427
427
  margin-block: auto;
428
428
  }
@@ -447,8 +447,8 @@
447
447
 
448
448
  .code__tab--java::after {
449
449
  content: "";
450
- width: 28px;
451
- height: 28px;
450
+ width: var(--code-tab-logo-width);
451
+ height: var(--code-tab-logo-height);
452
452
  background: url("https://raw.githubusercontent.com/devicons/devicon/master/icons/java/java-original.svg");
453
453
  margin-block: auto;
454
454
  }
@@ -471,6 +471,32 @@
471
471
  overflow: auto;
472
472
  }
473
473
 
474
+ .code__tab--powershell::after {
475
+ content: "";
476
+ width: var(--code-tab-logo-width);
477
+ height: var(--code-tab-logo-height);
478
+ background: url("https://raw.githubusercontent.com/devicons/devicon/master/icons/windows8/windows8-original.svg");
479
+ margin-block: auto;
480
+ }
481
+
482
+ .code__tab--powershell {
483
+ color: var(--ifm-color-info);
484
+ padding-left: 1.4rem;
485
+ padding-right: 1.4rem;
486
+ padding-top: 1rem !important;
487
+ padding-bottom: 1rem !important;
488
+ }
489
+
490
+ .code__tab--powershell.tabs__item--active {
491
+ border-bottom-color: var(--ifm-color-info);
492
+ background-color: var(--ifm-color-emphasis-100);
493
+ }
494
+
495
+ .language-powershell {
496
+ max-height: 500px;
497
+ overflow: auto;
498
+ }
499
+
474
500
  /* Prism code styles */
475
501
  .prism-code.language-java {
476
502
  white-space: pre !important;
@@ -483,3 +509,8 @@
483
509
  div:has(> ul.openapi-tabs__security-schemes) {
484
510
  max-width: 100%;
485
511
  }
512
+
513
+ .openapi-demo__code-block code {
514
+ max-height: 500px;
515
+ overflow: auto;
516
+ }
@@ -98,6 +98,16 @@ export const languageSet = [
98
98
  },
99
99
  variant: "OkHttp",
100
100
  },
101
+ {
102
+ highlight: "powershell",
103
+ language: "powershell",
104
+ logoClass: "powershell",
105
+ options: {
106
+ followRedirect: true,
107
+ trimRequestBody: true,
108
+ },
109
+ variant: "RestMethod",
110
+ },
101
111
  ];
102
112
  function CodeTab({ children, hidden, className, onClick }) {
103
113
  return (
@@ -256,7 +266,11 @@ function Curl({ postman, codeSamples }) {
256
266
  className: `code__tab--${lang.logoClass}`,
257
267
  }}
258
268
  >
259
- <CodeBlock language={lang.highlight} className={styles.codeBlock}>
269
+ <CodeBlock
270
+ language={lang.highlight}
271
+ className={styles.codeBlock}
272
+ title={`${lang.language} / ${lang.variant}`}
273
+ >
260
274
  {codeText}
261
275
  </CodeBlock>
262
276
  </CodeTab>
@@ -82,8 +82,3 @@
82
82
  background: var(--ifm-menu-color-background-active);
83
83
  color: var(--ifm-menu-color-active);
84
84
  }
85
-
86
- .codeBlock code {
87
- max-width: revert;
88
- max-height: revert;
89
- }
@@ -55,7 +55,10 @@ function Response() {
55
55
  </button>
56
56
  </div>
57
57
  </summary>
58
- <CodeBlock language={response.startsWith("<") ? `xml` : `json`}>
58
+ <CodeBlock
59
+ language={response.startsWith("<") ? `xml` : `json`}
60
+ className="openapi-demo__code-block"
61
+ >
59
62
  {prettyResponse || "No Response"}
60
63
  </CodeBlock>
61
64
  </details>
@@ -17,10 +17,16 @@
17
17
  --openapi-card-border-radius: var(--ifm-pre-border-radius);
18
18
  --openapi-input-border: var(--ifm-color-primary);
19
19
  --openapi-input-background: var(--openapi-card-background-color);
20
+ --bash-background-color: transparent;
21
+ --bash-border-radius: none;
22
+ --code-tab-logo-width: 26px;
23
+ --code-tab-logo-height: 26px;
20
24
  }
21
25
 
22
26
  [data-theme="dark"] {
23
27
  --openapi-card-background-color: var(--ifm-color-gray-900) !important;
28
+ --bash-background-color: lightgrey;
29
+ --bash-border-radius: 20px;
24
30
  }
25
31
 
26
32
  .docs-wrapper {
@@ -155,14 +161,6 @@
155
161
  margin-right: 1rem;
156
162
  }
157
163
 
158
- /* Code block */
159
-
160
- .theme-api-markdown code {
161
- max-width: 600px;
162
- max-height: 500px;
163
- overflow: auto;
164
- }
165
-
166
164
  /* Version button */
167
165
 
168
166
  .version-button div {
@@ -239,8 +237,8 @@
239
237
 
240
238
  .code__tab--python::after {
241
239
  content: "";
242
- width: 28px;
243
- height: 28px;
240
+ width: var(--code-tab-logo-width);
241
+ height: var(--code-tab-logo-height);
244
242
  background: url("https://raw.githubusercontent.com/devicons/devicon/master/icons/python/python-original.svg");
245
243
  margin-block: auto;
246
244
  }
@@ -265,8 +263,8 @@
265
263
 
266
264
  .code__tab--go::after {
267
265
  content: "";
268
- width: 28px;
269
- height: 28px;
266
+ width: var(--code-tab-logo-width);
267
+ height: var(--code-tab-logo-height);
270
268
  background: url("https://raw.githubusercontent.com/devicons/devicon/master/icons/go/go-original-wordmark.svg");
271
269
  margin-block: auto;
272
270
  }
@@ -291,8 +289,8 @@
291
289
 
292
290
  .code__tab--javascript::after {
293
291
  content: "";
294
- width: 28px;
295
- height: 28px;
292
+ width: var(--code-tab-logo-width);
293
+ height: var(--code-tab-logo-height);
296
294
  background: url("https://raw.githubusercontent.com/devicons/devicon/master/icons/javascript/javascript-original.svg");
297
295
  margin-block: auto;
298
296
  }
@@ -317,9 +315,11 @@
317
315
 
318
316
  .code__tab--bash::after {
319
317
  content: "";
320
- width: 28px;
321
- height: 28px;
322
- background: url("https://raw.githubusercontent.com/devicons/devicon/master/icons/linux/linux-original.svg");
318
+ width: var(--code-tab-logo-width);
319
+ height: var(--code-tab-logo-height);
320
+ background: url("https://raw.githubusercontent.com/devicons/devicon/master/icons/bash/bash-plain.svg");
321
+ background-color: var(--bash-background-color);
322
+ border-radius: var(--bash-border-radius);
323
323
  margin-block: auto;
324
324
  }
325
325
 
@@ -343,8 +343,8 @@
343
343
 
344
344
  .code__tab--ruby::after {
345
345
  content: "";
346
- width: 28px;
347
- height: 28px;
346
+ width: var(--code-tab-logo-width);
347
+ height: var(--code-tab-logo-height);
348
348
  background: url("https://raw.githubusercontent.com/devicons/devicon/master/icons/ruby/ruby-plain.svg");
349
349
  margin-block: auto;
350
350
  }
@@ -369,8 +369,8 @@
369
369
 
370
370
  .code__tab--csharp::after {
371
371
  content: "";
372
- width: 28px;
373
- height: 28px;
372
+ width: var(--code-tab-logo-width);
373
+ height: var(--code-tab-logo-height);
374
374
  background: url("https://raw.githubusercontent.com/devicons/devicon/master/icons/csharp/csharp-original.svg");
375
375
  margin-block: auto;
376
376
  }
@@ -395,8 +395,8 @@
395
395
 
396
396
  .code__tab--nodejs::after {
397
397
  content: "";
398
- width: 28px;
399
- height: 28px;
398
+ width: var(--code-tab-logo-width);
399
+ height: var(--code-tab-logo-height);
400
400
  background: url("https://raw.githubusercontent.com/devicons/devicon/master/icons/nodejs/nodejs-original.svg");
401
401
  margin-block: auto;
402
402
  }
@@ -421,8 +421,8 @@
421
421
 
422
422
  .code__tab--php::after {
423
423
  content: "";
424
- width: 28px;
425
- height: 28px;
424
+ width: var(--code-tab-logo-width);
425
+ height: var(--code-tab-logo-height);
426
426
  background: url("https://raw.githubusercontent.com/devicons/devicon/master/icons/php/php-original.svg");
427
427
  margin-block: auto;
428
428
  }
@@ -447,8 +447,8 @@
447
447
 
448
448
  .code__tab--java::after {
449
449
  content: "";
450
- width: 28px;
451
- height: 28px;
450
+ width: var(--code-tab-logo-width);
451
+ height: var(--code-tab-logo-height);
452
452
  background: url("https://raw.githubusercontent.com/devicons/devicon/master/icons/java/java-original.svg");
453
453
  margin-block: auto;
454
454
  }
@@ -471,6 +471,32 @@
471
471
  overflow: auto;
472
472
  }
473
473
 
474
+ .code__tab--powershell::after {
475
+ content: "";
476
+ width: var(--code-tab-logo-width);
477
+ height: var(--code-tab-logo-height);
478
+ background: url("https://raw.githubusercontent.com/devicons/devicon/master/icons/windows8/windows8-original.svg");
479
+ margin-block: auto;
480
+ }
481
+
482
+ .code__tab--powershell {
483
+ color: var(--ifm-color-info);
484
+ padding-left: 1.4rem;
485
+ padding-right: 1.4rem;
486
+ padding-top: 1rem !important;
487
+ padding-bottom: 1rem !important;
488
+ }
489
+
490
+ .code__tab--powershell.tabs__item--active {
491
+ border-bottom-color: var(--ifm-color-info);
492
+ background-color: var(--ifm-color-emphasis-100);
493
+ }
494
+
495
+ .language-powershell {
496
+ max-height: 500px;
497
+ overflow: auto;
498
+ }
499
+
474
500
  /* Prism code styles */
475
501
  .prism-code.language-java {
476
502
  white-space: pre !important;
@@ -483,3 +509,8 @@
483
509
  div:has(> ul.openapi-tabs__security-schemes) {
484
510
  max-width: 100%;
485
511
  }
512
+
513
+ .openapi-demo__code-block code {
514
+ max-height: 500px;
515
+ overflow: auto;
516
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "docusaurus-theme-openapi-docs",
3
3
  "description": "OpenAPI theme for Docusaurus.",
4
- "version": "1.6.1",
4
+ "version": "1.7.0",
5
5
  "license": "MIT",
6
6
  "keywords": [
7
7
  "openapi",
@@ -45,13 +45,13 @@
45
45
  "dependencies": {
46
46
  "@docusaurus/theme-common": ">=2.0.1 <2.3.0",
47
47
  "@mdx-js/react": "^1.6.21",
48
- "@paloaltonetworks/postman-code-generators": "^1.1.15",
48
+ "@paloaltonetworks/postman-code-generators": "1.1.15-patch.2",
49
49
  "@paloaltonetworks/postman-collection": "^4.1.0",
50
50
  "@reduxjs/toolkit": "^1.7.1",
51
51
  "buffer": "^6.0.3",
52
52
  "clsx": "^1.1.1",
53
53
  "crypto-js": "^4.1.1",
54
- "docusaurus-plugin-openapi-docs": "^1.6.1",
54
+ "docusaurus-plugin-openapi-docs": "^1.7.0",
55
55
  "file-saver": "^2.0.5",
56
56
  "immer": "^9.0.7",
57
57
  "lodash": "^4.17.20",
@@ -74,5 +74,5 @@
74
74
  "engines": {
75
75
  "node": ">=14"
76
76
  },
77
- "gitHead": "68f648d80d41b82a607215bac0a082f931f80b7c"
77
+ "gitHead": "4b9ac927c85b56054c8d93336b1b5e282ab309e7"
78
78
  }
@@ -111,6 +111,16 @@ export const languageSet: Language[] = [
111
111
  },
112
112
  variant: "OkHttp",
113
113
  },
114
+ {
115
+ highlight: "powershell",
116
+ language: "powershell",
117
+ logoClass: "powershell",
118
+ options: {
119
+ followRedirect: true,
120
+ trimRequestBody: true,
121
+ },
122
+ variant: "RestMethod",
123
+ },
114
124
  ];
115
125
 
116
126
  export interface Props {
@@ -280,7 +290,11 @@ function Curl({ postman, codeSamples }: Props) {
280
290
  }
281
291
  attributes={{ className: `code__tab--${lang.logoClass}` }}
282
292
  >
283
- <CodeBlock language={lang.highlight} className={styles.codeBlock}>
293
+ <CodeBlock
294
+ language={lang.highlight}
295
+ className={styles.codeBlock}
296
+ title={`${lang.language} / ${lang.variant}`}
297
+ >
284
298
  {codeText}
285
299
  </CodeBlock>
286
300
  </CodeTab>
@@ -82,8 +82,3 @@
82
82
  background: var(--ifm-menu-color-background-active);
83
83
  color: var(--ifm-menu-color-active);
84
84
  }
85
-
86
- .codeBlock code {
87
- max-width: revert;
88
- max-height: revert;
89
- }
@@ -62,7 +62,10 @@ function Response() {
62
62
  </button>
63
63
  </div>
64
64
  </summary>
65
- <CodeBlock language={response.startsWith("<") ? `xml` : `json`}>
65
+ <CodeBlock
66
+ language={response.startsWith("<") ? `xml` : `json`}
67
+ className="openapi-demo__code-block"
68
+ >
66
69
  {prettyResponse || "No Response"}
67
70
  </CodeBlock>
68
71
  </details>
@@ -17,10 +17,16 @@
17
17
  --openapi-card-border-radius: var(--ifm-pre-border-radius);
18
18
  --openapi-input-border: var(--ifm-color-primary);
19
19
  --openapi-input-background: var(--openapi-card-background-color);
20
+ --bash-background-color: transparent;
21
+ --bash-border-radius: none;
22
+ --code-tab-logo-width: 26px;
23
+ --code-tab-logo-height: 26px;
20
24
  }
21
25
 
22
26
  [data-theme="dark"] {
23
27
  --openapi-card-background-color: var(--ifm-color-gray-900) !important;
28
+ --bash-background-color: lightgrey;
29
+ --bash-border-radius: 20px;
24
30
  }
25
31
 
26
32
  .docs-wrapper {
@@ -155,14 +161,6 @@
155
161
  margin-right: 1rem;
156
162
  }
157
163
 
158
- /* Code block */
159
-
160
- .theme-api-markdown code {
161
- max-width: 600px;
162
- max-height: 500px;
163
- overflow: auto;
164
- }
165
-
166
164
  /* Version button */
167
165
 
168
166
  .version-button div {
@@ -239,8 +237,8 @@
239
237
 
240
238
  .code__tab--python::after {
241
239
  content: "";
242
- width: 28px;
243
- height: 28px;
240
+ width: var(--code-tab-logo-width);
241
+ height: var(--code-tab-logo-height);
244
242
  background: url("https://raw.githubusercontent.com/devicons/devicon/master/icons/python/python-original.svg");
245
243
  margin-block: auto;
246
244
  }
@@ -265,8 +263,8 @@
265
263
 
266
264
  .code__tab--go::after {
267
265
  content: "";
268
- width: 28px;
269
- height: 28px;
266
+ width: var(--code-tab-logo-width);
267
+ height: var(--code-tab-logo-height);
270
268
  background: url("https://raw.githubusercontent.com/devicons/devicon/master/icons/go/go-original-wordmark.svg");
271
269
  margin-block: auto;
272
270
  }
@@ -291,8 +289,8 @@
291
289
 
292
290
  .code__tab--javascript::after {
293
291
  content: "";
294
- width: 28px;
295
- height: 28px;
292
+ width: var(--code-tab-logo-width);
293
+ height: var(--code-tab-logo-height);
296
294
  background: url("https://raw.githubusercontent.com/devicons/devicon/master/icons/javascript/javascript-original.svg");
297
295
  margin-block: auto;
298
296
  }
@@ -317,9 +315,11 @@
317
315
 
318
316
  .code__tab--bash::after {
319
317
  content: "";
320
- width: 28px;
321
- height: 28px;
322
- background: url("https://raw.githubusercontent.com/devicons/devicon/master/icons/linux/linux-original.svg");
318
+ width: var(--code-tab-logo-width);
319
+ height: var(--code-tab-logo-height);
320
+ background: url("https://raw.githubusercontent.com/devicons/devicon/master/icons/bash/bash-plain.svg");
321
+ background-color: var(--bash-background-color);
322
+ border-radius: var(--bash-border-radius);
323
323
  margin-block: auto;
324
324
  }
325
325
 
@@ -343,8 +343,8 @@
343
343
 
344
344
  .code__tab--ruby::after {
345
345
  content: "";
346
- width: 28px;
347
- height: 28px;
346
+ width: var(--code-tab-logo-width);
347
+ height: var(--code-tab-logo-height);
348
348
  background: url("https://raw.githubusercontent.com/devicons/devicon/master/icons/ruby/ruby-plain.svg");
349
349
  margin-block: auto;
350
350
  }
@@ -369,8 +369,8 @@
369
369
 
370
370
  .code__tab--csharp::after {
371
371
  content: "";
372
- width: 28px;
373
- height: 28px;
372
+ width: var(--code-tab-logo-width);
373
+ height: var(--code-tab-logo-height);
374
374
  background: url("https://raw.githubusercontent.com/devicons/devicon/master/icons/csharp/csharp-original.svg");
375
375
  margin-block: auto;
376
376
  }
@@ -395,8 +395,8 @@
395
395
 
396
396
  .code__tab--nodejs::after {
397
397
  content: "";
398
- width: 28px;
399
- height: 28px;
398
+ width: var(--code-tab-logo-width);
399
+ height: var(--code-tab-logo-height);
400
400
  background: url("https://raw.githubusercontent.com/devicons/devicon/master/icons/nodejs/nodejs-original.svg");
401
401
  margin-block: auto;
402
402
  }
@@ -421,8 +421,8 @@
421
421
 
422
422
  .code__tab--php::after {
423
423
  content: "";
424
- width: 28px;
425
- height: 28px;
424
+ width: var(--code-tab-logo-width);
425
+ height: var(--code-tab-logo-height);
426
426
  background: url("https://raw.githubusercontent.com/devicons/devicon/master/icons/php/php-original.svg");
427
427
  margin-block: auto;
428
428
  }
@@ -447,8 +447,8 @@
447
447
 
448
448
  .code__tab--java::after {
449
449
  content: "";
450
- width: 28px;
451
- height: 28px;
450
+ width: var(--code-tab-logo-width);
451
+ height: var(--code-tab-logo-height);
452
452
  background: url("https://raw.githubusercontent.com/devicons/devicon/master/icons/java/java-original.svg");
453
453
  margin-block: auto;
454
454
  }
@@ -471,6 +471,32 @@
471
471
  overflow: auto;
472
472
  }
473
473
 
474
+ .code__tab--powershell::after {
475
+ content: "";
476
+ width: var(--code-tab-logo-width);
477
+ height: var(--code-tab-logo-height);
478
+ background: url("https://raw.githubusercontent.com/devicons/devicon/master/icons/windows8/windows8-original.svg");
479
+ margin-block: auto;
480
+ }
481
+
482
+ .code__tab--powershell {
483
+ color: var(--ifm-color-info);
484
+ padding-left: 1.4rem;
485
+ padding-right: 1.4rem;
486
+ padding-top: 1rem !important;
487
+ padding-bottom: 1rem !important;
488
+ }
489
+
490
+ .code__tab--powershell.tabs__item--active {
491
+ border-bottom-color: var(--ifm-color-info);
492
+ background-color: var(--ifm-color-emphasis-100);
493
+ }
494
+
495
+ .language-powershell {
496
+ max-height: 500px;
497
+ overflow: auto;
498
+ }
499
+
474
500
  /* Prism code styles */
475
501
  .prism-code.language-java {
476
502
  white-space: pre !important;
@@ -483,3 +509,8 @@
483
509
  div:has(> ul.openapi-tabs__security-schemes) {
484
510
  max-width: 100%;
485
511
  }
512
+
513
+ .openapi-demo__code-block code {
514
+ max-height: 500px;
515
+ overflow: auto;
516
+ }