@docusaurus/plugin-debug 2.0.0-beta.14 → 2.0.0-beta.15
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/lib/index.d.ts +1 -1
- package/lib/index.js +3 -0
- package/lib/theme/DebugLayout/index.d.ts +1 -1
- package/lib/theme/DebugLayout/styles.module.css +1 -1
- package/lib/theme/DebugRoutes/styles.module.css +1 -1
- package/package.json +7 -7
- package/src/index.ts +5 -1
- package/src/theme/DebugLayout/index.tsx +1 -1
- package/src/theme/DebugLayout/styles.module.css +1 -1
- package/src/theme/DebugRoutes/styles.module.css +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -4,5 +4,5 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
-
import { LoadContext, Plugin } from '@docusaurus/types';
|
|
7
|
+
import type { LoadContext, Plugin } from '@docusaurus/types';
|
|
8
8
|
export default function pluginDebug({ siteConfig: { baseUrl }, generatedFilesDir, }: LoadContext): Plugin<void>;
|
package/lib/index.js
CHANGED
|
@@ -17,6 +17,9 @@ function pluginDebug({ siteConfig: { baseUrl }, generatedFilesDir, }) {
|
|
|
17
17
|
getThemePath() {
|
|
18
18
|
return path_1.default.resolve(__dirname, '../lib/theme');
|
|
19
19
|
},
|
|
20
|
+
getTypeScriptThemePath() {
|
|
21
|
+
return path_1.default.resolve(__dirname, '../src/theme');
|
|
22
|
+
},
|
|
20
23
|
async contentLoaded({ actions: { createData, addRoute }, allContent }) {
|
|
21
24
|
const allContentPath = await createData(
|
|
22
25
|
// Note that this created data path must be in sync with
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
-
import { ReactNode } from 'react';
|
|
7
|
+
import { type ReactNode } from 'react';
|
|
8
8
|
declare function DebugLayout({ children }: {
|
|
9
9
|
children: ReactNode;
|
|
10
10
|
}): JSX.Element;
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@docusaurus/plugin-debug",
|
|
3
|
-
"version": "2.0.0-beta.
|
|
3
|
+
"version": "2.0.0-beta.15",
|
|
4
4
|
"description": "Debug plugin for Docusaurus.",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "src/plugin-debug.d.ts",
|
|
7
7
|
"scripts": {
|
|
8
|
-
"build": "tsc && node copyUntypedFiles.
|
|
9
|
-
"watch": "node copyUntypedFiles.
|
|
8
|
+
"build": "tsc && node copyUntypedFiles.mjs",
|
|
9
|
+
"watch": "node copyUntypedFiles.mjs && tsc --watch"
|
|
10
10
|
},
|
|
11
11
|
"publishConfig": {
|
|
12
12
|
"access": "public"
|
|
@@ -18,14 +18,14 @@
|
|
|
18
18
|
},
|
|
19
19
|
"license": "MIT",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@docusaurus/core": "2.0.0-beta.
|
|
22
|
-
"@docusaurus/utils": "2.0.0-beta.
|
|
21
|
+
"@docusaurus/core": "2.0.0-beta.15",
|
|
22
|
+
"@docusaurus/utils": "2.0.0-beta.15",
|
|
23
23
|
"fs-extra": "^10.0.0",
|
|
24
24
|
"react-json-view": "^1.21.3",
|
|
25
25
|
"tslib": "^2.3.1"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@docusaurus/types": "2.0.0-beta.
|
|
28
|
+
"@docusaurus/types": "2.0.0-beta.15"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
31
31
|
"react": "^16.8.4 || ^17.0.0",
|
|
@@ -34,5 +34,5 @@
|
|
|
34
34
|
"engines": {
|
|
35
35
|
"node": ">=14"
|
|
36
36
|
},
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "6cfad16436c07d8d11e5c2e1486dc59afd483e33"
|
|
38
38
|
}
|
package/src/index.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import {LoadContext, Plugin} from '@docusaurus/types';
|
|
8
|
+
import type {LoadContext, Plugin} from '@docusaurus/types';
|
|
9
9
|
import {docuHash, normalizeUrl, posixPath} from '@docusaurus/utils';
|
|
10
10
|
import path from 'path';
|
|
11
11
|
|
|
@@ -27,6 +27,10 @@ export default function pluginDebug({
|
|
|
27
27
|
return path.resolve(__dirname, '../lib/theme');
|
|
28
28
|
},
|
|
29
29
|
|
|
30
|
+
getTypeScriptThemePath() {
|
|
31
|
+
return path.resolve(__dirname, '../src/theme');
|
|
32
|
+
},
|
|
33
|
+
|
|
30
34
|
async contentLoaded({actions: {createData, addRoute}, allContent}) {
|
|
31
35
|
const allContentPath = await createData(
|
|
32
36
|
// Note that this created data path must be in sync with
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import React, {ReactNode} from 'react';
|
|
8
|
+
import React, {type ReactNode} from 'react';
|
|
9
9
|
import Head from '@docusaurus/Head';
|
|
10
10
|
import Link from '@docusaurus/Link';
|
|
11
11
|
import styles from './styles.module.css';
|