hypothesis / wp-hypothesis
An open platform for the collaborative evaluation of knowledge.
Installs: 6
Dependents: 0
Suggesters: 0
Security: 0
Stars: 29
Watchers: 22
Forks: 14
Open Issues: 9
Type:wordpress-plugin
Requires
- php: >=7.4
Requires (Dev)
README
Stable versions are available on the Hypothesis plugin page on WordPress.org.
Install this plugin
Via composer
This plugin can be installed with composer, from the standard package registry (packagist.org)
composer require hypothesis/wp-hypothesis
Via WordPress plugins directory
- 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
Development
- 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)
Publishing
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.
Creating a GitHub release
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.