Skip to content

Commit 5dff24e

Browse files
committed
docs: generate API reference docs from TS packages
1 parent 9859832 commit 5dff24e

File tree

398 files changed

+12388
-15
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

398 files changed

+12388
-15
lines changed

.github/workflows/ci.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ jobs:
3030
filters: |
3131
docs:
3232
- 'docs/**'
33+
- 'packages/**'
3334
app-kit:
3435
- '!docs/**'
3536
@@ -96,4 +97,23 @@ jobs:
9697
run: pnpm install --frozen-lockfile
9798
- name: Build Docs
9899
run: pnpm run docs:build
100+
- name: Lint Generated Docs
101+
run: pnpm run docs:lint
102+
- name: Format Generated Docs
103+
run: pnpm run docs:format
104+
- name: Check for uncommitted docs changes
105+
run: |
106+
if ! git diff --exit-code docs/docs/api/; then
107+
echo "❌ Error: Generated docs are out of sync with the codebase."
108+
echo ""
109+
echo "The API documentation in docs/docs/api/ has changes after running docs:generate."
110+
echo "This means the committed docs don't match the current package code."
111+
echo ""
112+
echo "To fix this:"
113+
echo " 1. Run: pnpm docs:build"
114+
echo " 2. Run: pnpm docs:format"
115+
echo " 3. Review and commit the changes"
116+
echo ""
117+
exit 1
118+
fi
99119

biome.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
"!**/coverage",
1616
"!packages/app-kit-ui/src/react/ui",
1717
"!**/routeTree.gen.ts",
18-
"!docs/.docusaurus"
18+
"!docs/.docusaurus",
19+
"!**/typedoc-sidebar.ts"
1920
]
2021
},
2122
"formatter": {
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Function: Accordion()
2+
3+
```ts
4+
function Accordion(__namedParameters): Element;
5+
```
6+
7+
Defined in: [packages/app-kit-ui/src/react/ui/accordion.tsx:7](https://github.com/databricks/app-kit/blob/main/packages/app-kit-ui/src/react/ui/accordion.tsx#L7)
8+
9+
## Parameters
10+
11+
| Parameter | Type |
12+
| ------ | ------ |
13+
| `__namedParameters` | `AccordionSingleProps` \| `AccordionMultipleProps` & `RefAttributes`\<`HTMLDivElement`\> |
14+
15+
## Returns
16+
17+
`Element`
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Function: AccordionContent()
2+
3+
```ts
4+
function AccordionContent(__namedParameters): Element;
5+
```
6+
7+
Defined in: [packages/app-kit-ui/src/react/ui/accordion.tsx:48](https://github.com/databricks/app-kit/blob/main/packages/app-kit-ui/src/react/ui/accordion.tsx#L48)
8+
9+
## Parameters
10+
11+
| Parameter | Type |
12+
| ------ | ------ |
13+
| `__namedParameters` | `AccordionContentProps` & `RefAttributes`\<`HTMLDivElement`\> |
14+
15+
## Returns
16+
17+
`Element`
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Function: AccordionItem()
2+
3+
```ts
4+
function AccordionItem(__namedParameters): Element;
5+
```
6+
7+
Defined in: [packages/app-kit-ui/src/react/ui/accordion.tsx:13](https://github.com/databricks/app-kit/blob/main/packages/app-kit-ui/src/react/ui/accordion.tsx#L13)
8+
9+
## Parameters
10+
11+
| Parameter | Type |
12+
| ------ | ------ |
13+
| `__namedParameters` | `AccordionItemProps` & `RefAttributes`\<`HTMLDivElement`\> |
14+
15+
## Returns
16+
17+
`Element`
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Function: AccordionTrigger()
2+
3+
```ts
4+
function AccordionTrigger(__namedParameters): Element;
5+
```
6+
7+
Defined in: [packages/app-kit-ui/src/react/ui/accordion.tsx:26](https://github.com/databricks/app-kit/blob/main/packages/app-kit-ui/src/react/ui/accordion.tsx#L26)
8+
9+
## Parameters
10+
11+
| Parameter | Type |
12+
| ------ | ------ |
13+
| `__namedParameters` | `AccordionTriggerProps` & `RefAttributes`\<`HTMLButtonElement`\> |
14+
15+
## Returns
16+
17+
`Element`
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Function: Alert()
2+
3+
```ts
4+
function Alert(__namedParameters): Element;
5+
```
6+
7+
Defined in: [packages/app-kit-ui/src/react/ui/alert.tsx:22](https://github.com/databricks/app-kit/blob/main/packages/app-kit-ui/src/react/ui/alert.tsx#L22)
8+
9+
## Parameters
10+
11+
| Parameter | Type |
12+
| ------ | ------ |
13+
| `__namedParameters` | `ClassAttributes`\<`HTMLDivElement`\> & `HTMLAttributes`\<`HTMLDivElement`\> & `VariantProps`\<(`props?`) => `string`\> |
14+
15+
## Returns
16+
17+
`Element`
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Function: AlertDescription()
2+
3+
```ts
4+
function AlertDescription(__namedParameters): Element;
5+
```
6+
7+
Defined in: [packages/app-kit-ui/src/react/ui/alert.tsx:50](https://github.com/databricks/app-kit/blob/main/packages/app-kit-ui/src/react/ui/alert.tsx#L50)
8+
9+
## Parameters
10+
11+
| Parameter | Type |
12+
| ------ | ------ |
13+
| `__namedParameters` | `DetailedHTMLProps`\<`HTMLAttributes`\<`HTMLDivElement`\>\> |
14+
15+
## Returns
16+
17+
`Element`
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Function: AlertDialog()
2+
3+
```ts
4+
function AlertDialog(__namedParameters): Element;
5+
```
6+
7+
Defined in: [packages/app-kit-ui/src/react/ui/alert-dialog.tsx:7](https://github.com/databricks/app-kit/blob/main/packages/app-kit-ui/src/react/ui/alert-dialog.tsx#L7)
8+
9+
## Parameters
10+
11+
| Parameter | Type |
12+
| ------ | ------ |
13+
| `__namedParameters` | `AlertDialogProps` |
14+
15+
## Returns
16+
17+
`Element`
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Function: AlertDialogAction()
2+
3+
```ts
4+
function AlertDialogAction(__namedParameters): Element;
5+
```
6+
7+
Defined in: [packages/app-kit-ui/src/react/ui/alert-dialog.tsx:119](https://github.com/databricks/app-kit/blob/main/packages/app-kit-ui/src/react/ui/alert-dialog.tsx#L119)
8+
9+
## Parameters
10+
11+
| Parameter | Type |
12+
| ------ | ------ |
13+
| `__namedParameters` | `AlertDialogActionProps` & `RefAttributes`\<`HTMLButtonElement`\> |
14+
15+
## Returns
16+
17+
`Element`

0 commit comments

Comments
 (0)