Skip to content

Commit 0f97e21

Browse files
authored
Add redirects to new RTD slugs (#649)
* add rediraffe extension and redirects.txt * add link to Charmhub in home page * add backslash to troubleshooting folder path * remove broken URL
1 parent 28a3bd7 commit 0f97e21

File tree

5 files changed

+103
-3
lines changed

5 files changed

+103
-3
lines changed

docs/conf.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@
216216

217217
# redirects = {}
218218

219-
# rediraffe_redirects = "redirects.txt"
219+
rediraffe_redirects = "redirects.txt"
220220

221221
###########################
222222
# Link checker exceptions #
@@ -283,6 +283,7 @@
283283
"sphinx.ext.intersphinx",
284284
"sphinx_sitemap",
285285
"sphinxcontrib.mermaid",
286+
"sphinxext.rediraffe"
286287
]
287288

288289
# Excludes files or directories from processing

docs/explanation/flowcharts.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
# Charm lifecycle flowcharts
22

3-
[Click to navigate the mermaid diagram on GitHub](https://github.com/canonical/mysql-k8s-operator/blob/main/docs/explanation/e-flowcharts.md).
4-
53
```{mermaid}
64
flowchart TD
75
id101([leader_elected]) --> id102[generate\npassword/configs]

docs/index.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
---
2+
relatedlinks: "[Charmhub](https://charmhub.io/mysql-k8s)"
3+
---
4+
15
# Charmed MySQL K8s documentation
26

37
Charmed MySQL K8s is an open-source software operator that deploys and operates [MySQL Community Edition](https://www.mysql.com/products/community/) relational databases on Kubernetes via [Juju](https://juju.is/).

docs/redirects.txt

Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
# The redirects.txt file stores all the redirects for the published docs
2+
# If you change a filename, move or delete a file, you need a redirect here.
3+
# - Comment lines start with a hash (#) and are ignored
4+
# - Each redirect should appear on its own line
5+
6+
# We are using the dirhtml builder, so files are treated as directories:
7+
# - A file is built like `filename/index.html`, not `filename.html`
8+
# - *Do* include a trailing slash at the end of the path
9+
# - *Do not* include a file extension or you'll get errors
10+
# - Paths don't need a slash in front of them
11+
12+
# Example:
13+
# redirect/from/file/ redirect/to/file/
14+
15+
# Tutorial
16+
17+
t-set-up/ tutorial/
18+
t-deploy/ tutorial/
19+
t-scale/ tutorial/
20+
t-manage-passwords/ tutorial/
21+
t-integrate/ tutorial/
22+
t-enable-tls/ tutorial/
23+
t-clean-up/ tutorial/
24+
25+
# How-to guides
26+
27+
h-deploy-canonical-k8s/ how-to/deploy/canonical-k8s
28+
h-deploy-microk8s/ how-to/deploy/microk8s
29+
h-deploy-gke/ how-to/deploy/gke
30+
h-deploy-eks/ how-to/deploy/eks
31+
h-deploy-aks/ how-to/deploy/aks
32+
h-deploy-multi-az/ how-to/deploy/multi-az
33+
h-deploy-terraform/ how-to/deploy/terraform
34+
h-deploy-airgapped/ how-to/deploy/air-gapped
35+
36+
h-integrate/ how-to/integrate-with-another-application
37+
h-external-access/ how-to/external-network-access
38+
h-scale/ how-to/scale-replicas
39+
h-enable-tls/ how-to/enable-tls
40+
41+
h-configure-s3-aws/ how-to/back-up-and-restore/configure-s3-aws
42+
h-configure-s3-radosgw/ how-to/back-up-and-restore/configure-s3-radosgw
43+
h-create-backup/ how-to/back-up-and-restore/create-a-backup
44+
h-restore-backup/ how-to/back-up-and-restore/restore-a-backup
45+
h-migrate-cluster/ how-to/back-up-and-restore/migrate-a-cluster
46+
47+
h-enable-monitoring/ how-to/monitoring-cos/enable-monitoring
48+
h-enable-alert-rules/ how-to/monitoring-cos/enable-alert-rules
49+
h-enable-tracing/ how-to/monitoring-cos/enable-tracing
50+
51+
h-upgrade/ how-to/upgrade/
52+
h-upgrade-juju/ how-to/upgrade/upgrade-juju
53+
h-upgrade-minor/ how-to/upgrade/perform-a-minor-upgrade
54+
h-rollback-minor/ how-to/upgrade/perform-a-minor-rollback
55+
56+
h-async/ how-to/cross-regional-async-replication/
57+
h-async-deployment/ how-to/cross-regional-async-replication/deploy
58+
h-async-clients/ how-to/cross-regional-async-replication/clients
59+
h-async-failover/ how-to/cross-regional-async-replication/switchover-failover
60+
h-async-recovery/ how-to/cross-regional-async-replication/recovery
61+
h-async-removal/ how-to/cross-regional-async-replication/removal
62+
63+
h-development-integrate/ how-to/development/integrate-with-your-charm
64+
h-migrate-mysqldump/ how-to/development/migrate-data-via-mysqldump
65+
h-migrate-mydumper/ how-to/development/migrate-data-via-mydumper
66+
h-migrate-backup-restore/ how-to/development/migrate-data-via-backup-restore
67+
68+
h-troubleshooting/ reference/troubleshooting/
69+
h-contribute/ how-to/contribute
70+
71+
# Reference
72+
73+
r-releases/ reference/releases
74+
r-system-requirements/ reference/system-requirements
75+
r-testing/ reference/software-testing
76+
r-profiles/ reference/profiles
77+
r-plugins-extensions/ reference/plugins-extensions
78+
r-alert-rules/ reference/alert-rules
79+
r-statuses/ reference/charm-statuses
80+
r-contacts/ reference/contacts
81+
82+
# Explanation
83+
84+
e-architecture/ explanation/architecture
85+
e-interfaces-endpoints/ explanation/interfaces-and-endpoints
86+
e-juju/ explanation/juju
87+
e-legacy-charm/ explanation/legacy-charm
88+
e-users/ explanation/users
89+
90+
e-logs/ explanation/logs/
91+
e-audit-logs/ explanation/logs/audit-logs
92+
93+
e-security/ explanation/security/
94+
e-cryptography/ explanation/security/cryptography
95+
96+
e-flowcharts/ explanation/flowcharts

docs/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ sphinxcontrib-svg2pdfconverter[CairoSVG]
44
sphinx-last-updated-by-git
55
sphinx-sitemap
66
sphinxcontrib-mermaid
7+
sphinxext-rediraffe

0 commit comments

Comments
 (0)