pull/3711/head
Cagatay Civici 2023-03-08 11:35:25 +03:00
commit 447dc650bd
3 changed files with 42 additions and 2 deletions

40
.github/workflows/generate_api_doc.yml vendored Normal file
View File

@ -0,0 +1,40 @@
name: Generate API DOC
on:
push:
branches: [ master ]
paths:
- '**/**/*.d.ts'
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Install node packages
run: npm install
- name: Generate api doc
run: npm run apidoc
- name: Commit doc
run: |
git config user.name "GitHub Actions Bot"
git config user.email "<>"
git commit -a -m "Update API doc"
git push

View File

@ -32,7 +32,7 @@ export interface ButtonProps extends ButtonHTMLAttributes {
icon?: string | undefined; icon?: string | undefined;
/** /**
* Position of the icon. * Position of the icon.
* @defaultValue 'left' * @defaultValue left
*/ */
iconPos?: 'left' | 'right' | 'top' | 'bottom' | undefined; iconPos?: 'left' | 'right' | 'top' | 'bottom' | undefined;
/** /**

View File

@ -3629,7 +3629,7 @@
"optional": true, "optional": true,
"readonly": false, "readonly": false,
"type": "\"left\" | \"top\" | \"bottom\" | \"right\"", "type": "\"left\" | \"top\" | \"bottom\" | \"right\"",
"default": "'left'", "default": "left",
"description": "Position of the icon." "description": "Position of the icon."
}, },
{ {