Skip to content

Commit

Permalink
feat(core): improve parameter and type declaration listings
Browse files Browse the repository at this point in the history
  • Loading branch information
tgreyuk committed Nov 26, 2024
1 parent 1d33b64 commit b323a8a
Show file tree
Hide file tree
Showing 59 changed files with 7,383 additions and 2,722 deletions.
2 changes: 1 addition & 1 deletion .changeset/big-teachers-shave.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
---

- Implemented typedoc 0.27 compatibility support.
- Exposed "typeDeclarationFormat=source" option that prints the symbol directly from ts compiler inside a code block (#703).
- Exposed "typeDeclarationVisibility" option to provide a compacted output structure (#703).
- The "textContentMappings" option now accepts a string with placeholder or a function with arguments (#693, #715).
7 changes: 4 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: CI
on:
push:
paths:
- '.github/workflows/ci.yml'
- 'packages/typedoc-plugin-markdown/**'
- '!packages/typedoc-plugin-markdown/README.md'
- '!packages/typedoc-plugin-markdown/CHANGELOG.md'
Expand All @@ -17,17 +18,17 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node: ['18']
node: ['20']
name: Node ${{ matrix.node }}
steps:
- name: Set Swap Space
uses: pierotofy/set-swap-space@master
with:
swap-size-gb: 10
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Set up Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
cache: 'npm'
Expand Down
2 changes: 1 addition & 1 deletion devtools/packages/fixtures/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ async function main() {
const outputFileStrategies: ('members' | 'modules')[] =
config.outputFileStrategies || ['members', 'modules'];

writeHtml(key, config.entryPoints);
//writeHtml(key, config.entryPoints);
outputFileStrategies.forEach((outputFileStrategy) => {
config.options.forEach((optionGroup, index: number) => {
const options = {
Expand Down
1 change: 1 addition & 0 deletions docs/pages/docs/options.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ Options that are used to configure how the output is structured and displayed.
- [--classPropertiesFormat](./options/display-options.mdx#--classpropertiesformat)
- [--enumMembersFormat](./options/display-options.mdx#--enummembersformat)
- [--typeDeclarationFormat](./options/display-options.mdx#--typedeclarationformat)
- [--typeDeclarationVisibility](./options/display-options.mdx#--typedeclarationvisibility)
- [--propertyMembersFormat](./options/display-options.mdx#--propertymembersformat)
- [--tableColumnSettings](./options/display-options.mdx#--tablecolumnsettings)

Expand Down
21 changes: 20 additions & 1 deletion docs/pages/docs/options/display-options.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ This option specifies the output format for enumeration members:
Sets the format of style for type declaration members.
</Callout>

> Accepts one of `"list"` | `"source"` | `"table"` | `"htmlTable"`. Defaults to `"list"`.
> Accepts one of `"list"` | `"table"` | `"htmlTable"`. Defaults to `"list"`.
This option specifies the output format for type declaration of variables and type aliases.

Expand All @@ -246,6 +246,25 @@ This option specifies the output format for type declaration of variables and ty
}
```

## --typeDeclarationVisibility

<Callout emoji="💡">
Set the visibility level for type declaration documentation.
</Callout>

> Accepts either `"compact"` or `"expanded"`. Defaults to `"expanded"`.
Configures the visibility level for type declaration documentation.

- **"expanded"**: Displays all available documentation as text, including nested type declarations.
- **"compact"**: Omits separate documentation blocks for nested type declarations.

```json filename="typedoc.json"
{
"typeDeclarationVisibility": "expanded"
}
```

## --propertyMembersFormat

<Callout emoji="💡">
Expand Down
Loading

0 comments on commit b323a8a

Please sign in to comment.