mirror of
https://github.com/grafana/grafana.git
synced 2025-07-28 11:02:23 +08:00

* Add comments to indicate which page I believe each alias is intending to redirect Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Remove difference-old-new redirect from migrating-alerts page since an alternative page exists The alternative page is `docs/sources/alerting/difference-old-new.md`. Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Add comment to show intended absolute path redirect Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Remove `unified-alerting/difference-old-new/` redirect because it already exists in `docs/sources/alerting/difference-old-new.md`. Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Remove `unified-alerting/` alias since the absolute URL already redirects to `/docs/grafana/latest/alerting/` Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Fix `/docs/grafana/<GRAFANA VERSION>/alerting/migrating-alerts/` redirect The following example uses `latest` as _`GRAFANA VERSION`_ for simplicity and readability. The desire is the following redirect: ``` src: /docs/grafana/latest/alerting/migrating-alerts/ dst: /docs/grafana/latest/alerting/set-up/migrating-alerts/ ``` `dst` is the Hugo pretty URL for the current page (`docs/sources/alerting/set-up/migrating-alerts/_index.md`). When constructing Hugo aliases we are working from the page's containing directory and not the page itself. The path element `.` represents that directory. For example: ``` page: /docs/grafana/latest/alerting/set-up/migrating-alerts/ alias: ./ dst: /docs/grafana/latest/alerting/set-up/ ``` The path element `..` represents the parent directory of the page's containing directory. For example: ``` page: /docs/grafana/latest/alerting/set-up/migrating-alerts/ alias: ../ dst: /docs/grafana/latest/alerting/ ``` Signed-off-by: Jack Baldry <jack.baldry@grafana.com> --------- Signed-off-by: Jack Baldry <jack.baldry@grafana.com>