Skip to content

Commit

Permalink
Rewrite all front matter as YAML with current alias defined (#1705)
Browse files Browse the repository at this point in the history
The addition of the current alias has no effect on the website as Hugo
will not create an HTML redirect if there is already content in the
web server directory.

The reason for the addition of the alias is to reduce the likelihood
of 404s occuring when files are moved.

Signed-off-by: Jack Baldry <[email protected]>
  • Loading branch information
jdbaldry authored May 16, 2022
1 parent a0c5c8c commit 5086ffc
Show file tree
Hide file tree
Showing 43 changed files with 241 additions and 155 deletions.
8 changes: 5 additions & 3 deletions docs/user/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
+++
draft = "True"
+++
---
aliases:
- /docs/agent/latest/README/
draft: "True"
---

<p align="center"><img src="assets/logo_and_name.png" alt="Grafana Agent logo"></p>

Expand Down
10 changes: 6 additions & 4 deletions docs/user/_index.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
+++
title = "Grafana Agent"
weight = 1
+++
---
aliases:
- /docs/agent/latest/
title: Grafana Agent
weight: 1
---

# Grafana Agent

Expand Down
10 changes: 6 additions & 4 deletions docs/user/api/_index.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
+++
title = "Grafana Agent API"
weight = 400
+++
---
aliases:
- /docs/agent/latest/api/
title: Grafana Agent API
weight: 400
---

# Grafana Agent APIs (Stable)

Expand Down
10 changes: 6 additions & 4 deletions docs/user/configuration/_index.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
+++
title = "Configure Grafana Agent"
weight = 300
+++
---
aliases:
- /docs/agent/latest/configuration/
title: Configure Grafana Agent
weight: 300
---

# Configure Grafana Agent

Expand Down
10 changes: 6 additions & 4 deletions docs/user/configuration/dynamic-config.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
+++
title = "dynamic_config"
weight = 500
+++
---
aliases:
- /docs/agent/latest/configuration/dynamic-config/
title: dynamic_config
weight: 500
---

# Dynamic Configuration - Experimental

Expand Down
10 changes: 6 additions & 4 deletions docs/user/configuration/flags.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
+++
title = "Command-line flags"
weight = 100
+++
---
aliases:
- /docs/agent/latest/configuration/flags/
title: Command-line flags
weight: 100
---

# Command-line flags

Expand Down
10 changes: 6 additions & 4 deletions docs/user/configuration/integrations/_index.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
+++
title = "integrations_config"
weight = 500
+++
---
aliases:
- /docs/agent/latest/configuration/integrations/
title: integrations_config
weight: 500
---

# integrations_config

Expand Down
8 changes: 5 additions & 3 deletions docs/user/configuration/integrations/cadvisor-config.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
+++
title = "cadvisor_config"
+++
---
aliases:
- /docs/agent/latest/configuration/integrations/cadvisor-config/
title: cadvisor_config
---

# cadvisor_config

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
+++
title = "consul_exporter_config"
+++
---
aliases:
- /docs/agent/latest/configuration/integrations/consul-exporter-config/
title: consul_exporter_config
---

# consul_exporter_config

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
+++
title = "dnsmasq_exporter_config"
+++
---
aliases:
- /docs/agent/latest/configuration/integrations/dnsmasq-exporter-config/
title: dnsmasq_exporter_config
---

# dnsmasq_exporter_config

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
+++
title = "elasticsearch_exporter_config"
+++
---
aliases:
- /docs/agent/latest/configuration/integrations/elasticsearch-exporter-config/
title: elasticsearch_exporter_config
---

# elasticsearch_exporter_config

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
+++
title = "github_exporter_config"
+++
---
aliases:
- /docs/agent/latest/configuration/integrations/github-exporter-config/
title: github_exporter_config
---

# github_exporter_config

Expand Down
10 changes: 6 additions & 4 deletions docs/user/configuration/integrations/integrations-next/_index.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
+++
title = "Integrations Revamp"
weight = 100
+++
---
aliases:
- /docs/agent/latest/configuration/integrations/integrations-next/
title: Integrations Revamp
weight: 100
---

# Integrations Revamp (Experimental)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
+++
title = "app_agent_config"
+++
---
aliases:
- /docs/agent/latest/configuration/integrations/integrations-next/app-agent-receiver-config/
title: app_agent_config
---

# app_agent_receiver_config

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
+++
title = "eventhandler_config"
+++
---
aliases:
- /docs/agent/latest/configuration/integrations/integrations-next/eventhandler-config/
title: eventhandler_config
---

# eventhandler_config

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
+++
title = "snmp_exporter_config"
+++
---
aliases:
- /docs/agent/latest/configuration/integrations/integrations-next/snmp-config/
title: snmp_exporter_config
---

# snmp config

Expand Down
8 changes: 5 additions & 3 deletions docs/user/configuration/integrations/kafka-exporter-config.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
+++
title = "kafka_exporter_config"
+++
---
aliases:
- /docs/agent/latest/configuration/integrations/kafka-exporter-config/
title: kafka_exporter_config
---

# kafka_exporter_config

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
+++
title = "memcached_exporter_config"
+++
---
aliases:
- /docs/agent/latest/configuration/integrations/memcached-exporter-config/
title: memcached_exporter_config
---

# memcached_exporter_config

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
+++
title = "mongodb_exporter_config"
+++
---
aliases:
- /docs/agent/latest/configuration/integrations/mongodb_exporter-config/
title: mongodb_exporter_config
---

# mongodb_exporter_config

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
+++
title = "mysqld_exporter_config"
+++
---
aliases:
- /docs/agent/latest/configuration/integrations/mysqld-exporter-config/
title: mysqld_exporter_config
---

# mysqld_exporter_config

Expand Down
8 changes: 5 additions & 3 deletions docs/user/configuration/integrations/node-exporter-config.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
+++
title = "node_exporter_config"
+++
---
aliases:
- /docs/agent/latest/configuration/integrations/node-exporter-config/
title: node_exporter_config
---

# node_exporter_config

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
+++
title = "postgres_exporter_config"
+++
---
aliases:
- /docs/agent/latest/configuration/integrations/postgres-exporter-config/
title: postgres_exporter_config
---

# postgres_exporter_config

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
+++
title = "process_exporter_config"
+++
---
aliases:
- /docs/agent/latest/configuration/integrations/process-exporter-config/
title: process_exporter_config
---

# process_exporter_config

Expand Down
8 changes: 5 additions & 3 deletions docs/user/configuration/integrations/redis-exporter-config.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
+++
title = "redis_exporter_config"
+++
---
aliases:
- /docs/agent/latest/configuration/integrations/redis-exporter-config/
title: redis_exporter_config
---

# redis_exporter_config

Expand Down
8 changes: 5 additions & 3 deletions docs/user/configuration/integrations/snmp-config.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
+++
title = "snmp_exporter_config"
+++
---
aliases:
- /docs/agent/latest/configuration/integrations/snmp-config/
title: snmp_exporter_config
---

# snmp config

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
+++
title = "statsd_exporter_config"
+++
---
aliases:
- /docs/agent/latest/configuration/integrations/statsd-exporter-config/
title: statsd_exporter_config
---

# statsd_exporter_config

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
+++
title = "windows_exporter_config"
+++
---
aliases:
- /docs/agent/latest/configuration/integrations/windows-exporter-config/
title: windows_exporter_config
---

# windows_exporter_config

Expand Down
12 changes: 7 additions & 5 deletions docs/user/configuration/logs-config.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
+++
title = "logs_config"
weight = 300
aliases = ["/docs/agent/latest/configuration/loki-config/"]
+++
---
aliases:
- /docs/agent/latest/configuration/logs-config/
- /docs/agent/latest/configuration/loki-config/
title: logs_config
weight: 300
---

# logs_config

Expand Down
12 changes: 7 additions & 5 deletions docs/user/configuration/metrics-config.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
+++
title = "metrics_config"
weight = 200
aliases = ["/docs/agent/latest/configuration/prometheus-config/"]
+++
---
aliases:
- /docs/agent/latest/configuration/metrics-config/
- /docs/agent/latest/configuration/prometheus-config/
title: metrics_config
weight: 200
---

# metrics_config

Expand Down
10 changes: 6 additions & 4 deletions docs/user/configuration/server-config.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
+++
title = "server_config"
weight = 100
+++
---
aliases:
- /docs/agent/latest/configuration/server-config/
title: server_config
weight: 100
---

# server_config

Expand Down
12 changes: 7 additions & 5 deletions docs/user/configuration/traces-config.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
+++
title = "traces_config"
weight = 400
aliases = ["/docs/agent/latest/configuration/tempo-config/"]
+++
---
aliases:
- /docs/agent/latest/configuration/tempo-config/
- /docs/agent/latest/configuration/traces-config/
title: traces_config
weight: 400
---

# traces_config

Expand Down
Loading

0 comments on commit 5086ffc

Please sign in to comment.