Skip to content

TSDoc - Version 0.23 #1760

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 166 commits into from
Jun 26, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
166 commits
Select commit Hold shift + click to select a range
935f94a
Use data attribute on html element for themes
Shane4368 Sep 20, 2021
56a5b3c
Use html data-theme attribute in highlighter.tsx
Shane4368 Sep 20, 2021
801940d
Initial attempt at a comment lexer
Gerrit0 Sep 29, 2021
fdb06b2
Complete lexer test coverage
Gerrit0 Oct 2, 2021
a8b7b68
Correct misleading statement in readme
Gerrit0 Oct 2, 2021
2721871
Support escaping slashes in comments
Gerrit0 Oct 2, 2021
47780e5
Rework comment parser to get rid of comment splitting
Gerrit0 Oct 2, 2021
4d62b43
Remove unused css
Gerrit0 Oct 3, 2021
01e961b
Remove dead code in the highlighter
Gerrit0 Oct 3, 2021
71c311e
Merge branch 'master' into beta
Gerrit0 Oct 22, 2021
1b82a8c
Update tests to pass on beta branch
Gerrit0 Oct 22, 2021
79978e5
WIP: A real comment parser
Gerrit0 Oct 24, 2021
c91b891
Merge remote-tracking branch 'origin/master' into beta
Gerrit0 Nov 25, 2021
61b6bad
WIP: Closer to a real comment parser
Gerrit0 Nov 25, 2021
beadc5e
Merge remote-tracking branch 'origin/master' into beta
Gerrit0 Nov 25, 2021
f0fedac
distraction: substr -> substring
Gerrit0 Nov 25, 2021
7b50d32
WIP: Getting closer! Start writing the changelog...
Gerrit0 Nov 26, 2021
0ea4b7e
Add warning about multiple `@remarks` tags
Gerrit0 Nov 26, 2021
335d8da
Correct whitespace handling, fix most of the failing tests
Gerrit0 Nov 26, 2021
905150a
feat: introduce header default filter options #307
aqumus Dec 3, 2021
909818f
WIP - Clean up spacing
futurGH Oct 1, 2021
942bb13
Update icons + relevant styling
futurGH Oct 12, 2021
570f1df
Clean up navigation module list
futurGH Oct 14, 2021
72afa92
Misc. styling cleanup
futurGH Oct 27, 2021
acf75bb
Add role JSX attribute
futurGH Oct 27, 2021
564de8f
Change index to collapsible accordions
futurGH Oct 27, 2021
bb739af
Accordion cleanup & documentation
futurGH Nov 9, 2021
62f4b21
Move filtering functionality to sidebar
futurGH Nov 9, 2021
ca63d69
Clean up toolbar widgets
futurGH Nov 14, 2021
ae3600b
Styling & layout cleanup
futurGH Nov 14, 2021
2d255db
Design improvements according to feedback
futurGH Jan 25, 2022
0065d97
Remove hideLegend option
futurGH Jan 25, 2022
6506608
Feedback round 2
futurGH Jan 27, 2022
364424c
Linting
futurGH Jan 27, 2022
7a2c344
I wrote most of this last year...
Gerrit0 Jan 29, 2022
a24a54d
Mark failing test as pending
Gerrit0 Jan 29, 2022
0cc079f
Changes, round the third
futurGH Jan 31, 2022
8c70198
Can now handle comments on JSDoc tags
Gerrit0 Feb 6, 2022
27bfdd5
Make lint happy
Gerrit0 Feb 6, 2022
cbf8a7b
Merge remote-tracking branch 'origin/master' into beta
Gerrit0 Feb 6, 2022
78ee367
Enable sources for spec files
Gerrit0 Feb 6, 2022
44bf2ec
Significantly better detection for source location
Gerrit0 Feb 7, 2022
cdb991c
Margins/borders stuff
futurGH Feb 8, 2022
f7805ba
Remove "public" visibility option
futurGH Feb 8, 2022
f5e52c2
Remove Const flag for function-variables and fix 1734 test
Gerrit0 Feb 13, 2022
c6116de
Turn the overload tests back on
Gerrit0 Feb 13, 2022
71d77cf
Linting/style
futurGH Feb 13, 2022
1ab6d4e
Functions, type aliases, & variables now have their own pages
futurGH Feb 13, 2022
848d2aa
Warn about declarations with multiple comments
Gerrit0 Feb 15, 2022
608c1e7
Remove gaSite option, update Google Analytics script
Gerrit0 Feb 15, 2022
698caa1
Handle JSDoc @param comments with default value
Gerrit0 Feb 15, 2022
88b1c63
Handle example tags like VSCode
Gerrit0 Feb 15, 2022
849eb0e
Fix CI
Gerrit0 Feb 15, 2022
f3402fc
Remove unused options on renderer
Gerrit0 Feb 15, 2022
7c49a6d
Handle comments on destructured exported elements
Gerrit0 Feb 16, 2022
fe625ba
Fix decoration of log messages with an associated node
Gerrit0 Feb 17, 2022
aaeda3e
Fix comment rendering
Gerrit0 Feb 18, 2022
463a65b
Fix links which refer to reference reflections
Gerrit0 Feb 18, 2022
357c9b7
Correct detection of optional parameters with JSDoc
Gerrit0 Feb 18, 2022
d053b92
Improve support for modifier tags
Gerrit0 Feb 18, 2022
84d1651
Update changelog
Gerrit0 Feb 18, 2022
071b705
Add "@throws" as a known block tag
Gerrit0 Feb 18, 2022
9602a09
Contrast/styling fixes
futurGH Feb 19, 2022
856c93d
Clean up deprecated constructs
Gerrit0 Feb 19, 2022
f8f4eaf
Add a couple tests for inheritDoc
Gerrit0 Feb 20, 2022
0cc534f
Merge branch 'master' into beta
Gerrit0 Feb 20, 2022
27e8837
Fix failing test
Gerrit0 Feb 20, 2022
b835f84
Add additional TSDoc tags to parser config
Gerrit0 Feb 20, 2022
591dd3f
Fix failing test, again
Gerrit0 Feb 22, 2022
1f87afc
Improve support for `@inheritDoc`
Gerrit0 Mar 19, 2022
709d291
Improve readability of source code (#1889)
fb55 Mar 20, 2022
c13d607
Update changelog
Gerrit0 Mar 20, 2022
c93fb5d
Update changelog to describe incomplete work
Gerrit0 Mar 20, 2022
fe4ce52
Merge branch 'design-revamp' into beta
Gerrit0 Mar 20, 2022
1d411d5
Update changelog
Gerrit0 Mar 20, 2022
92599ca
Format
Gerrit0 Mar 20, 2022
b27c38a
Improve some more code
fb55 Mar 22, 2022
4e7f63c
Update src/lib/output/themes/default/DefaultTheme.tsx
fb55 Mar 26, 2022
2ccaea3
fix: Don't ignore the root of ignored paths
fb55 Mar 26, 2022
2681f2f
Move type serializers to models (#1890)
fb55 Mar 27, 2022
f766681
Merge pull request #1892 from fb55/simplify
Gerrit0 Mar 27, 2022
010aff2
Fix sidebar shifting
futurGH Apr 6, 2022
cde2a8f
Merge branch 'design-revamp' into beta
Gerrit0 Apr 10, 2022
fbde0cf
Merge branch 'master' into beta
Gerrit0 Apr 10, 2022
eab155b
Fixed most of the fallout from merge of master
Gerrit0 Apr 10, 2022
88c0f1e
Fix remaining fallout from master merge
Gerrit0 Apr 10, 2022
f754312
Fix display of index signatures
Gerrit0 Apr 10, 2022
1357984
Only take comments from exports for references and namespaces
Gerrit0 Apr 10, 2022
a429a02
Correct getAlias to always get unique aliases
Gerrit0 Apr 10, 2022
e2d8327
Merge pr/1706 into beta
Gerrit0 Apr 10, 2022
f06aaa9
Update changelog for #1706
Gerrit0 Apr 10, 2022
73ddbe2
Make it possible to link to a signature
Gerrit0 Apr 10, 2022
fe53653
Add a test for 1896
Gerrit0 Apr 16, 2022
9ef7075
Serialized source references now include URL if possible
Gerrit0 Apr 16, 2022
6e30001
Remove unused ProjectReflection.directory
Gerrit0 Apr 16, 2022
6902725
Remove ProjectReflection.files
Gerrit0 Apr 16, 2022
f09a1e9
Move SourceLinkPlugin into SourcePlugin
Gerrit0 Apr 17, 2022
e9c143f
Add support for the `@group` tag
Gerrit0 Apr 17, 2022
777fef3
Remove gap in ReflectionKind enum
Gerrit0 Apr 17, 2022
520c5a4
Drop support for Node 12
Gerrit0 Apr 17, 2022
d8f0a0b
[skip ci] Fixed missing entry in changelog
Gerrit0 Apr 17, 2022
59301b1
Update target for Node 14
Gerrit0 Apr 17, 2022
9f846e1
Bump version to 0.23.0-beta.0
Gerrit0 Apr 17, 2022
8ff6b4c
Merge branch pr1816 into beta
Gerrit0 Apr 19, 2022
3dd2159
Added support for custom filters based on modifier tags
Gerrit0 Apr 19, 2022
606f6f7
Bump version to 0.23.0-beta.1
Gerrit0 Apr 19, 2022
2f44a70
Add more line breaks in output and a cache for icons
Gerrit0 Apr 23, 2022
1e542e3
Add rawLexer for treating README files as comment-like
Gerrit0 Apr 24, 2022
f811d40
Update changelog
Gerrit0 Apr 24, 2022
bad91d5
Correct semantics for `@readonly` tag
Gerrit0 Apr 24, 2022
f74840d
Make comment parser configurable
Gerrit0 Apr 24, 2022
abd4d15
Add a check for arrays too
Gerrit0 Apr 24, 2022
ff2849e
Add custom munging to combine `@see` tags
Gerrit0 Apr 24, 2022
76377fc
Fix circular import
Gerrit0 Apr 24, 2022
03d948e
Revert missed part of rejected experiment
Gerrit0 Apr 24, 2022
49fda24
Try fixing visual regression workflow
Gerrit0 May 1, 2022
6eb93d2
Add artifact collection
Gerrit0 May 1, 2022
be6363a
Fixes for JSDoc style `@inheritDoc` handling
Gerrit0 May 15, 2022
d3b9b81
Merge branch 'master' into beta
Gerrit0 May 30, 2022
0c172b3
Clean up some TODOs pending breaking version update
Gerrit0 May 30, 2022
c587728
Bump version to 0.23.0-beta.2
Gerrit0 May 30, 2022
176a4f3
Remove `defaultValue` setting on enums
Gerrit0 Jun 1, 2022
7a5104b
Merge branch 'master' into beta
Gerrit0 Jun 1, 2022
f636b8f
Drop support for TS < 4.6
Gerrit0 Jun 1, 2022
2e0cd8c
Support for comments in typedoc.json
Gerrit0 Jun 2, 2022
c381dee
Support for reading tags from tsdoc.json
Gerrit0 Jun 3, 2022
6da5b3f
Ignore intentionally broken files in prettier
Gerrit0 Jun 3, 2022
b14eede
Bump version to 0.23.0-beta.3
Gerrit0 Jun 3, 2022
8613882
Extends in typedoc.json is now resolved like modules
Gerrit0 Jun 4, 2022
a001e89
Cleanup remaining option tests
Gerrit0 Jun 4, 2022
99cfa21
Pull fs-helpers from official repo
Gerrit0 Jun 4, 2022
651b290
Fix deprecation warning
Gerrit0 Jun 4, 2022
3edb447
Remove remove helper
Gerrit0 Jun 4, 2022
7918fba
Correct behavior of excludeNotDocumented
Gerrit0 Jun 4, 2022
f57c812
Do not attach module comments to non-modules
Gerrit0 Jun 4, 2022
9029777
Support for specifying globs in entry points
Gerrit0 Jun 4, 2022
683de98
Update changelog to reflect remaining work
Gerrit0 Jun 4, 2022
3a8e898
Add support for multiple comment styles
Gerrit0 Jun 4, 2022
735f748
Update changelog
Gerrit0 Jun 4, 2022
19413c8
Bump version to 0.23.0-beta.4
Gerrit0 Jun 4, 2022
b8f2eaa
Explicitly test on Node 14.14
Gerrit0 Jun 4, 2022
533f33d
WIP: Declaration reference parser
Gerrit0 Jun 12, 2022
8b156be
WIP: Declaration reference parsing nearly there
Gerrit0 Jun 12, 2022
61bbbd8
WIP: Add tests for declaration reference parsing
Gerrit0 Jun 14, 2022
fee67b0
WIP: Resolution for declaration references
Gerrit0 Jun 14, 2022
e7afeff
nyc -> c8 -> drop 70 devDeps
Gerrit0 Jun 14, 2022
4dfefe8
Finish support for declaration references, still needs tests
Gerrit0 Jun 19, 2022
5d44275
Add tests for declaration reference resolution
Gerrit0 Jun 19, 2022
6039f22
Bump version to 0.23.0-beta.5
Gerrit0 Jun 20, 2022
1ca876d
Allow new file extensions in pacakges mode
Gerrit0 Jun 20, 2022
3f23d0c
Fix compiler errors
Gerrit0 Jun 21, 2022
12721f9
Minor changes discovered while updating docs
Gerrit0 Jun 22, 2022
9713c9a
Beta feedback from @jlarmstrongiv
Gerrit0 Jun 22, 2022
752a4ff
Update searchGroupBoosts to work with `@group` tag
Gerrit0 Jun 23, 2022
c6f49d9
Fix failing CI, add missed tags
Gerrit0 Jun 23, 2022
882f70c
Adjust colors so that contrast isn't so strong
Gerrit0 Jun 25, 2022
86756ae
Merge branch master into beta
Gerrit0 Jun 25, 2022
2d1e038
`@inheritDoc` now uses declaration references
Gerrit0 Jun 25, 2022
440bd5c
Inherit `@deprecated` as specified by TSDoc
Gerrit0 Jun 25, 2022
90ce55e
Bump version to 0.23.0-beta.6
Gerrit0 Jun 25, 2022
75cbf1f
Fix parse error if a code block ends a string
Gerrit0 Jun 25, 2022
b1418c1
Declaration references can now handle user labels
Gerrit0 Jun 25, 2022
c44874d
Improve error handling for `@inheritDoc`
Gerrit0 Jun 25, 2022
89ba6e0
Bump version to 0.23.0-beta.7
Gerrit0 Jun 25, 2022
5f6c9be
Merge remote-tracking branch 'origin/master' into beta
Gerrit0 Jun 26, 2022
f38ad6f
Update changelog
Gerrit0 Jun 26, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 4 additions & 0 deletions .config/.prettierignore
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
../.nyc_output
../coverage
../dist
../docs
**/package-lock.json
../src/test/**/specs*.json
../src/test/packages/**/*.js
../src/test/renderer/specs
../src/test/renderer/testProject
../src/test/utils/options/readers/data/invalid2.json
../static/main.js
../example/docs/
**/tmp
**/.vs

# Turn this back on once supported by Prettier
../src/test/converter2/behavior/instantiationExpressions.ts
Expand Down
19 changes: 16 additions & 3 deletions .config/typedoc.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,27 @@
"ConverterComponent",
"RendererComponent",
"SORT_STRATEGIES",
"_ModelToObject"
"_ModelToObject",
"EventHooksMomento",
"MarkedPlugin"
],
"entryPoints": ["../src"],
"entryPointStrategy": "Resolve",
"excludeExternals": true,
"excludeInternal": false,
"excludePrivate": true,
"excludeInternal": true,
"treatWarningsAsErrors": false,
"validation": true,
"validation": {
"notExported": true,
"invalidLink": true,
"notDocumented": false
},
"visibilityFilters": {
"protected": false,
"private": false,
"inherited": true,
"external": false,
"@internal": false
},
"logLevel": "Verbose"
}
19 changes: 18 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"ignorePatterns": [
"src/test/renderer/specs",
"dist",
"docs",
"coverage",
"static/main.js",
"src/lib/output/themes/default/assets",
Expand All @@ -37,6 +38,9 @@
"rules": {
"@typescript-eslint/no-floating-promises": 1,

// This one is just annoying since it complains at incomplete code
"no-empty": 0,

// This rule is factually incorrect. Interfaces which extend some type alias can be used to introduce
// new type names. This is useful particularly when dealing with mixins.
"@typescript-eslint/no-empty-interface": 0,
Expand All @@ -45,15 +49,28 @@
"@typescript-eslint/ban-types": 0,
"@typescript-eslint/no-explicit-any": 0,

// Really annoying, doesn't provide any value.
"@typescript-eslint/no-empty-function": 0,

// Declaration merging with a namespace is a necessary tool when working with enums.
"@typescript-eslint/no-namespace": 0,

// Reported by TypeScript
"@typescript-eslint/no-unused-vars": 0,

"no-console": 1,

// Feel free to turn one of these back on and submit a PR!
"@typescript-eslint/no-non-null-assertion": 0,
"@typescript-eslint/explicit-module-boundary-types": 0
"@typescript-eslint/explicit-module-boundary-types": 0,

"no-restricted-syntax": [
"warn",
{
"selector": "ImportDeclaration[source.value=/.*perf$/]",
"message": "Benchmark calls must be removed before committing."
}
]
},
"overrides": [
{
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
# ESLint doesn't support Node 12.10 anymore. Test on the oldest available
# node that our tools support.
node: ["12.22", "12", "14", "16"]
node: ["14.14", "14", "16", "18"]
name: Node ${{ matrix.node }}
steps:
- name: Checkout repository
Expand All @@ -29,7 +27,7 @@ jobs:
# For other test runs, skip so we don't have to go build the regression screenshots.
SKIP_VISUAL_TEST: true
- name: Lint
run: npm run lint
run: npm run lint -- --max-warnings 0
- name: Circular dependency check
uses: gerrit0/circular-dependency-check@v1
with:
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/visual-regression.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,9 @@ jobs:
npm run build
node dist/test/capture-screenshots.js
- name: Test
run: npx reg-suit run --test
run: npx reg-suit run -c .config/regconfig.json --test
- name: Upload Results
uses: actions/upload-artifact@v3
with:
name: visual-regression
path: dist/tmp/.reg
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ yarn-error.log
**/node_modules/
/coverage/
/dist/
/docs

typedoc*.tgz
tmp
Expand Down
16 changes: 16 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,22 @@
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"args": [
"--timeout",
"0",
"--config",
"${workspaceFolder}/.config/mocha.fast.json",
"-g",
"1734"
],
"internalConsoleOptions": "openOnSessionStart",
"name": "Debug Tests",
"program": "${workspaceFolder}/node_modules/mocha/bin/_mocha",
"request": "launch",
"skipFiles": ["<node_internals>/**"],
"type": "pwa-node"
},
{
"name": "Attach",
"port": 9229,
Expand Down
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@
"prettier.configPath": ".config/.prettierrc.json",
"prettier.ignorePath": ".config/.prettierignore",
"eslint.workingDirectories": [".", "./example"],
"mochaExplorer.configFile": ".config/mocha.test-explorer.json"
"mochaExplorer.configFile": ".config/mocha.test-explorer.json",
"cSpell.words": ["cname", "tsbuildinfo", "tsdoc"]
}
88 changes: 87 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,91 @@
# Unreleased

### Breaking Changes

- Node 12 is no longer officially supported as it has gone end of life as of 2022-04-30. It might still work, but may stop working at any time.
- Dropped support for TypeScript before 4.6.
- `{@link}` tags in comments will now be resolved as declaration references similar to TSDoc's declaration references.
For most cases, this will just work. See [the documentation](https://typedoc.org/guides/link-resolution/) for details on how link resolution works.
- TypeDoc will now produce warnings for bracketed links (`[[ target ]]`). Use `{@link target}` instead. The `{@link}` syntax will be recognized by [TypeScript 4.3](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-4-3.html#editor-support-for-link-tags) and later and used to provide better intellisense. TypeDoc version 0.24.0 will remove support for `[[ target ]]` style links.
- `extends` in typedoc.json is now resolved using NodeJS module resolution, so a local path must begin with `./`.
- In the JSON output for `DeclarationReflection`s, `getSignature` is no longer a one-tuple.
- In the JSON output for `DeclarationReflection`s, `setSignature` is no longer a one-tuple.
- In the JSON output for `DeclarationReflection`s, `typeParameter` has been renamed to `typeParameters`
- The `searchGroupBoosts` option must now be given the rendered group name rather than reflection kind names, and can be given custom group names.
- `@inheritDoc` now follows the behavior specified by TSDoc when copying comments with a reference.
- The `gaSite` option has been removed since Google Analytics now infers the site automatically, updated Google Analytics script to latest version, #1846.
- Comments on export declarations will only overrides comments for references and namespaces, #1901.
- The deprecated `listInvalidSymbolLinks` option has been removed. Use `validation.invalidLink` instead.
- The deprecated `true` and `false` values have been removed from `--emit`, to migrate replace `true` with `"both"` and `false` with `"docs"` (the default).
- Links are no longer be resolved against a global list of all symbols. See [the documentation](https://typedoc.org/guides/link-resolution/) for details on link resolution.
- The `validation.invalidLink` option is now on by default.
- `reflection.decorates`, `reflection.decorators`, and their corresponding interfaces have been removed as no code in TypeDoc used them.
- The shape of the `Comment` class has changed significantly to support multiple tag kinds.
- Listeners to `Converter.EVENT_CREATE_TYPE_PARAMETER` and `Converter.EVENT_CREATE_DECLARATION` will now never be passed a `ts.Node` as their third argument.
- Constant variables which are interpreted as functions will no longer have the `ReflectionFlag.Const` flag set.
- `reflection.defaultValue` is no longer set for enum members. The same information is available on `reflection.type` with more precision.
- Removed deprecated `removeReaderByName`, `addDeclarations` and `removeDeclarationByName` methods on `Options`.
- Removed `ProjectReflection.directory`, it was unused by TypeDoc and not properly tested.
- Removed `ProjectReflection.files`, this was an internal cache that should not have been exposed, and shouldn't have existed in the first place, since removing it made TypeDoc faster.
- Removed `ReflectionGroup.kind` since groups can now be created with the `@group` tag.
- Removed `ReflectionKind.Event`, the `@event` tag is now an alias for `@group Events`. Note: This changes the value of `ReflectionKind.Reference` from `16777216` to `8388608`.
- Themes are now set on the document element rather than on body, #1706.

### Features

- TypeDoc now supports the `@group` tag to group reflections in a page. If no `@group` tag is specified, reflections will be grouped according to their kind, #1652.
- TypeDoc will now search for `typedoc.js(on)` in the `.config` folder in the current working directory.
- Entry point strategies `Resolve` and `Expand` may now specify globs, #1926.
- `typedoc.json` now supports comments like `tsconfig.json`.
- TypeDoc will now read the `blockTags`, `inlineTags`, and `modifierTags` out of `tsdoc.json` in the same directory as `tsconfig.json` if it exists.
It is recommended to add `"extends": ["typedoc/tsdoc.json"]`, which defines TypeDoc specific tags to your `tsdoc.json` if you create one.
- If an exported symbol has multiple declarations, TypeDoc will now check all appropriate declarations for comments, and warn if more than one declaration contains a comment, #1855.
- Improved support for JSDoc style `@example` tags. If the tag content does not include a code block, TypeDoc now follows VSCode's behavior of treating the entire block as a code block, #135.
- TypeDoc will now render members marked with `@deprecated` with a line through their name, #1381.
- Added new `commentStyle` option which can be used to control what comments TypeDoc will parse.

| Value | Behavior |
| ----- | -------------------------------------- |
| JSDoc | Use block comments starting with `/**` |
| Block | Use all block comments |
| Line | Use `//` comments |
| All | Use both block and line comments |

- TypeDoc will now warn if part of a comment will be overwritten due to use of `@inheritDoc` instead of silently dropping part of the comment.
- Added support for inline `@inheritDoc` tags, #1480.
- It is now possible to link directly to a specific overload, #1326.
- The JSON output will now include URLs to the file on the remote repository if possible.
- Added a new `visibilityFilters` option which controls the available filters on a page.
- TypeDoc will now try to place block elements on a new line in HTML output, resulting in less overwhelming diffs when rebuilding docs, #1923.
- Added `blockTags`, `inlineTags`, `modifierTags` to control which tags TypeDoc will allow when parsing comments.
If a tag not in in one of these options is encountered, TypeDoc will produce a warning and use context clues to determine how to parse the tag.

### Bug Fixes

- Fixed off by one error in warnings for types referenced but not included in the documentation.
- TypeDoc will no longer render a `Type Parameters` heading if there are no type parameters in some cases.
- Improved source location detection for constructors.
- Improved comment discovery on destructured exported functions, #1770.
- Links which refer to members within a reference reflection will now correctly resolve to the referenced reflection's member, #1770.
- Correctly detect optional parameters in JavaScript projects using JSDoc, #1804.
- Fixed identical anchor links for reflections with the same name, #1845.
- TypeDoc will now automatically inherit documentation from classes `implements` by other interfaces/classes.
- Fixed `@inheritDoc` on accessors, #1927.
- JS exports defined as `exports.foo = ...` will now be converted as variables rather than properties.
- `searchCategoryBoosts` are now correctly computed for all categories, #1960.
- The `excludeNotDocumented` option will no longer hide a module if it has a documentation comment, #1948.
- Prevent `--excludeNotDocumented` from hiding properties of type literals (`a` in `function fn(p: { a: string })`), #1752.
- Allow `cts` and `mts` extensions in packages resolution mode, #1952.
- Corrected schema generation for https://typedoc.org/schema.json

### Thanks!

- @aqumus
- @fb55
- @futurGH
- @Shane4368
- @shmax

## v0.22.18 (2022-06-25)

### Features
Expand Down Expand Up @@ -864,7 +950,7 @@
- Missing comments on variable functions, closes #1421
- Resolve type parameters in concrete subclasses
- Use entryPoints to search for readme
- Only create extra programs when dealing with solution style tsconfigs
- Only create extra programs when dealing with solution style tsconfig.json files
- A typo in description of DefaultTheme.getMapping (#1416)
- Correct handling of arrays in generic constraints, closes #1408
- Type converters threw on older TS versions
Expand Down
18 changes: 2 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,23 +79,17 @@ For a complete list of the command line arguments run `typedoc --help` or visit
Specifies the location the documentation should be written to. Defaults to `./docs`
- `--json <path/to/output.json>`<br>
Specifies the location and file name a json file describing the project is
written to. When specified no documentation will be generated.
written to. When specified no documentation will be generated unless `--out` is also
specified.
- `--options`<br>
Specify a json option file that should be loaded. If not specified TypeDoc
will look for 'typedoc.json' in the current directory.
- `--tsconfig <path/to/tsconfig.json>`<br>
Specify a typescript config file that should be loaded. If not
specified TypeDoc will look for 'tsconfig.json' in the current directory.

#### Source file handling

- `--exclude <pattern>`<br>
Exclude files by the given pattern when a path is provided as source.
Supports standard minimatch patterns.
- `--excludeNotDocumented`<br>
Only document items which have a doc comment. This option is useful, if you
want to document only small part of your symbols and do not show the
remaining ones in the documentation.

#### Theming

Expand All @@ -109,8 +103,6 @@ For a complete list of the command line arguments run `typedoc --help` or visit

#### Miscellaneous

- `--listInvalidSymbolLinks`<br>
Display the list of links that don't point to actual code symbols.
- `--version`<br>
Display the version number of TypeDoc.
- `--help`<br>
Expand All @@ -123,9 +115,3 @@ You can find TypeDoc on GitHub; feel free to open an issue or create a pull requ
https://github.com/TypeStrong/typedoc

For more information, read the [contribution guide](https://github.com/TypeStrong/typedoc/blob/master/.github/CONTRIBUTING.md).

## License

Copyright (c) 2015 [Sebastian Lenz](https://typedoc.org).<br>
Copyright (c) 2016-2021 [TypeDoc Contributors](https://github.com/TypeStrong/typedoc/graphs/contributors).<br>
Licensed under the Apache License 2.0.
2 changes: 1 addition & 1 deletion example/typedoc.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
"Model": 1.2
},
"searchGroupBoosts": {
"Class": 1.5
"Classes": 1.5
}
}
4 changes: 2 additions & 2 deletions internal-docs/custom-themes.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ class MyThemeContext extends DefaultThemeRenderContext {
// to destructure the context object to only grab what they care about.
override analytics = () => {
// Reusing existing option rather than declaring our own for brevity
if (!this.options.isSet("gaSite")) return;
if (!this.options.isSet("gaId")) return;

const site = this.options.getValue("gaSite");
const site = this.options.getValue("gaId");

const script = `
(function() {
Expand Down
Loading