Skip to content

Commit cd6a258

Browse files
authored
Revert "[discourse-gatekeeper] Migrate charm docs (#267)" (#268)
This reverts commit 7d3d0c2.
1 parent 7d3d0c2 commit cd6a258

18 files changed

+113
-52
lines changed

docs/changelog.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Changelog
2+
3+
### 2025-03-10
4+
5+
- Add charm architecture diagram.
6+
- Add changelog for tracking user-relevant changes.

docs/explanation/architecture.md renamed to docs/explanation/charm-architecture.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,4 +200,5 @@ CharmBase is the base class from which all Charms are formed, defined by [Ops](h
200200

201201
> See more in the Juju docs: [Charm](https://canonical-juju.readthedocs-hosted.com/en/3.6/user/reference/charm/).
202202
203-
The `__init__` method guarantees that the charm observes all events relevant to its operation and handles them.
203+
The `__init__` method guarantees that the charm observes all events relevant to its operation and handles them.
204+

docs/how-to/configure-hostname.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,4 @@ Test the ingress by sending a GET request to the service with `Host` headers.
4242

4343
```
4444
curl -H "Host: <desired-hostname>" http://<nginx-ingress-integrator-service-ip>
45-
```
45+
```

docs/how-to/configure-initial-settings.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
# How to configure initial settings
22

3-
[note]
4-
This only works when setting up WordPress initially, before database relation setup. Changing the value afterwards has no effect.
5-
[/note]
3+
> **NOTE** This only works when setting up WordPress initially, before database relation setup. Changing the
4+
value afterwards has no effect.
65

76
By providing configuration value for `initial_settings` at deployment, you can tweak a few
87
WordPress settings. For detailed information on configurable parameters, please refer to the
@@ -23,4 +22,4 @@ WordPress(`http://<wordpress-unit-ip>/wp-admin/options-general.php`).
2322

2423
You can also pass in the wordpress-k8s `configuration.yaml` file with the parameters above. See how
2524
to pass in a configuration file in the
26-
[juju documentation](https://juju.is/docs/olm/manage-applications#heading--configure-an-application-during-deployment).
25+
[juju documentation](https://juju.is/docs/olm/manage-applications#heading--configure-an-application-during-deployment).

docs/how-to/configure-object-storage.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,4 +59,4 @@ You can then configure wordpress-k8s charm using the yaml contents above.
5959

6060
```
6161
juju config wordpress-k8s wp_plugin_openstack-objectstorage_config="$(cat <path-to-yaml>)"
62-
```
62+
```

docs/how-to/enable-waf.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,8 @@ juju relate wordpress-k8s nginx-ingress-integrator
1414

1515
### Enable Modsecurity 3.0 WAF
1616

17-
[note]
18-
This feature is only available for
17+
> **NOTE** This feature is only available for
1918
[nginx-ingress-integrator](https://charmhub.io/nginx-ingress-integrator) charm.
20-
[/note]
2119

2220
The modsecurity WAF is enabled by default.
2321

@@ -49,4 +47,4 @@ Annotations: nginx.ingress.kubernetes.io/enable-modsecurity: true
4947
Events: <none>
5048
```
5149

52-
Note the `nginx.ingress.kubernetes.io/enable-modsecurity: true` annotation.
50+
Note the `nginx.ingress.kubernetes.io/enable-modsecurity: true` annotation.

docs/how-to/index.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# How-to guides
2+
3+
The following guides cover key processes and common tasks for managing
4+
and using the WordPress charm.
5+
6+
## Initial setup
7+
* [Retrieve initial credentials]
8+
* [Configure initial settings]
9+
10+
## Basic operations
11+
* [Configure hostname]
12+
* [Configure object storage]
13+
* [Install plugins]
14+
* [Install themes]
15+
* [Integrate with COS]
16+
17+
## Security
18+
* [Enable antispam]
19+
* [Enable WAF]
20+
* [Rotate secrets]
21+
22+
## Upgrade and redeployment
23+
* [Upgrade WordPress charm]
24+
* [Redeploy]
25+
26+
## Development
27+
* [Contribute]
28+
29+
<!--Links-->
30+
31+
[Retrieve initial credentials]: retrieve-initial-credentials.md
32+
[Configure initial settings]: configure-initial-settings.md
33+
[Integrate with COS]: integrate-with-cos.md
34+
[Configure hostname]: configure-hostname.md
35+
[Install plugins]: install-plugins.md
36+
[Install themes]: install-themes.md
37+
[Configure object storage]: configure-object-storage.md
38+
[Enable antispam]: enable-antispam.md
39+
[Enable WAF]: enable-waf.md
40+
[Rotate secrets]: rotate-secrets.md
41+
[Upgrade WordPress charm]: upgrade-wordpress-charm.md
42+
[Redeploy]: redeploy.md
43+
[Contribute]: contribute.md

docs/how-to/integrate-with-cos.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,4 @@ juju run grafana-k8s/0 get-admin-password
5353

5454
You can now log into the Grafana dashboard by visiting `http://<grafana-unit-ip>:3000`. Navigate to
5555
`http://<grafana-unit-ip>:3000/dashboards` and access the WordPress dashboard named Wordpress Operator
56-
Overview.
56+
Overview.

docs/how-to/retrieve-initial-credentials.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Run the following command to get the initial admin password that can be used to
44
`http://<wordpress-unit-ip>/wp-login.php`.
55

66
```
7-
juju run wordpress-k8s/0 get-initial-password
7+
juju run wordpress-k8s/0 get-initial-password
88
```
99

1010
The output of the action should look something similar to the following:
@@ -20,7 +20,5 @@ unit-wordpress-k8s-0:
2020

2121
You can use the password to login to the admin account in `http://<wordpress-unit-ip>/wp-admin.php`.
2222

23-
[note]
24-
If the `admin_password` value was passed in the `initial_settings` configuration, the
23+
> **NOTE** If the `admin_password` value was passed in the `initial_settings` configuration, the
2524
password from the action is invalid.
26-
[/note]

docs/how-to/rotate-secrets.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ To securely update all the WordPress secrets, run the following action.
66
juju run wordpress-k8s/0 rotate-wordpress-secrets
77
```
88

9-
This action will force users to be logged out. All sessions and cookies will be invalidated.
9+
This action will force users to be logged out. All sessions and cookies will be invalidated.

0 commit comments

Comments
 (0)