hypothes.is for WordPress
Stable versions are available on the Hypothesis plugin page on WordPress.org.
This plugin can be installed with composer, from the standard package registry (packagist.org)
composer require hypothesis/wp-hypothesis
- Visit your WordPress plugins page (/wp-admin/plugins.php)
- Click the Add New button
- Search the WordPress plugins directory for Hypothes.is
- Click Install Now.
- Click Activate
- Visit your WordPress Settings > Hypothesis page to configure how it works on your site
- Install
php
and thedom
andmbstring
extensions. - Download Composer, the PHP package manager.
- Run
make dev
. This will start a local WordPress instance with this plugin mounted on it. - Access http://localhost:8080 (the first time you'll have to finish setting up WordPress by following presented instructions)
Follow these steps to publish a new plugin version.
- Update the package version in
hypothesis.php
,readme.txt
andpackage.json
- Update readme.txt, adding the new version with its list of changes, under the
Changelog
section. - Merge the changes into the
main
branch1. We use Semantic Versioning. - Create a tag pointing at the version-change commit and generate a new GitHub release (details follow). Publishing a GitHub release will kick off a GitHub Action that will publish the plugin to wordpress.org
Note
The package will be automatically published in packagist.org just by pushing the new git tag.
Create a new GitHub release with these values:
- Tag: Create a new tag for the release, targeting the
main
branch (your just-merged version bump should be at the tip)2. The tag should match the version number, e.g.v5.2.1
. - Title: Use the tag name.
- Click the
Auto-generate release notes
button to generate release notes and edit as needed. We use Keep a Changelog formatting.3 - Leave other fields alone/as defaults.
Footnotes
-
Unlike other PRs, a version-bump PR does not require review. But do wait for CI to complete first. ↩
-
You can create a tag manually as a separate step if you want to tag a non-tip commit. ↩
-
You can look at release notes for other recent releases as exemplars. You don't need to include every change (especially, e.g., dependency updates). ↩