Skip to content

Commit af3bf8f

Browse files
authored
docs: use typedoc-plugin-md to generate markdown files (#151)
1 parent 3d8c36d commit af3bf8f

File tree

24 files changed

+2620
-997
lines changed

24 files changed

+2620
-997
lines changed

.changeset/config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@
77
"access": "public",
88
"baseBranch": "master",
99
"updateInternalDependencies": "patch",
10-
"ignore": ["aria-ui-typedoc-plugin", "aria-ui-website"]
10+
"ignore": ["aria-ui-website"]
1111
}

config/typedoc-base.json

Lines changed: 2 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
// https://typedoc.org/options/
22
{
33
"$schema": "https://typedoc.org/schema.json",
4-
"plugin": ["typedoc-plugin-markdown", "aria-ui-typedoc-plugin"],
5-
"theme": "custom-theme",
4+
"plugin": ["typedoc-plugin-md"],
65
"githubPages": false,
76
"treatWarningsAsErrors": true,
87
"cleanOutputDir": true,
@@ -35,26 +34,5 @@
3534
"@beta": false
3635
},
3736

38-
"readme": "none",
39-
40-
// https://www.typedoc-plugin-markdown.org/docs/options
41-
"hideBreadcrumbs": true,
42-
"hidePageHeader": true,
43-
"enumMembersFormat": "table",
44-
"propertiesFormat": "table",
45-
"outputFileStrategy": "modules",
46-
"useCodeBlocks": true,
47-
"expandParameters": true,
48-
"textContentMappings": {
49-
"kind.typeParameter.plural": "TYPEDOC_REMOVE_PLACEHOLDER",
50-
"kind.constructor.plural": "TYPEDOC_REMOVE_PLACEHOLDER",
51-
"kind.property.plural": "TYPEDOC_REMOVE_PLACEHOLDER"
52-
},
53-
"tableColumnSettings": {
54-
"hideDefaults": false,
55-
"hideInherited": true,
56-
"hideOverrides": true,
57-
"hideSources": true,
58-
"hideValues": false
59-
}
37+
"readme": "none"
6038
}

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
"@testing-library/dom": "^10.4.0",
3434
"@testing-library/jest-dom": "^6.5.0",
3535
"@types/bun": "^1.1.8",
36-
"aria-ui-typedoc-plugin": "workspace:*",
3736
"change-case": "5.4.4",
3837
"comment-json": "4.2.5",
3938
"eslint": "^9.9.1",
@@ -44,7 +43,7 @@
4443
"prettier-plugin-astro": "^0.14.1",
4544
"turbo": "2.1.1",
4645
"typedoc": "0.26.7",
47-
"typedoc-plugin-markdown": "4.2.8",
46+
"typedoc-plugin-md": "^0.1.0",
4847
"typescript": "^5.5.4",
4948
"vitest": "^2.0.5"
5049
},

packages/collection/README.md

Lines changed: 93 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,93 +1,147 @@
11
# @aria-ui/collection
22

3-
## Classes
3+
## API
44

5-
### Collection
5+
### Collection <a id="collection" href="#collection">#</a>
66

7-
#### Constructors
7+
<dl>
8+
9+
<dt>
10+
11+
`constructor`
12+
13+
</dt>
14+
15+
<dd>
816

917
```ts
10-
new Collection(items: Iterable<HTMLElement>, loop: boolean): Collection
18+
new Collection(items: Iterable<HTMLElement>, loop: boolean)
1119
```
1220

13-
#### Properties
21+
</dd>
1422

15-
| Property | Modifier | Type | Default value |
16-
| -------- | ---------- | --------- | ------------- |
17-
| `loop` | `readonly` | `boolean` | `true` |
23+
<dt>
1824

19-
#### Methods
25+
`loop`
2026

21-
##### first()
27+
</dt>
2228

23-
```ts
24-
first(): null | string
25-
```
29+
<dd>
30+
31+
**Type**: `boolean`
32+
33+
</dd>
34+
35+
<dt>
2636

27-
Returns the first enabled value.
37+
`first`
2838

29-
##### getElement()
39+
</dt>
40+
41+
<dd>
3042

3143
```ts
32-
getElement(value: string): null | HTMLElement
44+
const first: () => null | string;
3345
```
3446

35-
Finds an element from its value.
47+
</dd>
48+
49+
<dt>
50+
51+
`getElement`
3652

37-
##### getValues()
53+
</dt>
54+
55+
<dd>
3856

3957
```ts
40-
getValues(): string[]
58+
const getElement: (value: string) => null | HTMLElement;
4159
```
4260

43-
Returns all values.
61+
</dd>
62+
63+
<dt>
4464

45-
##### last()
65+
`getValues`
66+
67+
</dt>
68+
69+
<dd>
4670

4771
```ts
48-
last(): null | string
72+
const getValues: () => string[];
4973
```
5074

51-
Returns the last enabled value.
75+
</dd>
76+
77+
<dt>
78+
79+
`last`
5280

53-
##### next()
81+
</dt>
82+
83+
<dd>
5484

5585
```ts
56-
next(value: null | string): null | string
86+
const last: () => null | string;
5787
```
5888

59-
Returns the next enabled value.
89+
</dd>
90+
91+
<dt>
92+
93+
`next`
6094

61-
##### prev()
95+
</dt>
96+
97+
<dd>
6298

6399
```ts
64-
prev(value: null | string): null | string
100+
const next: (value: null | string) => null | string;
65101
```
66102

67-
Returns the previous enabled value.
103+
</dd>
104+
105+
<dt>
68106

69-
##### size()
107+
`prev`
108+
109+
</dt>
110+
111+
<dd>
70112

71113
```ts
72-
size(): number
114+
const prev: (value: null | string) => null | string;
73115
```
74116

75-
## Type Aliases
117+
</dd>
118+
119+
<dt>
120+
121+
`size`
76122

77-
### ItemFilter()
123+
</dt>
124+
125+
<dd>
78126

79127
```ts
80-
type ItemFilter: (options: object) => boolean;
128+
const size: () => number;
81129
```
82130

131+
</dd>
132+
133+
</dl>
134+
135+
### ItemFilter <a id="item-filter" href="#item-filter">#</a>
136+
83137
The filter function to determine if an item should be shown in the collection.
84138

85-
## Functions
139+
**Type**: `(options: Object) => boolean`
86140

87-
### defaultItemFilter()
141+
### defaultItemFilter <a id="default-item-filter" href="#default-item-filter">#</a>
142+
143+
A simple case-insensitive substring match filter.
88144

89145
```ts
90-
function defaultItemFilter(options: object): boolean;
146+
function defaultItemFilter(options: Object): boolean;
91147
```
92-
93-
A simple case-insensitive substring match filter.

0 commit comments

Comments
 (0)