Skip to content

Commit

Permalink
feat: Better doc generation (#143)
Browse files Browse the repository at this point in the history
  • Loading branch information
taorepoara authored Feb 16, 2023
1 parent a8750d4 commit 1cb8968
Show file tree
Hide file tree
Showing 103 changed files with 1,681 additions and 3,464 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/build_doc_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Build doc CI
on:
pull_request:
types:
- opened
- edited
- synchronize

jobs:
test:
runs-on: ubuntu-22.04
defaults:
run:
working-directory: ./docs
steps:
- uses: actions/checkout@v3
with:
submodules: true
- uses: actions/setup-node@v3
with:
node-version: 18
- run: npm i
- run: npm run build
2 changes: 1 addition & 1 deletion api/component.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"$schema": "https://raw.githubusercontent.com/lenra-io/ex_component_schema/beta/priv/static/draft-lenra.json",
"$id": "component.schema.json",
"title": "Component",
"description": "The component abstract type",
"description": "Any component",
"oneOf": [
{
"$ref": "components/actionable.schema.json"
Expand Down
4 changes: 2 additions & 2 deletions api/components/button.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@
"$ref": "../defs/listener.schema.json"
},
"leftIcon": {
"$ref": "icon.schema.json"
"$ref": "../components/icon.schema.json"
},
"rightIcon": {
"$ref": "icon.schema.json"
"$ref": "../components/icon.schema.json"
},
"submit": {
"description": "Whether the button is a submit button for a form.",
Expand Down
2 changes: 1 addition & 1 deletion api/components/dropdownButton.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"$ref": "../component.schema.json"
},
"icon": {
"$ref": "icon.schema.json"
"$ref": "../components/icon.schema.json"
}
},
"required": [
Expand Down
18 changes: 17 additions & 1 deletion api/components/icon.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,23 @@
},
"value": {
"description": "The value of the Icon",
"$ref": "../defs/iconData.schema.json"
"$ref": "../defs/iconName.schema.json"
},
"style": {
"$ref": "#/definitions/iconStyle"
}
},
"definitions": {
"iconStyle": {
"type": "string",
"description": "The style of the Icon",
"enum": [
"filled",
"sharp",
"rounded",
"outlined"
],
"default": "filled"
}
}
}
2 changes: 1 addition & 1 deletion api/components/menuItem.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"default": false
},
"icon": {
"$ref": "icon.schema.json"
"$ref": "../components/icon.schema.json"
},
"onPressed": {
"$ref": "../defs/listener.schema.json"
Expand Down
8 changes: 0 additions & 8 deletions api/defs/action.schema.json

This file was deleted.

2 changes: 1 addition & 1 deletion api/defs/flexFit.schema.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "https://raw.githubusercontent.com/lenra-io/ex_component_schema/beta/priv/static/draft-lenra.json",
"$id": "defs/flexFit.schema.json",
"title": "flexFit",
"title": "FlexFit",
"description": "How a flexible child is inscribed into the available space.",
"type": "string",
"enum": [
Expand Down
Loading

0 comments on commit 1cb8968

Please sign in to comment.