Skip to content

Commit 43d37d0

Browse files
committed
chore(docs): updated docs
1 parent df8ea16 commit 43d37d0

File tree

14 files changed

+175
-150
lines changed

14 files changed

+175
-150
lines changed

docs/content/docs/support/CHANGELOG.md renamed to docs/content/docs/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
### Minor Changes
1212

13-
- Exposed additional placeholders in `pageTitleTemplates` and adjusted default templates ([#831]).
13+
- Exposed additional placeholders in `pageTitleTemplates` and adjusted default templates ([#831](https://github.com/typedoc2md/typedoc-plugin-markdown/issues/831)).
1414
- Tweaked the format of abstract class page titles to include the translated abstract keyword (e.g., "Abstract Class: MyClass") for improved readability.
1515
- Added `strikeDeprecatedPageTitles` option.
1616

docs/content/docs/_meta.js

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,18 @@ export default {
55
},
66
index: 'Introduction',
77
'quick-start': '',
8-
98
'-- guides': {
109
type: 'separator',
1110
title: 'Guides',
1211
},
1312
options: '',
14-
extending: '',
15-
support: '',
13+
customization: '',
14+
other: '',
15+
'-- support': {
16+
type: 'separator',
17+
title: 'Support',
18+
},
19+
troubleshooting: '',
20+
releases: '',
21+
CHANGELOG: 'Changelog',
1622
};

docs/content/docs/extending.mdx renamed to docs/content/docs/customization.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ asIndexPage: true
44

55
import { Callout } from 'nextra/components';
66

7-
# Extending
7+
# Customization
88

99
You can extend the plugin beyond standard options, where possible integrating directly with the core TypeDoc API to ensure a consistent and predictable developer experience.
1010

docs/content/docs/options/output.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ If you want to expose the project structure (for example, to generate a sitemap
149149
you can access the navigation data in two ways:
150150

151151
- Output to a file by using the <OptionLink type="utility" name="navigationJson" /> option to write the navigation JSON for later use.
152-
- Access in place by reading the JSON from `rendererEvent.navigation` when working with [Async Jobs](/docs/extending#async-jobs).
152+
- Access in place by reading the JSON from `rendererEvent.navigation` when working with [Async Jobs](/docs/customization#async-jobs).
153153

154154
This option also allows you to customize the JSON structure based on categories, groups, and folders.
155155
By default, the navigation format aligns closely with the HTML theme.

docs/content/docs/other.mdx

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
import { Callout, FileTree } from 'nextra/components';
2+
3+
# Other
4+
5+
## Option Typings
6+
7+
You can inform your IDE about the shape of the exported options the plugin provides.
8+
9+
### JSON Files
10+
11+
You can utilize the provided JSON schema at https://typedoc-plugin-markdown.org/schema.json. For simplicity of configuration, this schema consolidates all options from TypeDoc and the plugin.
12+
13+
```json filename="typedoc.json"
14+
{
15+
"$schema": "https://typedoc-plugin-markdown.org/schema.json",
16+
"entryPoints": ["./src/index.ts", "./src/secondary-entry.ts"],
17+
"out": "docs",
18+
"plugin": ["typedoc-plugin-markdown", "some-other-plugin"],
19+
};
20+
```
21+
22+
### JavaScript Files
23+
24+
For JavaScript files, the `PluginOptions` interface can be imported to a `typedoc.config.js` file with a `@type` annotation.
25+
26+
You can use intersection types to combine the TypeDoc options with the plugin options.
27+
28+
```js filename="typedoc.config.cjs"
29+
// @ts-check
30+
31+
/** @type {import('typedoc').TypeDocOptions & import('typedoc-plugin-markdown').PluginOptions} */
32+
module.exports = {
33+
entryPoints: ['./src/index.ts', './src/secondary-entry.ts'],
34+
out: 'doc',
35+
plugin: ['typedoc-plugin-markdown', 'some-other-plugin'],
36+
};
37+
```

docs/content/docs/support/migration-guides.mdx renamed to docs/content/docs/releases.mdx

Lines changed: 40 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,53 @@
11
import { Callout } from 'nextra/components';
22

3-
# Migration Guides
3+
# Releases
44

5-
## v4
5+
## Versioning
6+
7+
This section should help you understand the versioning rules of the plugin and its compatibility with TypeDoc.
8+
9+
### Package Version
10+
11+
Please note that TypeDoc is still released within the 0.x.x range and may include breaking changes within each minor version release.
12+
13+
A new minor version of the plugin and be released with each minor TypeDoc version, and we will attempt to release in a non-breaking manner.
14+
15+
Besides the TypeDoc release versions, we aim to follow semantic versioning for the plugin:
16+
17+
- Bug fixes including minor UI tweaks will be released as patch versions.
18+
- New features/options will be released as minor versions.
19+
- UI changes implemented in a non-breaking manner will be released as minor versions.
20+
- Breaking changes including option changes and fundamental UI changes will be released as major versions.
21+
22+
### Compatibility Table
23+
24+
We will follow the Node.js and TypeScript versions as specified in the TypeDoc `package.json` file.
25+
26+
Version compatibility for the plugin and TypeDoc is as follows:
27+
28+
| Plugin | TypeDoc | Node | TypeScript |
29+
| ------------- | ------- | ----- | ------------- |
30+
| 4.5.x - 4.6.x | 0.28.x | >= 18 | 5.0.x - 5.8.x |
31+
| 4.3.x - 4.4.x | 0.27.x | >= 18 | 5.0.x - 5.7.x |
32+
| 4.1.x - 4.2.x | 0.26.x | >= 18 | 4.6.x - 5.5.x |
33+
| 4.0.x | 0.25.x | >= 16 | 4.6.x - 5.4.x |
34+
35+
For more information please visit [TypeDoc requirements](https://typedoc.org/documents/Overview.html).
36+
37+
## Migration Guides
38+
39+
### v4
640

741
v4.0 is a major release that includes a number of bug fixes, new features and
842
UX improvements.
943

10-
### Architectural Changes
44+
#### Architectural Changes
1145

1246
- Handlebars as a dependency has been removed.
1347
- Updated customization model with the ability to set hooks, events and custom theming.
1448
- Improved test and linting coverage.
1549

16-
### New Features
50+
#### New Features
1751

1852
- Updated output file structure.
1953
- Improved and cleaner UX configurable with options.
@@ -22,13 +56,13 @@ UX improvements.
2256
- Ability to customize static text.
2357
- Comprehensive documentation and examples repository.
2458

25-
### Non-Breaking Changes
59+
#### Non-Breaking Changes
2660

2761
- Each module member is now output to its own file by default. See <OptionLink type="display" name="outputFileStrategy" />. To achieve the same output as v3 (whereby only Classes, Enums and Interfaces have their own file), set the [`membersWithOwnFile`](/docs/options#memberswithownfile) option.
2862
- Parameters are output as a list by default. To achieve the same output as v3 (where parameters are output as a table), use the `table` key of <OptionLink type="display" name="parametersFormat" />.
2963
- Comment `@` tags are now displayed as headings.
3064

31-
### Breaking Changes
65+
#### Breaking Changes
3266

3367
- The output file structure has changed so you may need to update any cross references into your docs from external sources.
3468
- Setting `theme` to `"markdown"` is not required and should be removed.
@@ -38,11 +72,3 @@ UX improvements.
3872
- The option `namedAnchors` has been renamed to <OptionLink type="utility" name="useHTMLAnchors" /> to better reflect its purpose.
3973
- The option `hideInPageTOC` has been removed. In-page TOC are no longer included by default. You can include in-page TOCs by using [typedoc-plugin-remark](/plugins/remark) and the [remark-toc](plugins/remark/suggested-plugins#remark-toc) plugin.
4074
- The option `objectLiteralTypeDeclarationStyle` has been removed. Please use the `list` key of <OptionLink type="display" name="typeDeclarationFormat" />.
41-
42-
## Feedback
43-
44-
Feedback on releases are welcome and encouraged. If you'd like to report a bug, raise a feature request or have any questions, please [open an issue](https://github.com/typedoc2md/typedoc-plugin-markdown/issues/new/choose).
45-
46-
## Thank You
47-
48-
A big thank you to all the members of the community who support this plugin through direct contributions and providing invaluable user testing and feedback!

docs/content/docs/support/_meta.js

Lines changed: 0 additions & 6 deletions
This file was deleted.

docs/content/docs/support/versioning.mdx

Lines changed: 0 additions & 33 deletions
This file was deleted.
File renamed without changes.

docs/copy-changelogs.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ var copyfiles = require('copyfiles');
33
const changelogs = [
44
{
55
from: '../packages/typedoc-plugin-markdown/CHANGELOG.md',
6-
to: 'content/docs/support',
6+
to: 'content/docs',
77
},
88
{
99
from: '../packages/typedoc-vitepress-theme/CHANGELOG.md',

0 commit comments

Comments
 (0)