Gathering detailed insights and metrics for @jiereal/docusaurus-plugin-typedoc
Gathering detailed insights and metrics for @jiereal/docusaurus-plugin-typedoc
Gathering detailed insights and metrics for @jiereal/docusaurus-plugin-typedoc
Gathering detailed insights and metrics for @jiereal/docusaurus-plugin-typedoc
A plugin for TypeDoc that enables TypeScript API documentation to be generated in Markdown.
npm install @jiereal/docusaurus-plugin-typedoc
Typescript
Module System
Node Version
NPM Version
62.2
Supply Chain
99
Quality
75.2
Maintenance
100
Vulnerability
99.3
License
typedoc-plugin-markdown@4.4.1
Published on 01 Jan 2025
typedoc-plugin-markdown@4.4.0
Published on 30 Dec 2024
typedoc-plugin-markdown@4.3.3
Published on 18 Dec 2024
typedoc-plugin-markdown@4.3.2
Published on 08 Dec 2024
typedoc-plugin-markdown@4.3.1
Published on 01 Dec 2024
typedoc-plugin-markdown@4.3.0
Published on 27 Nov 2024
TypeScript (92.55%)
JavaScript (7.43%)
CSS (0.02%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
745 Stars
2,300 Commits
182 Forks
9 Watching
6 Branches
36 Contributors
Latest Version
0.17.6
Package Id
@jiereal/docusaurus-plugin-typedoc@0.17.6
Unpacked Size
28.50 kB
Size
7.74 kB
File Count
15
NPM Version
8.15.0
Node Version
16.17.1
Cumulative downloads
Total Downloads
Last day
0%
0
Compared to previous day
Last week
0%
0
Compared to previous week
Last month
0%
0
Compared to previous month
Last year
0%
0
Compared to previous year
2
1
A Docusaurus v2 plugin to build documentation with TypeDoc.
Generates static TypeDoc pages in Markdown with frontmatter as part of the Docusaurus build.
Install Docusaurus in the root of your project and install the plugin dependencies in the same location as the Docusaurus website directory.
1npm install typedoc @jiereal/typedoc-plugin-markdown @jiereal/docusaurus-plugin-typedoc --save-dev
Add the plugin to docusaurus.config.js
and specify the required options (see options).
1module.exports = { 2 plugins: [ 3 [ 4 '@jiereal/docusaurus-plugin-typedoc', 5 6 // Plugin / TypeDoc options 7 { 8 entryPoints: ['../src/index.ts'], 9 tsconfig: '../tsconfig.json', 10 }, 11 ], 12 ], 13};
TypeDoc will be bootstraped with the Docusaurus start
and build
cli commands:
1"start": "docusaurus start", 2"build": "docusaurus build",
Once built the docs will be available at /docs/api
(or equivalent out directory).
├── docusauruss-website
├── build/ (static site dir)
├── docs/
│ ├── api/ (compiled typedoc markdown)
├── docusaurus.config.js
├── package.json
├── sidebars.js
├──package.json
├──src (typescript source files)
├──tsconfig.json
To configure TypeDoc, pass any relevant TypeDoc options to the config.
At a minimum the entryPoints
and tsconfig
options will need to be set.
1entryPoints: ['../src/index.ts'], 2tsconfig: '../tsconfig.json'
Additional TypeDoc plugins will need to be explicitly set:
1plugin: ['typedoc-plugin-xyz'];
TypeDoc options can also be declared:
typedoc.json
file.typedocOptions
key in tsconfig.json
.Note: Options declared in this manner will take priority and overwrite options declared in
docusaurus.config.js
.
Options specific to the plugin should also be declared in the same object.
Name | Default | Description |
---|---|---|
out | "api" | Output dir relative to docs dir (use . for no subdir). |
includeExtension | true | Determines whether to preserve the .md extension in relative links. true is recommended as per Docusaurus documentation |
frontmatter | null | Additional frontmatter options object. See Frontmatter. |
sidebar.categoryLabel | API | The sidebar parent category label. |
sidebar.fullNames | false | Display full names with module path. |
sidebar.position | auto | The position of the sidebar in the tree. |
1module.exports = { 2 plugins: [ 3 [ 4 '@jiereal/docusaurus-plugin-typedoc', 5 { 6 // TypeDoc options 7 entryPoints: ['../src/index.ts'], 8 tsconfig: '../tsconfig.json', 9 plugin: ['typedoc-plugin-xyz'], 10 11 // Plugin options 12 out: 'api-xyz', 13 sidebar: { 14 categoryLabel: 'API XYZ', 15 position: 0, 16 fullNames: true, 17 }, 18 }, 19 ], 20 ], 21};
sidebars.js
can be configured in following ways:
1module.exports = { 2 sidebar: [ 3 { 4 type: 'autogenerated', 5 dirName: '.', // '.' means the docs folder 6 }, 7 ], 8};
note:
sidebar.categoryLabel
andsidebar.position
options are ignored with this implementation)
1module.exports = { 2 sidebar: { 3 'Category 1': ['doc1', 'doc2', 'doc3'], 4 API: [ 5 { 6 type: 'autogenerated', 7 dirName: 'api', // 'api' is the 'out' directory 8 }, 9 ], 10 }, 11};
Please see https://docusaurus.io/docs/sidebar for sidebar documentation.
A navbar item can be configured in themeConfig
options in docusaurus.config.js
:
1 themeConfig: { 2 navbar: { 3 items: [ 4 { 5 to: 'docs/api/', // 'api' is the 'out' directory 6 activeBasePath: 'docs', 7 label: 'API', 8 position: 'left', 9 }, 10 ], 11 }, 12},
Please see https://docusaurus.io/docs/api/themes/configuration#navbar-items for navbar documentation.
By default the plugin will configure minimal required Frontmatter configuration.
Additionally required global Frontmatter options can be passed in using the frontmatter
options object
docusaurus.config.js
:
1plugins: [ 2 [ 3 '@jiereal/docusaurus-plugin-typedoc', 4 { 5 // .... other plugin option 6 frontmatter: { 7 pagination_prev: null, 8 pagination_next: null 9 } 10 ] 11]
It is possible to build multi TypeDoc instances by passing in multiple configs with unique ids:
docusaurus.config.js
1module.exports = { 2 plugins: [ 3 [ 4 '@jiereal/docusaurus-plugin-typedoc', 5 { 6 id: 'api-1', 7 entryPoints: ['../api-1/src/index.ts'], 8 tsconfig: '../api-1/tsconfig.json', 9 out: 'api-1', 10 }, 11 ], 12 [ 13 '@jiereal/docusaurus-plugin-typedoc', 14 { 15 id: 'api-2', 16 entryPoints: ['../api-2/src/index.ts'], 17 tsconfig: '../api-2/tsconfig.json', 18 out: 'api-2', 19 }, 20 ], 21 ], 22};
Watching files is supported by passing in the watch: true
option see https://typedoc.org/guides/options/#watch.
Targetting the option in development mode only can be achieved using Node.js Environment Variables:
package.json
1"start": "TYPEDOC_WATCH=true docusaurus start", 2"build": "TYPEDOC_WATCH=false docusaurus build",
docusaurus.config.js
1module.exports = { 2 plugins: [ 3 [ 4 '@jiereal/docusaurus-plugin-typedoc', 5 { 6 entryPoints: ['../src/index.ts'], 7 tsconfig: '../tsconfig.json', 8 watch: process.env.TYPEDOC_WATCH, 9 }, 10 ], 11 ], 12};
docusaurus.config.js
1module.exports = { 2 plugins: [ 3 [ 4 '@jiereal/docusaurus-plugin-typedoc', 5 { 6 entryPoints: ['../packages/package-a', '../packages/package-b'], 7 entryPointStrategy: 'packages', 8 sidebar: { 9 fullNames: true, 10 }, 11 }, 12 ], 13 ], 14};
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
30 commit(s) and 27 issue activity found in the last 90 days -- score normalized to 10
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 1/17 approved changesets -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
55 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-01-27
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More