docusaurus-plugin-typedoc
Advanced tools
+3
-0
@@ -0,2 +1,5 @@ | ||
| /** | ||
| * @module core | ||
| */ | ||
| export { PluginOptions } from './models.js'; | ||
| export { default } from './plugins/docusaurus.js'; |
@@ -14,5 +14,2 @@ /** | ||
| } | ||
| /** | ||
| * | ||
| */ | ||
| export interface Sidebar { | ||
@@ -19,0 +16,0 @@ autoConfiguration: boolean; |
@@ -28,3 +28,3 @@ export function getSidebar(navigation, basePath, numberPrefixParser) { | ||
| type: 'category', | ||
| label: `${navigationItem.title}`, | ||
| label: getNavigationLabel(navigationItem), | ||
| items: getSidebar(navigationItem.children, basePath, numberPrefixParser), | ||
@@ -43,5 +43,16 @@ ...(id && { | ||
| id, | ||
| label: `${navigationItem.title}`, | ||
| label: getNavigationLabel(navigationItem), | ||
| } | ||
| : null; | ||
| } | ||
| function getNavigationLabel(navigationItem) { | ||
| return navigationItem.isDeprecated | ||
| ? strikethrough(navigationItem.title) | ||
| : navigationItem.title; | ||
| } | ||
| function strikethrough(label) { | ||
| return label | ||
| .split('') | ||
| .map((char) => char + '\u0336') | ||
| .join(''); | ||
| } |
+2
-2
| { | ||
| "name": "docusaurus-plugin-typedoc", | ||
| "version": "1.1.1", | ||
| "version": "1.2.0", | ||
| "description": "A Docusaurus plugin to integrate TypeDoc ( + typedoc-plugin-markdown ) into a Docusaurus project.", | ||
@@ -23,3 +23,3 @@ "exports": { | ||
| "peerDependencies": { | ||
| "typedoc-plugin-markdown": ">=4.3.0" | ||
| "typedoc-plugin-markdown": ">=4.4.0" | ||
| }, | ||
@@ -26,0 +26,0 @@ "scripts": { |
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
14252
2.33%360
3.15%