fix: Fix docs issue and add echarts to github actions cdn.

This commit is contained in:
Gervwyk 2021-03-24 13:17:39 +02:00
parent 7f7d8de93c
commit 7509914051
2 changed files with 14 additions and 2 deletions

View File

@ -50,3 +50,9 @@ jobs:
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_S3_BLOCKS_CDN_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_S3_BLOCKS_CDN_SECRET_ACCESS_KEY }}
- name: Upload blocks-cdn.lowdefy.com/blocks-echarts
run: |
aws --region eu-west-1 s3 sync packages/blocks/blocksECharts/dist s3://blocks-cdn.lowdefy.com/${{ github.event.release.tag_name }}/blocks-echarts --acl public-read --cache-control 'public, max-age=31536000'
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_S3_BLOCKS_CDN_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_S3_BLOCKS_CDN_SECRET_ACCESS_KEY }}

View File

@ -28,12 +28,18 @@
"width": {
"type": ["number", "string"],
"default": "auto",
"description": "Specify chart width explicitly, in pixel."
"description": "Specify chart width explicitly, in pixel.",
"docs": {
"displayType": "string"
}
},
"height": {
"type": ["number", "string"],
"default": "auto",
"description": "Specify chart height explicitly, in pixel."
"description": "Specify chart height explicitly, in pixel.",
"docs": {
"displayType": "string"
}
},
"init": {
"type": "object",