Skip to content

Commit cd7246e

Browse files
authored
Add redirects for all charmhub pages (16) (#995)
* rename interfaces-endpoints for consistency with VM * add rediraffe sphinx extension and redirect mapping list * remove unnecessary redirects
1 parent ac02173 commit cd7246e

File tree

8 files changed

+24
-8
lines changed

8 files changed

+24
-8
lines changed

docs/conf.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,8 +193,9 @@
193193
# NOTE: If undefined, set to None, or empty,
194194
# the sphinx_reredirects extension will be disabled.
195195

196-
redirects = {}
196+
# redirects = {}
197197

198+
rediraffe_redirects = "redirects.txt"
198199

199200
###########################
200201
# Link checker exceptions #
@@ -258,7 +259,8 @@
258259
"sphinxcontrib.cairosvgconverter",
259260
"sphinx_last_updated_by_git",
260261
"sphinx.ext.intersphinx",
261-
"sphinxcontrib.mermaid"
262+
"sphinxcontrib.mermaid",
263+
"sphinxext.rediraffe"
262264
]
263265

264266
# Excludes files or directories from processing

docs/explanation/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Charm event flowcharts:
2626
<!-- Links -->
2727

2828
[Architecture]: /explanation/architecture
29-
[Interfaces and endpoints]: /explanation/interfaces-endpoints
29+
[Interfaces and endpoints]: /explanation/interfaces-and-endpoints
3030
[Users]: /explanation/users
3131
[Logs]: /explanation/logs
3232
[Juju]: /explanation/juju
@@ -46,7 +46,7 @@ Charm event flowcharts:
4646
:hidden:
4747
4848
Architecture <architecture>
49-
Interfaces and endpoints <interfaces-endpoints>
49+
Interfaces and endpoints <interfaces-and-endpoints>
5050
Juju <juju>
5151
Legacy charm <legacy-charm>
5252
Users <users>
File renamed without changes.

docs/explanation/users.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ When an application charm requests a new user through the relation/integration i
114114
```{note}
115115
`extra-user-roles` is only supported by the modern interface `postgresql_client`. It is not supported for the legacy `pgsql` interface. R
116116
117-
Read more about the supported charm interfaces in [](/explanation/interfaces-endpoints).
117+
Read more about the supported charm interfaces in [](/explanation/interfaces-and-endpoints).
118118
```
119119

120120
## Identity users

docs/how-to/development/integrate-with-your-charm.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Charmed PostgreSQL K8s can be integrated with any charmed application that suppo
44

55
## Check supported interfaces
66

7-
First, we recommend that you check [the supported interfaces](/explanation/interfaces-endpoints) of the current charm. You have options to use modern (preferred) or legacy interfaces.
7+
First, we recommend that you check [the supported interfaces](/explanation/interfaces-and-endpoints) of the current charm. You have options to use modern (preferred) or legacy interfaces.
88

99
Most existing charms currently use the [ops-lib-pgsql](https://github.com/canonical/ops-lib-pgsql) interface (legacy). For new charms, **Canonical recommends using [data-platform-libs](https://github.com/canonical/data-platform-libs) instead.**
1010

docs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ This is a **Kubernetes** operator. To deploy on IAAS/VM, see [Charmed PostgreSQL
1919
| | |
2020
|--|--|
2121
| [**Get started**](/tutorial/index) - [Deploy on a cloud](/how-to/deploy/index) \| [Scale](/how-to/scale-replicas) \| [Manage passwords](/how-to/manage-passwords) \| [Enable encryption](/how-to/enable-tls) \| [Back up](/how-to/back-up-and-restore/index) \| [Monitoring](/how-to/monitoring-cos/index) </br> | [**How-to guides**](/how-to/index) for key tasks, use-cases, and problems. These guides assume basic familiarity with Juju and PostgreSQL. </br> |
22-
| [**Reference**](/reference/index) - Technical information for quick lookup, such as [requirements](/reference/system-requirements), [plugins](/reference/plugins-extensions), and [statuses](/reference/statuses). | [**Explanation**](/explanation/interfaces-endpoints) - Discussion and clarification of key topics such as [architecture](/explanation/architecture), [users](/explanation/users), and [legacy charms](/explanation/legacy-charm)|
22+
| [**Reference**](/reference/index) - Technical information for quick lookup, such as [requirements](/reference/system-requirements), [plugins](/reference/plugins-extensions), and [statuses](/reference/statuses). | [**Explanation**](/explanation/interfaces-and-endpoints) - Discussion and clarification of key topics such as [architecture](/explanation/architecture), [users](/explanation/users), and [legacy charms](/explanation/legacy-charm)|
2323

2424
## Project and community
2525

docs/redirects.txt

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
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/

docs/requirements.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ canonical-sphinx[full]
22
packaging
33
sphinxcontrib-svg2pdfconverter[CairoSVG]
44
sphinx-last-updated-by-git
5-
sphinxcontrib-mermaid
5+
sphinxcontrib-mermaid
6+
sphinxext-rediraffe

0 commit comments

Comments
 (0)