wikimedia / interconnection-wordpress-theme

WordPress theme created for https://diff.wikimedia.org/
GNU General Public License v2.0
3 stars 1 forks source link

Interconnection

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.

Theme details


Installation

Deploy Process

The 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:

Theme development

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