Interconnection is a WordPress theme developed for the Wikimedia community blog, Diff. It was created by Hang Do Thi Duc and is based upon _underscores. It was reviewed by the Brand Studio Team in July 2020.
npm run build
to generate frontend assetsThe release and release-develop versions of the Interconnection theme are built using GitHub Actions. Any time a pull request is merged into the main
or develop
branches, that code is built and pushed to the corresponding release
and release-develop
branches. You should not commit to the release branches directly, nor submit pull requests against them.
Development workflow:
main
main
, and get code reviewdevelop
manually.
release-develop
branch will be automatically rebuiltrelease-develop
branch, to deploy and test the theme PR.main
release
branch will be automatically rebuiltrelease
branch, to deploy the change to production.
"wikimedia/interconnection-wordpress-theme": "dev-release"
, run composer update wikimedia/interconnection-wordpress-theme
then commit the lockfile change with the new build.Run composer install
to enable the use of PHPCS for linting theme code.
Run npm install
to enable the frontend asset build process. The theme currently requires Node v20; if you use nvm, you can run nvm use
(or nvm install v20
) in the theme directory to set the correct version.
Useful commands, all usable from within the theme's root directory:
Command | Description |
---|---|
npm run |
See a list of all available npm commands |
npm run build |
Meta-command to lint and compile the CSS, including RTL |
npm run watch:css |
Monitor sass files for changes and automatically rebuild |
npm run lint:scss |
Check the sass code for errors |
npm run lint:js |
Check the JS files for errors |
composer phpcs |
Check theme PHP files for errors |