diff --git a/.github/workflows/publish-technical-documentation-release.yml b/.github/workflows/publish-technical-documentation-release.yml index 69fafd1d0e8..c4d95a8e111 100644 --- a/.github/workflows/publish-technical-documentation-release.yml +++ b/.github/workflows/publish-technical-documentation-release.yml @@ -36,6 +36,27 @@ jobs: release_tag_regexp: "^v(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)$" release_branch_regexp: "^v(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.x$" + - name: "Generate packages_api docs" + uses: "actions/setup-node@v3.2.0" + id: "generate-packages_api-docs" + with: + node-version: '16' + + - name: "Get yarn cache directory path" + id: "yarn-cache-dir-path" + run: "echo ::set-output name=dir::$(yarn config get cacheFolder)" + + - uses: "actions/cache@v2.1.7" + with: + path: "${{ steps.yarn-cache-dir-path.outputs.dir }}" + key: "yarn-${{ hashFiles('**/yarn.lock') }}" + restore-keys: | + yarn- + + - run: "yarn install --immutable" + + - run: "./scripts/ci-reference-docs-build.sh" + - name: "Determine technical documentation version" if: "steps.has-matching-release-tag.outputs.bool == 'true'" uses: "./actions/docs-target" diff --git a/docs/sources/alerting/unified-alerting/_index.md b/docs/sources/alerting/unified-alerting/_index.md index da9314e368d..0057a54a40e 100644 --- a/docs/sources/alerting/unified-alerting/_index.md +++ b/docs/sources/alerting/unified-alerting/_index.md @@ -9,7 +9,7 @@ weight: 113 Grafana 8.0 has new and improved alerting that centralizes alerting information in a single, searchable view. It is enabled by default for all new OSS instances, and is an [opt-in]({{< relref "./opt-in.md" >}}) feature for older installations that still use legacy dashboard alerting. We encourage you to create issues in the Grafana GitHub repository for bugs found while testing Grafana alerting. See also, [What's New with Grafana alerting]({{< relref "./difference-old-new.md" >}}). -> Refer to [Fine-grained access control]({{< relref "../enterprise/access-control/_index.md" >}}) in Grafana Enterprise to learn more about controlling access to alerts using fine-grained permissions. +> Refer to [Fine-grained access control]({{< relref "../../enterprise/access-control" >}}) in Grafana Enterprise to learn more about controlling access to alerts using fine-grained permissions. When Grafana alerting is enabled, you can: diff --git a/docs/sources/dashboards/_index.md b/docs/sources/dashboards/_index.md index 21e0bf20a3c..c3f4e9453a5 100644 --- a/docs/sources/dashboards/_index.md +++ b/docs/sources/dashboards/_index.md @@ -14,7 +14,7 @@ Dashboard snapshots are static . Queries and expressions cannot be re-executed f Before you begin, ensure that you have configured a data source. See also: - [Working with Grafana dashboard UI]({{< relref "./dashboard-ui/_index.md" >}}) -- [Dashboard folders]({{< relref "./dashboard-folders.md" >}}) +- [Dashboard folders]({{< relref "./dashboard_folders" >}}) - [Create dashboard]({{< relref "./dashboard-create" >}}) - [Manage dashboards]({{< relref "./dashboard-manage.md" >}}) - [Annotations]({{< relref "./annotations.md" >}}) @@ -23,7 +23,7 @@ Before you begin, ensure that you have configured a data source. See also: - [Keyboard shortcuts]({{< relref "./shortcuts.md" >}}) - [Reporting]({{< relref "./reporting.md" >}}) - [Time range controls]({{< relref "./time-range-controls.md" >}}) -- [Dashboard version history]({{< relref "./dashboard-history.md" >}}) +- [Dashboard version history]({{< relref "./dashboard_history" >}}) - [Dashboard export and import]({{< relref "./export-import.md" >}}) - [Dashboard JSON model]({{< relref "./json-model.md" >}}) - [Scripted dashboards]({{< relref "./scripted-dashboards.md" >}}) diff --git a/docs/sources/release-notes/_index.md b/docs/sources/release-notes/_index.md index 21cf3beec0e..dfdfc48735f 100644 --- a/docs/sources/release-notes/_index.md +++ b/docs/sources/release-notes/_index.md @@ -9,7 +9,6 @@ Here you can find detailed release notes that list everything that is included i about deprecations, breaking changes as well as changes that relate to plugin development. - [Release notes for 8.5.13]({{< relref "release-notes-8-5-13" >}}) -- [Release notes for 8.5.11]({{< relref "release-notes-8-5-11" >}}) - [Release notes for 8.5.10]({{< relref "release-notes-8-5-10" >}}) - [Release notes for 8.5.9]({{< relref "release-notes-8-5-9" >}}) - [Release notes for 8.5.6]({{< relref "release-notes-8-5-6" >}}) @@ -20,7 +19,6 @@ about deprecations, breaking changes as well as changes that relate to plugin de - [Release notes for 8.5.1]({{< relref "release-notes-8-5-1" >}}) - [Release notes for 8.5.0]({{< relref "release-notes-8-5-0" >}}) - [Release notes for 8.5.0-beta1]({{< relref "release-notes-8-5-0-beta1" >}}) -- [Release notes for 8.4.10]({{< relref "release-notes-8-4-10" >}}) - [Release notes for 8.4.7]({{< relref "release-notes-8-4-7" >}}) - [Release notes for 8.4.6]({{< relref "release-notes-8-4-6" >}}) - [Release notes for 8.4.5]({{< relref "release-notes-8-4-5" >}}) diff --git a/pkg/tests/api/alerting/api_alertmanager_test.go b/pkg/tests/api/alerting/api_alertmanager_test.go index 6a0b6c68c47..31abcd983d8 100644 --- a/pkg/tests/api/alerting/api_alertmanager_test.go +++ b/pkg/tests/api/alerting/api_alertmanager_test.go @@ -204,7 +204,8 @@ func TestAMConfigAccess(t *testing.T) { }) t.Run("when creating silence", func(t *testing.T) { - body := ` + now := time.Now() + body := fmt.Sprintf(` { "comment": "string", "createdBy": "string", @@ -216,9 +217,10 @@ func TestAMConfigAccess(t *testing.T) { "value": "string" } ], - "startsAt": "2021-03-31T13:17:04.419Z" + "startsAt": "%s", + "endsAt": "%s" } - ` + `, now.Format(time.RFC3339), now.Add(10*time.Second).Format(time.RFC3339)) testCases := []testCase{ {