Skip to content

Commit ccecd49

Browse files
committed
document migration
1 parent ff0b14a commit ccecd49

File tree

2 files changed

+49
-0
lines changed

2 files changed

+49
-0
lines changed

README.md

+5
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@
55
[open4us]: https://open4us.org/
66

77

8+
## Migration from WordPress to static files
9+
10+
See [`migration/README.md`](migration/README.md)
11+
12+
813
## License
914

1015
[![CC BY 4.0 license button][cc-by-png]][cc-by]

migration/README.md

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# Migration
2+
3+
This site was migrated from WordPress hosted on Pantheon to static files hosted
4+
on GitHub Pages.
5+
6+
Pantheon was dropped as a vendor due to their enabling of hate: [WebOps
7+
platform Pantheon defends hosting “hate groups” as developers quit | Ars
8+
Technica][ars].
9+
10+
[ars]: https://arstechnica.com/tech-policy/2023/04/webops-platform-pantheon-defends-hosting-hate-groups-as-developers-quit/
11+
12+
13+
## WordPress repository
14+
15+
The old WordPress repository was archived:
16+
[cc-archive/open4us-wordpress][ccarchive].
17+
18+
[ccarchive]: https://github.com/cc-archive/open4us-wordpress
19+
20+
21+
## Migration process
22+
23+
Process to migrate from WordPress to static files:
24+
25+
1. Ran site locally using [lando][lando]
26+
2. Installed [Simply Static][simplystatic] WordPress plugin
27+
- Add additional **URLs to Exclude**:
28+
```
29+
https://open4us.lndo.site/xmlrpc.php
30+
https://open4us.lndo.site/wp-includes/wlwmanifest.xml
31+
https://open4us.lndo.site/comments/feed/
32+
```
33+
3. Downloaded generated Simply Static zip file and moved contents into `docs/`
34+
4. Corrected permissions:
35+
```shell
36+
find docs -type f -exec chmod -x {} +
37+
```
38+
5. Added `docs/.nojekyll` (empty file)
39+
6. Ran `./migration/migration/cleanup_html.sh`
40+
- Remove deprected links and meta from HTML files
41+
- Clean-up whitespace in plaintext files
42+
43+
[land]: https://lando.dev/
44+
[simplystatic]: https://wordpress.org/plugins/simply-static/

0 commit comments

Comments
 (0)