Use relative aliases for all non-current Grafana aliases (#60062)

* Use relative aliases for all non-current Grafana aliases

Prevents non-latest documentation "stealing" the page away from latest
and through permanent redirects for latest pages that no longer exist.

The redirected pages are indexed by search engines but our robots.txt
forbids them crawling the non-latest page.

Signed-off-by: Jack Baldry <jack.baldry@grafana.com>

* Remove aliases from shared pages

Signed-off-by: Jack Baldry <jack.baldry@grafana.com>

* Rewrite all current latest aliases to be next

Signed-off-by: Jack Baldry <jack.baldry@grafana.com>

* Fix typo in latest alias

Signed-off-by: Jack Baldry <jack.baldry@grafana.com>

* Remove all current page aliases

find docs/sources -type f -name '*.md' -exec sed -z -i 's#\n *- /docs/grafana/next/[^\n]*\n#\n#' {} \;
find docs/sources -type f -name '*.md' -exec sed -Ez -i 's#\n((aliases:\n *-)|aliases:\n)#\n\2#' {} \;

Signed-off-by: Jack Baldry <jack.baldry@grafana.com>

* Prettier

Signed-off-by: Jack Baldry <jack.baldry@grafana.com>

Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
This commit is contained in:
Jack Baldry
2022-12-09 12:36:04 -04:00
committed by GitHub
parent 1497ad4760
commit c1c48dd610
506 changed files with 1073 additions and 1650 deletions
+1 -2
View File
@@ -1,7 +1,6 @@
---
aliases:
- /docs/grafana/latest/dashboards/
- /docs/grafana/latest/features/dashboard/dashboards/
- features/dashboard/dashboards/
title: Dashboards
weight: 70
---
@@ -1,10 +1,9 @@
---
aliases:
- /docs/grafana/latest/enterprise/usage-insights/
- /docs/grafana/latest/enterprise/usage-insights/dashboard-datasource-insights/
- /docs/grafana/latest/enterprise/usage-insights/presence-indicator/
- /docs/grafana/latest/enterprise/usage-insights/improved-search/
- /docs/grafana/latest/dashboards/assess-dashboard-usage/
- ../enterprise/usage-insights/
- ../enterprise/usage-insights/dashboard-datasource-insights/
- ../enterprise/usage-insights/improved-search/
- ../enterprise/usage-insights/presence-indicator/
description: Understand how your Grafana instance is used
keywords:
- grafana
@@ -1,6 +1,4 @@
---
aliases:
- /docs/grafana/next/dashboards/build-dashboards/
title: Build dashboards
menuTitle: Build dashboards
weight: 2
@@ -1,15 +1,14 @@
---
aliases:
- /docs/grafana/latest/dashboards/annotations/
- /docs/grafana/latest/reference/annotations/
- /docs/grafana/next/dashboards/build-dashboards/annotate-visualizations/
- ../../reference/annotations/
- ../annotations/
keywords:
- grafana
- annotations
- documentation
- guide
title: Annotate visualizations
menuTitle: Annotate visualizations
title: Annotate visualizations
weight: 600
---
@@ -1,15 +1,14 @@
---
aliases:
- /docs/grafana/latest/best-practices/
- /docs/grafana/latest/best-practices/common-observability-strategies/
- /docs/grafana/latest/getting-started/strategies/
- /docs/grafana/latest/best-practices/dashboard-management-maturity-levels/
- /docs/grafana/latest/best-practices/best-practices-for-creating-dashboards/
- /docs/grafana/latest/best-practices/best-practices-for-managing-dashboards/
- /docs/grafana/latest/dashboards/build-dashboards/best-practices/
- ../../best-practices/
- ../../best-practices/best-practices-for-creating-dashboards/
- ../../best-practices/best-practices-for-managing-dashboards/
- ../../best-practices/common-observability-strategies/
- ../../best-practices/dashboard-management-maturity-levels/
- ../../getting-started/strategies/
description: Best practices for working with Grafana
title: Grafana dashboard best practices
menuTitle: Best practices
title: Grafana dashboard best practices
weight: 100
---
@@ -1,15 +1,14 @@
---
title: Dashboard URL variables
aliases:
- ../../variables/url-variables/
- ../../variables/variable-types/url-variables/
keywords:
- grafana
- url variables
- documentation
- variables
- dashboards
aliases:
- /docs/grafana/latest/dashboards/build-dashboards/create-dashboard-url-variables/
- /docs/grafana/latest/variables/url-variables/
- /docs/grafana/latest/variables/variable-types/url-variables/
title: Dashboard URL variables
weight: 250
---
@@ -1,14 +1,13 @@
---
aliases:
- /docs/grafana/latest/dashboards/build-dashboards/create-dashboard/
- /docs/grafana/latest/dashboards/build-dashboards/add-organize-panels/
title: Create a dashboard
menuTitle: Create a dashboard
weight: 1
- add-organize-panels/
keywords:
- panel
- dashboard
- create
menuTitle: Create a dashboard
title: Create a dashboard
weight: 1
---
## Create a dashboard
@@ -1,12 +1,11 @@
---
aliases:
- /docs/grafana/latest/linking/
- /docs/grafana/latest/features/navigation-links/
- /docs/grafana/latest/linking/linking-overview/
- /docs/grafana/latest/linking/dashboard-links/
- /docs/grafana/latest/dashboards/manage-dashboard-links/
- /docs/grafana/latest/panels/working-with-panels/add-link-to-panel/
- /docs/grafana/latest/dashboards/build-dashboards/manage-dashboard-links/
- ../../features/navigation-links/
- ../../linking/
- ../../linking/dashboard-links/
- ../../linking/linking-overview/
- ../../panels/working-with-panels/add-link-to-panel/
- ../manage-dashboard-links/
description: How to link Grafana dashboards.
keywords:
- link
@@ -16,8 +15,8 @@ keywords:
- create links
- link dashboards
- navigate
title: Manage dashboard links
menuTitle: Manage dashboard links
title: Manage dashboard links
weight: 500
---
@@ -1,16 +1,15 @@
---
aliases:
- /docs/grafana/latest/panels/panel-library/
- /docs/grafana/latest/panels/library-panels/
- /docs/grafana/latest/panels/library-panels/create-library-panel/
- /docs/grafana/latest/panels/library-panels/add-library-panel/
- /docs/grafana/latest/panels/library-panels/unlink-library-panel/
- /docs/grafana/latest/panels/library-panels/manage-library-panel/
- /docs/grafana/latest/panels/library-panels/delete-library-panel/
- /docs/grafana/latest/dashboards/manage-library-panels/
- /docs/grafana/latest/dashboards/build-dashboards/manage-library-panels/
title: Manage library panels
- ../../panels/library-panels/
- ../../panels/library-panels/add-library-panel/
- ../../panels/library-panels/create-library-panel/
- ../../panels/library-panels/delete-library-panel/
- ../../panels/library-panels/manage-library-panel/
- ../../panels/library-panels/unlink-library-panel/
- ../../panels/panel-library/
- ../manage-library-panels/
menuTitle: Manage library panels
title: Manage library panels
weight: 300
---
@@ -1,16 +1,15 @@
---
aliases:
- /docs/grafana/latest/dashboards/dashboard-history/
- /docs/grafana/latest/reference/dashboard_history/
- /docs/grafana/latest/dashboards/build-dashboards/manage-version-history/
- ../../reference/dashboard_history/
- ../dashboard-history/
keywords:
- grafana
- dashboard
- documentation
- version
- history
title: Manage dashboard version history
menutitle: Manage version history
title: Manage dashboard version history
weight: 400
---
@@ -1,6 +1,4 @@
---
aliases:
- /docs/grafana/latest/dashboards/build-dashboards/modify-dashboard-settings/
title: Modify dashboard settings
menuTitle: Dashboard settings
weight: 8
@@ -1,8 +1,7 @@
---
aliases:
- /docs/grafana/latest/dashboards/json-model/
- /docs/grafana/latest/reference/dashboard/
- /docs/grafana/latest/dashboards/build-dashboards/view-dashboard-json-model/
- ../../reference/dashboard/
- ../json-model/
keywords:
- grafana
- dashboard
@@ -1,14 +1,14 @@
---
aliases:
- /docs/grafana/latest/dashboards/playlist/
- /docs/grafana/latest/reference/playlist/
- ../reference/playlist/
- playlist/
keywords:
- grafana
- dashboard
- documentation
- playlist
title: Manage playlists
menuTitle: Manage playlists
title: Manage playlists
weight: 9
---
@@ -1,20 +1,18 @@
---
aliases:
- /docs/grafana/latest/administration/reports/
- /docs/grafana/latest/enterprise/reporting/
- /docs/grafana/latest/administration/reports/
- /docs/grafana/latest/dashboards/reporting/
- /docs/grafana/latest/enterprise/export-pdf/
- /docs/grafana/latest/panels/create-reports
- /docs/grafana/latest/dashboards/create-reports
title: Create and manage reports
menuTitle: Reporting
weight: 85
- ../administration/reports/
- ../enterprise/export-pdf/
- ../enterprise/reporting/
- ../panels/create-reports/
- reporting/
keywords:
- grafana
- reporting
- export
- pdf
menuTitle: Reporting
title: Create and manage reports
weight: 85
---
# Create and manage reports
@@ -1,8 +1,7 @@
---
aliases:
- /docs/grafana/latest/dashboards/dashboard-manage/
- /docs/grafana/latest/features/dashboard/dashboards/
- /docs/grafana/latest/dashboards/dashboard-public/
- ../features/dashboard/dashboards/
- dashboard-manage/
title: Public dashboards
weight: 8
---
@@ -1,19 +1,15 @@
---
aliases:
- /docs/grafana/latest/dashboards/dashboard-manage/
- /docs/grafana/latest/features/dashboard/dashboards/
- /docs/grafana/latest/dashboards/dashboard-folders/
- /docs/grafana/latest/reference/dashboard_folders/
- /docs/grafana/latest/dashboards/export-import/
- /docs/grafana/latest/reference/export_import/
- /docs/grafana/latest/troubleshooting/troubleshoot-dashboards/
- /docs/grafana/latest/dashboards/time-range-controls/
- /docs/grafana/latest/reference/timerange/
- /docs/grafana/latest/panels/working-with-panels/organize-dashboard/
- /docs/grafana/latest/dashboards/manage-dashboards/
title: Manage dashboards
menuTitle: Manage dashboards
weight: 8
- ../features/dashboard/dashboards/
- ../panels/working-with-panels/organize-dashboard/
- ../reference/dashboard_folders/
- ../reference/export_import/
- ../reference/timerange/
- ../troubleshooting/troubleshoot-dashboards/
- dashboard-folders/
- dashboard-manage/
- export-import/
- time-range-controls/
keywords:
- grafana
- dashboard
@@ -25,6 +21,9 @@ keywords:
- troubleshoot
- time range
- scripting
menuTitle: Manage dashboards
title: Manage dashboards
weight: 8
---
# Manage dashboards
@@ -1,23 +1,18 @@
---
aliases:
- /docs/grafana/latest/sharing/
- /docs/grafana/latest/dashboards/share-dashboard/
- /docs/grafana/latest/reference/share_dashboard/
- /docs/grafana/latest/sharing/share-dashboard/
- /docs/grafana/latest/dashboards/share-dashboard/
- /docs/grafana/latest/reference/share_panel/
- /docs/grafana/latest/sharing/share-panel/
- /docs/grafana/latest/sharing/playlists/
- /docs/grafana/latest/administration/reports/
- /docs/grafana/latest/enterprise/reporting/
- /docs/grafana/latest/administration/reports/
- /docs/grafana/latest/dashboards/reporting/
- /docs/grafana/latest/enterprise/export-pdf/
- docs/grafana/latest/dashboards/share-dashboards-panels/
- /docs/grafana/latest/share-dashboards-panels/
title: Share dashboards and panels
menuTitle: Sharing
weight: 85
- ../administration/reports/
- ../enterprise/export-pdf/
- ../enterprise/reporting/
- ../reference/share_dashboard/
- ../reference/share_panel/
- ../share-dashboards-panels/
- ../sharing/
- ../sharing/playlists/
- ../sharing/share-dashboard/
- ../sharing/share-panel/
- ./
- reporting/
- share-dashboard/
keywords:
- grafana
- dashboard
@@ -29,6 +24,9 @@ keywords:
- reporting
- export
- pdf
menuTitle: Sharing
title: Share dashboards and panels
weight: 85
---
# Share dashboards and panels
+10 -12
View File
@@ -1,21 +1,19 @@
---
aliases:
- /docs/grafana/latest/dashboards/dashboard-ui/
- /docs/grafana/latest/dashboards/dashboard-ui/dashboard-header/
- /docs/grafana/latest/features/dashboard/dashboards/
- /docs/grafana/latest/dashboards/dashboard-ui/dashboard-row/
- /docs/grafana/latest/features/dashboard/dashboards/
- /docs/grafana/latest/dashboards/shortcuts/
- /docs/grafana/latest/dashboards/search/
- /docs/grafana/latest/reference/search/
- /docs/grafana/latest/dashboards/use-dashboards/
title: Use dashboards
menuTitle: Use dashboards
weight: 1
- ../features/dashboard/dashboards/
- ../reference/search/
- dashboard-ui/
- dashboard-ui/dashboard-header/
- dashboard-ui/dashboard-row/
- search/
- shortcuts/
keywords:
- dashboard
- search
- shortcuts
menuTitle: Use dashboards
title: Use dashboards
weight: 1
---
# Use dashboards
+3 -3
View File
@@ -1,8 +1,8 @@
---
aliases:
- /docs/grafana/latest/variables/
- /docs/grafana/latest/variables/variable-examples/
- docs/grafana/latest/dashboards/variables/
- ../variables/
- ../variables/variable-examples/
- ./
title: Variables
weight: 130
---
@@ -1,34 +1,30 @@
---
aliases:
- /docs/grafana/latest/variables/variable-types/
- /docs/grafana/latest/variables/add-query-variable/
- /docs/grafana/latest/variables/variable-types/add-query-variable/
- /docs/grafana/latest/variables/add-custom-variable/
- /docs/grafana/latest/variables/variable-types/add-custom-variable/
- /docs/grafana/latest/variables/add-text-box-variable/
- /docs/grafana/latest/variables/variable-types/add-text-box-variable/
- /docs/grafana/latest/variables/add-constant-variable/
- /docs/grafana/latest/variables/variable-types/add-constant-variable/
- /docs/grafana/latest/variables/add-data-source-variable/
- /docs/grafana/latest/variables/variable-types/add-data-source-variable/
- /docs/grafana/latest/variables/add-interval-variable/
- /docs/grafana/latest/variables/variable-types/add-interval-variable/
- /docs/grafana/latest/variables/add-ad-hoc-filters/
- /docs/grafana/latest/variables/variable-types/add-ad-hoc-filters/
- /docs/grafana/latest/variables/global-variables/
- /docs/grafana/latest/variables/variable-types/global-variables/
- /docs/grafana/latest/variables/chained-variables/
- /docs/grafana/latest/variables/variable-types/chained-variables/
- /docs/grafana/latest/variables/add-template-variables/
- /docs/grafana/latest/variables/variable-selection-options/
- /docs/grafana/latest/variables/filter-variables-with-regex/
- /docs/grafana/latest/variables/formatting-multi-value-variables/
- /docs/grafana/latest/reference/templating/
- /docs/grafana/latest/variables/manage-variable/
- /docs/grafana/latest/dashboards/variables/add-template-variables/
title: Add and manage variables
menuTitle: Manage variables
weight: 100
- ../../reference/templating/
- ../../variables/add-ad-hoc-filters/
- ../../variables/add-constant-variable/
- ../../variables/add-custom-variable/
- ../../variables/add-data-source-variable/
- ../../variables/add-interval-variable/
- ../../variables/add-query-variable/
- ../../variables/add-template-variables/
- ../../variables/add-text-box-variable/
- ../../variables/chained-variables/
- ../../variables/filter-variables-with-regex/
- ../../variables/formatting-multi-value-variables/
- ../../variables/global-variables/
- ../../variables/manage-variable/
- ../../variables/variable-selection-options/
- ../../variables/variable-types/
- ../../variables/variable-types/add-ad-hoc-filters/
- ../../variables/variable-types/add-constant-variable/
- ../../variables/variable-types/add-custom-variable/
- ../../variables/variable-types/add-data-source-variable/
- ../../variables/variable-types/add-interval-variable/
- ../../variables/variable-types/add-query-variable/
- ../../variables/variable-types/add-text-box-variable/
- ../../variables/variable-types/chained-variables/
- ../../variables/variable-types/global-variables/
keywords:
- grafana
- documentation
@@ -39,6 +35,9 @@ keywords:
- nested
- chained
- linked
menuTitle: Manage variables
title: Add and manage variables
weight: 100
---
# Add and manage variables
@@ -1,8 +1,7 @@
---
aliases:
- /docs/grafana/latest/reference/templating/
- /docs/grafana/latest/variables/inspect-variable/
- /docs/grafana/latest/dashboards/variables/inspect-variable/
- ../../reference/templating/
- ../../variables/inspect-variable/
keywords:
- grafana
- templating
@@ -1,9 +1,8 @@
---
aliases:
- /docs/grafana/latest/variables/advanced-variable-format-options/
- /docs/grafana/latest/reference/templating/
- /docs/grafana/latest/variables/syntax/
- /docs/grafana/latest/dashboards/variables/variable-syntax/
- ../../reference/templating/
- ../../variables/advanced-variable-format-options/
- ../../variables/syntax/
keywords:
- grafana
- templating