docusaurus-plugin-typedoc 1.3.0 → 1.3.1
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/README.md +1 -1
- package/dist/options/declarations.d.ts +19 -0
- package/dist/options/declarations.js +19 -0
- package/dist/plugin/sidebar.js +1 -8
- package/package.json +2 -7
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
## Documentation
|
|
8
8
|
|
|
9
|
-
Please visit
|
|
9
|
+
Please visit [https://typedoc-plugin-markdown.org/plugins/docusaurus](https://typedoc-plugin-markdown.org/plugins/docusaurus) for comprehensive documentation, including options and usage guides.
|
|
10
10
|
|
|
11
11
|
## License
|
|
12
12
|
|
|
@@ -18,5 +18,24 @@ import { DeclarationOption } from 'typedoc';
|
|
|
18
18
|
*
|
|
19
19
|
* Please see the [sidebar guide](/plugins/docusaurus/guides/sidebar) for additional information on sidebar setup.
|
|
20
20
|
*
|
|
21
|
+
* ```js filename="docusaurus.config.js"
|
|
22
|
+
* {
|
|
23
|
+
* plugins: [
|
|
24
|
+
* [
|
|
25
|
+
* 'docusaurus-plugin-typedoc',
|
|
26
|
+
* {
|
|
27
|
+
* "sidebar": {
|
|
28
|
+
* "autoConfiguration": true,
|
|
29
|
+
* "pretty": false,
|
|
30
|
+
* "typescript": false,
|
|
31
|
+
* "deprecatedItemClassName": "typedoc-sidebar-item-deprecated"
|
|
32
|
+
* }
|
|
33
|
+
* }
|
|
34
|
+
* ]
|
|
35
|
+
* ]
|
|
36
|
+
* }
|
|
37
|
+
*
|
|
38
|
+
* @omitExample
|
|
39
|
+
*
|
|
21
40
|
*/
|
|
22
41
|
export declare const sidebar: Partial<DeclarationOption>;
|
|
@@ -19,6 +19,25 @@ import { DEFAULT_SIDEBAR_OPTIONS } from './options.js';
|
|
|
19
19
|
*
|
|
20
20
|
* Please see the [sidebar guide](/plugins/docusaurus/guides/sidebar) for additional information on sidebar setup.
|
|
21
21
|
*
|
|
22
|
+
* ```js filename="docusaurus.config.js"
|
|
23
|
+
* {
|
|
24
|
+
* plugins: [
|
|
25
|
+
* [
|
|
26
|
+
* 'docusaurus-plugin-typedoc',
|
|
27
|
+
* {
|
|
28
|
+
* "sidebar": {
|
|
29
|
+
* "autoConfiguration": true,
|
|
30
|
+
* "pretty": false,
|
|
31
|
+
* "typescript": false,
|
|
32
|
+
* "deprecatedItemClassName": "typedoc-sidebar-item-deprecated"
|
|
33
|
+
* }
|
|
34
|
+
* }
|
|
35
|
+
* ]
|
|
36
|
+
* ]
|
|
37
|
+
* }
|
|
38
|
+
*
|
|
39
|
+
* @omitExample
|
|
40
|
+
*
|
|
22
41
|
*/
|
|
23
42
|
export const sidebar = {
|
|
24
43
|
help: 'Configures the autogenerated Docusaurus sidebar.',
|
package/dist/plugin/sidebar.js
CHANGED
|
@@ -7,14 +7,7 @@ export function writeSidebar(navigation, outputDir, sidebar, siteDir, docsPreset
|
|
|
7
7
|
? 'typedoc-sidebar.ts'
|
|
8
8
|
: 'typedoc-sidebar.cjs';
|
|
9
9
|
const sidebarPath = path.resolve(outputDir, sidebarFileName);
|
|
10
|
-
|
|
11
|
-
.relative(siteDir, outputDir)
|
|
12
|
-
.split(path.sep)
|
|
13
|
-
.slice(1)
|
|
14
|
-
.join('/');
|
|
15
|
-
if (docsPresetPath) {
|
|
16
|
-
baseDir = adjustBaseDirectory(baseDir, docsPresetPath);
|
|
17
|
-
}
|
|
10
|
+
const baseDir = adjustBaseDirectory(path.relative(siteDir, outputDir).split(path.sep).join('/'), docsPresetPath || 'docs');
|
|
18
11
|
const sidebarJson = getSidebar(navigation, baseDir, sidebar, numberPrefixParser);
|
|
19
12
|
const sidebarContent = sidebar.typescript
|
|
20
13
|
? getTypescriptSidebar(sidebarJson, sidebar)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "docusaurus-plugin-typedoc",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.1",
|
|
4
4
|
"description": "A Docusaurus plugin to integrate TypeDoc ( + typedoc-plugin-markdown ) into a Docusaurus project.",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": "./dist/index.js"
|
|
@@ -26,7 +26,6 @@
|
|
|
26
26
|
"prebuild": "rm -rf dist && prebuild-options && copyfiles --up 1 ./src/**/*.cjs ./dist/",
|
|
27
27
|
"prepublishOnly": "npm run lint && npm run build",
|
|
28
28
|
"build": "tsc",
|
|
29
|
-
"pretest": "rm -rf ./test/out && docusaurus generate-typedoc",
|
|
30
29
|
"test": "jest",
|
|
31
30
|
"test:update": "npm run build && npm test -- -u"
|
|
32
31
|
},
|
|
@@ -36,9 +35,5 @@
|
|
|
36
35
|
"docusaurus",
|
|
37
36
|
"typedoc",
|
|
38
37
|
"plugin"
|
|
39
|
-
]
|
|
40
|
-
"devDependencies": {
|
|
41
|
-
"@docusaurus/core": "^3.7.0",
|
|
42
|
-
"@docusaurus/types": "^3.7.0"
|
|
43
|
-
}
|
|
38
|
+
]
|
|
44
39
|
}
|