mirror of
https://github.com/grafana/grafana.git
synced 2025-08-01 08:13:47 +08:00
Docs: generate packages docs before syncing to website (#27879)
* updated to latest version of api-documenter. * saved lockfile after upgrade. * adding yarn to docker environment. * adding packages to trigger paths. * added steps to workflow for generating docs. * reverted back to api-documenter 0.9.3
This commit is contained in:
8
.github/workflows/publish.yml
vendored
8
.github/workflows/publish.yml
vendored
@ -6,6 +6,7 @@ on:
|
|||||||
- master
|
- master
|
||||||
paths:
|
paths:
|
||||||
- 'docs/sources/**'
|
- 'docs/sources/**'
|
||||||
|
- 'packages/grafana-*/**'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
@ -14,6 +15,13 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v1
|
||||||
|
- name: generate-packages-docs
|
||||||
|
uses: actions/setup-node@v1
|
||||||
|
id: generate-docs
|
||||||
|
with:
|
||||||
|
node-version: '12'
|
||||||
|
- run: yarn install --pure-lockfile --no-progress
|
||||||
|
- run: ./scripts/ci-reference-docs-build.sh
|
||||||
- name: publish-to-git
|
- name: publish-to-git
|
||||||
uses: ./.github/actions/gha-publish-to-git
|
uses: ./.github/actions/gha-publish-to-git
|
||||||
id: publish
|
id: publish
|
||||||
|
@ -75,6 +75,7 @@
|
|||||||
"@emotion/core": "10.0.27",
|
"@emotion/core": "10.0.27",
|
||||||
"@grafana/api-documenter": "0.9.3",
|
"@grafana/api-documenter": "0.9.3",
|
||||||
"@grafana/eslint-config": "2.0.3",
|
"@grafana/eslint-config": "2.0.3",
|
||||||
|
"@grafana/api-extractor": "7.10.1",
|
||||||
"@rtsao/plugin-proposal-class-properties": "7.0.1-patch.1",
|
"@rtsao/plugin-proposal-class-properties": "7.0.1-patch.1",
|
||||||
"@testing-library/jest-dom": "^5.11.3",
|
"@testing-library/jest-dom": "^5.11.3",
|
||||||
"@testing-library/react": "^10.4.8",
|
"@testing-library/react": "^10.4.8",
|
||||||
@ -205,7 +206,6 @@
|
|||||||
"zone.js": "0.7.8"
|
"zone.js": "0.7.8"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@grafana/api-extractor": "7.10.1",
|
|
||||||
"@grafana/slate-react": "0.22.9-grafana",
|
"@grafana/slate-react": "0.22.9-grafana",
|
||||||
"@reduxjs/toolkit": "1.3.4",
|
"@reduxjs/toolkit": "1.3.4",
|
||||||
"@torkelo/react-select": "3.0.8",
|
"@torkelo/react-select": "3.0.8",
|
||||||
|
Reference in New Issue
Block a user