docusaurus-plugin-typedoc 0.16.0 → 0.16.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/dist/theme.js +6 -2
- package/package.json +3 -3
package/dist/theme.js
CHANGED
|
@@ -52,7 +52,11 @@ class DocusaurusTheme extends theme_1.MarkdownTheme {
|
|
|
52
52
|
});
|
|
53
53
|
}
|
|
54
54
|
getRelativeUrl(url) {
|
|
55
|
-
|
|
55
|
+
const relativeUrl = super.getRelativeUrl(url).replace(/.md/g, '');
|
|
56
|
+
if (path.basename(relativeUrl).startsWith('index')) {
|
|
57
|
+
return relativeUrl.replace('index', '');
|
|
58
|
+
}
|
|
59
|
+
return relativeUrl;
|
|
56
60
|
}
|
|
57
61
|
onPageEnd(page) {
|
|
58
62
|
if (page.contents) {
|
|
@@ -81,7 +85,7 @@ class DocusaurusTheme extends theme_1.MarkdownTheme {
|
|
|
81
85
|
if (page.url === this.entryDocument) {
|
|
82
86
|
items = {
|
|
83
87
|
...items,
|
|
84
|
-
slug: '/' + path.relative(process.cwd(), this.out).replace(/\\/g, '/'),
|
|
88
|
+
slug: '/' + path.relative(process.cwd(), this.out).replace(/\\/g, '/') + '/',
|
|
85
89
|
};
|
|
86
90
|
}
|
|
87
91
|
if (sidebarLabel && sidebarLabel !== pageTitle) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "docusaurus-plugin-typedoc",
|
|
3
|
-
"version": "0.16.
|
|
3
|
+
"version": "0.16.1",
|
|
4
4
|
"description": "A Docusaurus v2 plugin to build API documentation with TypeDoc.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"files": [
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"build-and-test": "yarn run build && yarn run test",
|
|
30
30
|
"test:init": "rm -rf test/site && npx @docusaurus/init@latest init test/site classic",
|
|
31
31
|
"test:demo:start": "yarn run build && cd test/site && yarn run clear && yarn run start",
|
|
32
|
-
"test:demo:build": "yarn run build && cd test/site && yarn run clear && yarn run serve",
|
|
32
|
+
"test:demo:build": "yarn run build && cd test/site && yarn run clear && yarn run build && yarn run serve",
|
|
33
33
|
"test": "jest --colors"
|
|
34
34
|
},
|
|
35
35
|
"author": "Thomas Grey",
|
|
@@ -42,5 +42,5 @@
|
|
|
42
42
|
"typescript",
|
|
43
43
|
"api"
|
|
44
44
|
],
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "54ab24b8b655e3c401469ea95c841b5a969bb40a"
|
|
46
46
|
}
|