GithubHelp home page GithubHelp logo

hypothesis / wp-hypothesis Goto Github PK

View Code? Open in Web Editor NEW
29.0 22.0 14.0 194 KB

Hypothesis WordPress plugin

Home Page: https://wordpress.org/plugins/hypothesis/

License: Other

PHP 91.52% JavaScript 5.12% Makefile 3.37%

wp-hypothesis's Introduction

hypothes.is for WordPress

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

  1. Visit your WordPress plugins page (/wp-admin/plugins.php)
  2. Click the Add New button
  3. Search the WordPress plugins directory for Hypothes.is
  4. Click Install Now.
  5. Click Activate
  6. Visit your WordPress Settings > Hypothesis page to configure how it works on your site

Development

  1. Install php and the dom and mbstring extensions.
  2. Download Composer, the PHP package manager.
  3. Run make dev. This will start a local WordPress instance with this plugin mounted on it.
  4. 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.

  1. Update the package version in hypothesis.php, readme.txt and package.json
  2. Update readme.txt, adding the new version with its list of changes, under the Changelog section.
  3. Merge the changes into the main branch1. We use Semantic Versioning.
  4. 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:

  1. 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.
  2. Title: Use the tag name.
  3. Click the Auto-generate release notes button to generate release notes and edit as needed. We use Keep a Changelog formatting.3
  4. Leave other fields alone/as defaults.

License

BSD-3-Clause

Footnotes

  1. Unlike other PRs, a version-bump PR does not require review. But do wait for CI to complete first.

  2. You can create a tag manually as a separate step if you want to tag a non-tip commit.

  3. 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).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.