Skip to content

Commit 09b535c

Browse files
committed
chore(docs): updated docs
1 parent 9934d0b commit 09b535c

File tree

18 files changed

+686
-89
lines changed

18 files changed

+686
-89
lines changed

devguide/docusaurus-plugin-typedoc/index/interfaces/PluginOptions.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,8 @@ Describes the options declared by the plugin.
9292
* [Inherited from](#inherited-from-31)
9393
* [useHTMLAnchors](#usehtmlanchors)
9494
* [Inherited from](#inherited-from-32)
95+
* [useHTMLEncodedBrackets](#usehtmlencodedbrackets)
96+
* [Inherited from](#inherited-from-33)
9597

9698
## Extends
9799

@@ -700,3 +702,19 @@ Add HTML named anchors to headings and table rows.
700702
#### Defined in
701703

702704
typedoc-plugin-markdown/dist/types/options.d.ts:151
705+
706+
***
707+
708+
### useHTMLEncodedBrackets
709+
710+
> **useHTMLEncodedBrackets**: `boolean`
711+
712+
Use HTML encoded entities for angle brackets.
713+
714+
#### Inherited from
715+
716+
[`PluginOptions`](../../../typedoc-plugin-markdown/types/interfaces/PluginOptions.md).[`useHTMLEncodedBrackets`](../../../typedoc-plugin-markdown/types/interfaces/PluginOptions.md#usehtmlencodedbrackets)
717+
718+
#### Defined in
719+
720+
typedoc-plugin-markdown/dist/types/options.d.ts:155

devguide/typedoc-plugin-markdown/libs/namespaces/utils/README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ General utility pure functions.
77
## Contents
88

99
* [camelToTitleCase()](#cameltotitlecase)
10+
* [encodeAngleBrackets()](#encodeanglebrackets)
1011
* [escapeChars()](#escapechars)
1112
* [formatMarkdown()](#formatmarkdown)
1213
* [formatTableCell()](#formattablecell)
@@ -40,6 +41,26 @@ General utility pure functions.
4041

4142
***
4243

44+
## encodeAngleBrackets()
45+
46+
> **encodeAngleBrackets**(`str`): `string`
47+
48+
### Parameters
49+
50+
| Parameter | Type |
51+
| --------- | -------- |
52+
| `str` | `string` |
53+
54+
### Returns
55+
56+
`string`
57+
58+
### Defined in
59+
60+
[packages/typedoc-plugin-markdown/src/libs/utils/encode-angle-brackets.ts:1](https://github.com/typedoc2md/typedoc-plugin-markdown/blob/main/packages/typedoc-plugin-markdown/src/libs/utils/encode-angle-brackets.ts#L1)
61+
62+
***
63+
4364
## escapeChars()
4465

4566
> **escapeChars**(`str`): `string`

devguide/typedoc-plugin-markdown/options/namespaces/declarations/README.md

Lines changed: 35 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ The JSDoc comments will also be used in the public facing documentation.
4040
* [sanitizeComments](#sanitizecomments)
4141
* [anchorPrefix](#anchorprefix)
4242
* [useHTMLAnchors](#usehtmlanchors)
43+
* [useHTMLEncodedBrackets](#usehtmlencodedbrackets)
4344
* [preserveAnchorCasing](#preserveanchorcasing)
4445
* [textContentMappings](#textcontentmappings)
4546
* [navigationModel](#navigationmodel)
@@ -201,7 +202,7 @@ Flattened output:
201202

202203
> `const` **fileExtension**: `Partial`\<[`DeclarationOption`](https://typedoc.org/api/types/Configuration.DeclarationOption.html)>
203204
204-
Typically markdown files are recognised by the `.md` or `.markdown` file extensions.`.mdx` maybe required for compatibility with certain markdown parsers.
205+
Typically Markdown files are recognised by the `.md` or `.markdown` file extensions.`.mdx` maybe required for compatibility with certain Markdown parsers.
205206

206207
#### Example
207208

@@ -562,7 +563,7 @@ When table style is selected the following will be the behaviour:
562563
This option specifies the output format for parameters and type parameters of functions and class methods:
563564

564565
* **"list"**: parameters are output as bullet points in a linear list, suitable for more detailed comments.
565-
* **"table"**: parameters are output within a markdown table, condensed into a single paragraph.
566+
* **"table"**: parameters are output within a Markdown table, condensed into a single paragraph.
566567
* **"htmlTable"**: parameters are output in an HTML table, enabling block elements to render in table cells.
567568

568569
#### Default Value
@@ -589,7 +590,7 @@ This option specifies the output format for parameters and type parameters of fu
589590
This option specifies the output format for interface properties:
590591

591592
* **"list"**: properties are output in linear blocks with headings, suitable for more detailed comments.
592-
* **"table"**: properties are output within a markdown table, condensed into a single paragraph.
593+
* **"table"**: properties are output within a Markdown table, condensed into a single paragraph.
593594
* **"htmlTable"**: properties are output in an HTML table, enabling block elements to render in tabular format.
594595

595596
#### Default Value
@@ -616,7 +617,7 @@ This option specifies the output format for interface properties:
616617
This option specifies the output format for class properties:
617618

618619
* **"list"**: properties are output in linear blocks with headings, suitable for more detailed comments.
619-
* **"table"**: properties are output within a markdown table, condensed into a single paragraph.
620+
* **"table"**: properties are output within a Markdown table, condensed into a single paragraph.
620621
* **"htmlTable"**: properties are output in an HTML table, enabling block elements to render in tabular format.
621622

622623
#### Default Value
@@ -643,7 +644,7 @@ This option specifies the output format for class properties:
643644
This option specifies the output format for enumeration members:
644645

645646
* **"list"**: members are output in linear blocks with headings, suitable for more detailed comments.
646-
* **"table"**: members are output within a markdown table, condensed into a single paragraph.
647+
* **"table"**: members are output within a Markdown table, condensed into a single paragraph.
647648
* **"htmlTable"**: members are output in an HTML table, enabling block elements to render in tabular format.
648649

649650
#### Default Value
@@ -670,7 +671,7 @@ This option specifies the output format for enumeration members:
670671
This option specifies the output format for type declaration of variables and type aliases.
671672

672673
* **"list"**: declarations are output in linear blocks with headings, suitable for more detailed comments.
673-
* **"table"**: declarations are output within a markdown table, condensed into a single paragraph.
674+
* **"table"**: declarations are output within a Markdown table, condensed into a single paragraph.
674675
* **"htmlTable"**: declarations are output in an HTML table, enabling block elements to render in tabular format.
675676

676677
#### Default Value
@@ -699,7 +700,7 @@ This option will handle the formatting of object literals assigned as properties
699700
Note this options will only take effect when `propertiesFormat` is set to `list`.
700701

701702
* **"list"**: members are output in linear blocks with headings, suitable for more detailed comments.
702-
* **"table"**: members are output within a markdown table, condensed into a single paragraph.
703+
* **"table"**: members are output within a Markdown table, condensed into a single paragraph.
703704
* **"htmlTable"**: members are output in an HTML table, enabling block elements to render in tabular format.
704705

705706
#### Default Value
@@ -849,7 +850,7 @@ This option should be used when parsers require a custom anchor prefix.
849850
850851
This option should be used if there are issues with anchoring to symbols within a page.
851852

852-
* For markdown parsers that do not automatically assign header ids.
853+
* For Markdown parsers that do not automatically assign header ids.
853854
* When cross referencing symbols that are referenced in a table row.
854855

855856
#### Default Value
@@ -868,6 +869,29 @@ This option should be used if there are issues with anchoring to symbols within
868869

869870
***
870871

872+
### useHTMLEncodedBrackets
873+
874+
> `const` **useHTMLEncodedBrackets**: `Partial`\<[`DeclarationOption`](https://typedoc.org/api/types/Configuration.DeclarationOption.html)>
875+
876+
By default, opening and closing angle brackets (`<` and `>`) are escaped using backslashes, and most modern Markdown processors handle them consistently.
877+
However, using HTML entities (`&lt;` and `&gt;`) might be preferable to avoid any inconsistencies across different Markdown processors.
878+
879+
#### Default Value
880+
881+
```ts
882+
{
883+
help: 'Use HTML encoded entities for angle brackets.',
884+
type: ParameterType.Boolean,
885+
defaultValue: false,
886+
}
887+
```
888+
889+
#### Defined in
890+
891+
[packages/typedoc-plugin-markdown/src/options/declarations.ts:559](https://github.com/typedoc2md/typedoc-plugin-markdown/blob/main/packages/typedoc-plugin-markdown/src/options/declarations.ts#L559)
892+
893+
***
894+
871895
### preserveAnchorCasing
872896

873897
> `const` **preserveAnchorCasing**: `Partial`\<[`DeclarationOption`](https://typedoc.org/api/types/Configuration.DeclarationOption.html)>
@@ -888,7 +912,7 @@ This option can be used for engines that require the preservation of anchor link
888912

889913
#### Defined in
890914

891-
[packages/typedoc-plugin-markdown/src/options/declarations.ts:560](https://github.com/typedoc2md/typedoc-plugin-markdown/blob/main/packages/typedoc-plugin-markdown/src/options/declarations.ts#L560)
915+
[packages/typedoc-plugin-markdown/src/options/declarations.ts:572](https://github.com/typedoc2md/typedoc-plugin-markdown/blob/main/packages/typedoc-plugin-markdown/src/options/declarations.ts#L572)
892916

893917
***
894918

@@ -929,7 +953,7 @@ If you are looking for general localization support please see [localization]().
929953

930954
#### Defined in
931955

932-
[packages/typedoc-plugin-markdown/src/options/declarations.ts:580](https://github.com/typedoc2md/typedoc-plugin-markdown/blob/main/packages/typedoc-plugin-markdown/src/options/declarations.ts#L580)
956+
[packages/typedoc-plugin-markdown/src/options/declarations.ts:592](https://github.com/typedoc2md/typedoc-plugin-markdown/blob/main/packages/typedoc-plugin-markdown/src/options/declarations.ts#L592)
933957

934958
***
935959

@@ -979,4 +1003,4 @@ export function load(app: MarkdownApplication) {
9791003

9801004
#### Defined in
9811005

982-
[packages/typedoc-plugin-markdown/src/options/declarations.ts:630](https://github.com/typedoc2md/typedoc-plugin-markdown/blob/main/packages/typedoc-plugin-markdown/src/options/declarations.ts#L630)
1006+
[packages/typedoc-plugin-markdown/src/options/declarations.ts:642](https://github.com/typedoc2md/typedoc-plugin-markdown/blob/main/packages/typedoc-plugin-markdown/src/options/declarations.ts#L642)

devguide/typedoc-plugin-markdown/theme/classes/MarkdownThemeContext.md

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ This class can be used to customize the theme output by extending the class and
9191
* [unionType()](#uniontype)
9292
* [unknownType()](#unknowntype)
9393
* [helpers](#helpers)
94+
* [getAngleBracket()](#getanglebracket)
9495
* [getCommentParts()](#getcommentparts)
9596
* [getDeclarationType()](#getdeclarationtype)
9697
* [getDescriptionForReflection()](#getdescriptionforreflection)
@@ -1277,6 +1278,20 @@ Please note that partials:
12771278
* Can reference other helpers but should not reference partials.
12781279
* Can return strings or other models.
12791280

1281+
#### getAngleBracket()
1282+
1283+
> **getAngleBracket**: (`bracket`) => `string`
1284+
1285+
##### Parameters
1286+
1287+
| Parameter | Type |
1288+
| --------- | -------------- |
1289+
| `bracket` | `"<"` \| `">"` |
1290+
1291+
##### Returns
1292+
1293+
`string`
1294+
12801295
#### getCommentParts()
12811296

12821297
> **getCommentParts**: (`model`) => `string`
@@ -1351,14 +1366,13 @@ Please note that partials:
13511366

13521367
#### getGroupIndexTable()
13531368

1354-
> **getGroupIndexTable**: (`children`, `kind`?) => `string`
1369+
> **getGroupIndexTable**: (`children`) => `string`
13551370
13561371
##### Parameters
13571372

13581373
| Parameter | Type |
13591374
| ---------- | -------------------------------------------------------------------------------------------------------------------------- |
13601375
| `children` | `DocumentReflection`\[] \| [`DeclarationReflection`](https://typedoc.org/api/classes/Models.DeclarationReflection.html)\[] |
1361-
| `kind`? | [`ReflectionKind`](https://typedoc.org/api/enums/Models.ReflectionKind-1.html) |
13621376

13631377
##### Returns
13641378

devguide/typedoc-plugin-markdown/types/interfaces/PluginOptions.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ Describes the options declared by the plugin.
5757
* [typeDeclarationFormat](#typedeclarationformat)
5858
* [useCodeBlocks](#usecodeblocks)
5959
* [useHTMLAnchors](#usehtmlanchors)
60+
* [useHTMLEncodedBrackets](#usehtmlencodedbrackets)
6061

6162
## Extended by
6263

@@ -509,3 +510,15 @@ Add HTML named anchors to headings and table rows.
509510
#### Defined in
510511

511512
[packages/typedoc-plugin-markdown/src/types/options.ts:192](https://github.com/typedoc2md/typedoc-plugin-markdown/blob/main/packages/typedoc-plugin-markdown/src/types/options.ts#L192)
513+
514+
***
515+
516+
### useHTMLEncodedBrackets
517+
518+
> **useHTMLEncodedBrackets**: `boolean`
519+
520+
Use HTML encoded entities for angle brackets.
521+
522+
#### Defined in
523+
524+
[packages/typedoc-plugin-markdown/src/types/options.ts:197](https://github.com/typedoc2md/typedoc-plugin-markdown/blob/main/packages/typedoc-plugin-markdown/src/types/options.ts#L197)

docs/global.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,13 @@
99
.nextra-toc a[href^='#overrides'],
1010
.nextra-toc a[href^='#see'],
1111
.nextra-toc a[href^='#example'],
12+
.nextra-toc a[href^='#new-features'],
13+
.nextra-toc a[href^='#bug-fixes'],
14+
.nextra-toc a[href^='#patch-changes'],
15+
.nextra-toc a[href^='#non-breaking-changes'],
16+
.nextra-toc a[href^='#architectural-changes'],
17+
.nextra-toc a[href^='#structural-changes'],
18+
.nextra-toc a[href^='#breaking-changes'],
1219
.nextra-toc a[href^='#deprecated'] {
1320
display: none;
1421
}

0 commit comments

Comments
 (0)