@scalar/docusaurus 0.7.20 → 0.7.22
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.
- package/CHANGELOG.md +16 -0
- package/README.md +19 -6
- package/dist/ScalarDocusaurus.js +1 -1
- package/dist/index.js +2 -2
- package/dist/theme.css +1 -7
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +25 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @scalar/docusaurus
|
|
2
2
|
|
|
3
|
+
## 0.7.22
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [[`44aeef0`](https://github.com/scalar/scalar/commit/44aeef01073801165e339163462378b7b62ff68d), [`cbedfab`](https://github.com/scalar/scalar/commit/cbedfab576502069be27ceacbea145a917214e47), [`cbedfab`](https://github.com/scalar/scalar/commit/cbedfab576502069be27ceacbea145a917214e47)]:
|
|
8
|
+
- @scalar/types@0.5.0
|
|
9
|
+
|
|
10
|
+
## 0.7.21
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- [#7129](https://github.com/scalar/scalar/pull/7129) [`6ec8c29`](https://github.com/scalar/scalar/commit/6ec8c299d912111b029e8058979d00968b70691a) Thanks [@geoffgscott](https://github.com/geoffgscott)! - Simplify ApiReferences state management and migrate to new shared sidebar component. Eliminates the useSidebar and useNav hooks in favour of event bubbling and centralized state management in ApiReference.vue
|
|
15
|
+
|
|
16
|
+
- Updated dependencies [[`eb022f2`](https://github.com/scalar/scalar/commit/eb022f2c8f93c84a04c0093fefe8a1e05d6ec80d), [`6ec8c29`](https://github.com/scalar/scalar/commit/6ec8c299d912111b029e8058979d00968b70691a), [`eba18d0`](https://github.com/scalar/scalar/commit/eba18d06267a163a8f91396a66f817100ee59461)]:
|
|
17
|
+
- @scalar/types@0.4.0
|
|
18
|
+
|
|
3
19
|
## 0.7.20
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -1,19 +1,32 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
This file is auto-generated by the Scalar README generator.
|
|
3
|
+
Command: pnpm --filter @scalar-internal/build-scripts start generate-readme
|
|
4
|
+
|
|
5
|
+
Do not edit this file manually. Changes will be lost when the file is regenerated.
|
|
6
|
+
-->
|
|
7
|
+
|
|
1
8
|
# Scalar API Reference Plugin for Docusaurus
|
|
2
9
|
|
|
3
|
-
[](https://discord.gg/
|
|
10
|
+
[](https://www.npmjs.com/package/@scalar/docusaurus)
|
|
11
|
+
[](https://www.npmjs.com/package/@scalar/docusaurus)
|
|
12
|
+
[](https://www.npmjs.com/package/@scalar/docusaurus)
|
|
13
|
+
[](https://discord.gg/scalar)
|
|
14
|
+
|
|
15
|
+
Docusaurus plugin to embed beautiful, interactive API documentation from OpenAPI/Swagger documents.
|
|
7
16
|
|
|
8
|
-

|
|
9
18
|
|
|
10
19
|
## Documentation
|
|
11
20
|
|
|
12
21
|
[Read the documentation here](https://guides.scalar.com/scalar/scalar-api-references/integrations/docusaurus)
|
|
13
22
|
|
|
23
|
+
## Changelog
|
|
24
|
+
|
|
25
|
+
See [CHANGELOG.md](https://github.com/scalar/scalar/blob/main/integrations/docusaurus/CHANGELOG.md) for a list of changes.
|
|
26
|
+
|
|
14
27
|
## Community
|
|
15
28
|
|
|
16
|
-
We are API nerds. You too? Let
|
|
29
|
+
We are API nerds. You too? Let’s chat on Discord: <https://discord.gg/scalar>
|
|
17
30
|
|
|
18
31
|
## License
|
|
19
32
|
|
package/dist/ScalarDocusaurus.js
CHANGED
|
@@ -37,8 +37,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.ScalarDocusaurus = void 0;
|
|
40
|
-
const react_1 = __importStar(require("react"));
|
|
41
40
|
const Layout_1 = __importDefault(require("@theme/Layout"));
|
|
41
|
+
const react_1 = __importStar(require("react"));
|
|
42
42
|
require("./theme.css");
|
|
43
43
|
const ScalarDocusaurus = ({ route }) => {
|
|
44
44
|
const ref = (0, react_1.useRef)(null);
|
package/dist/index.js
CHANGED
|
@@ -41,10 +41,10 @@ const ScalarDocusaurus = (context, options) => {
|
|
|
41
41
|
],
|
|
42
42
|
};
|
|
43
43
|
},
|
|
44
|
-
|
|
44
|
+
loadContent() {
|
|
45
45
|
return defaultOptions;
|
|
46
46
|
},
|
|
47
|
-
|
|
47
|
+
contentLoaded({ content, actions }) {
|
|
48
48
|
const { addRoute } = actions;
|
|
49
49
|
// If showNavLink is true, add a link to the navbar
|
|
50
50
|
if (defaultOptions.showNavLink) {
|
package/dist/theme.css
CHANGED
|
@@ -153,9 +153,7 @@ html[data-theme="light"] body .api-client-drawer {
|
|
|
153
153
|
overflow: initial !important;
|
|
154
154
|
grid-template-rows: 0 repeat(2, auto) !important;
|
|
155
155
|
}
|
|
156
|
-
|
|
157
|
-
height: 100% !important;
|
|
158
|
-
}
|
|
156
|
+
|
|
159
157
|
.section-column:nth-of-type(2) {
|
|
160
158
|
max-height: calc(100dvh - var(--ifm-navbar-height));
|
|
161
159
|
}
|
|
@@ -217,10 +215,6 @@ html[data-theme="light"] body .api-client-drawer {
|
|
|
217
215
|
html[data-theme="light"] body .sidebar {
|
|
218
216
|
backdrop-filter: blur(50px);
|
|
219
217
|
}
|
|
220
|
-
.references-navigation-list {
|
|
221
|
-
border: 1px solid var(--scalar-border-color) !important;
|
|
222
|
-
border-radius: 12px;
|
|
223
|
-
}
|
|
224
218
|
}
|
|
225
219
|
|
|
226
220
|
/** Hide credentials */
|