From b1f49daa48e147616fd3e17d5aec575e40d53c9b Mon Sep 17 00:00:00 2001 From: Benjamin Oni Date: Fri, 30 Jan 2026 01:12:32 +0100 Subject: [PATCH] feat: add resource-centre theme to WordPress charm Add the resource-centre WordPress theme from canonical/resource-centre-wordpress-theme to the rock build and register it as a supported theme in the charm. --- docs/changelog.md | 4 ++++ src/charm.py | 1 + wordpress_rock/rockcraft.yaml | 9 +++++++++ 3 files changed, 14 insertions(+) diff --git a/docs/changelog.md b/docs/changelog.md index 05f37226..f48a6190 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -8,6 +8,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/). Each revision is versioned by the date of the revision. +## 2025-12-18 + +- feat: Add resource-centre theme to WordPress charm + ## 2025-12-17 - docs: Moved architecture documentation from Explanation to Reference category. diff --git a/src/charm.py b/src/charm.py index 1831c69a..20ed1a01 100755 --- a/src/charm.py +++ b/src/charm.py @@ -69,6 +69,7 @@ class _ReplicaRelationNotReady(Exception): # noqa: N818 (private exception used "launchpad", "light-wordpress-theme", "mscom", + "resource-centre", "thematic", "twentytwentyfive", "twentytwentyfour", diff --git a/wordpress_rock/rockcraft.yaml b/wordpress_rock/rockcraft.yaml index 6835044e..f90f8c6c 100644 --- a/wordpress_rock/rockcraft.yaml +++ b/wordpress_rock/rockcraft.yaml @@ -270,6 +270,14 @@ parts: source-type: git organize: "*": /var/www/html/wp-content/themes/xubuntu-website/ + get-resource-centre: + after: + - wordpress + plugin: dump + source: https://github.com/canonical/resource-centre-wordpress-theme.git + source-type: git + organize: + "*": /var/www/html/wp-content/themes/resource-centre/ # Post-install configuration wordpress-configure: plugin: nil @@ -288,6 +296,7 @@ parts: - get-wp-theme-ubuntustudio-wp - get-wp-theme-launchpad - get-wp-theme-xubuntu-website + - get-resource-centre - get-ubuntu-community-wordpress-theme build-environment: - IMAGE_RUN_USER_ID: 584792