Skip to content

Commit

Permalink
Merge pull request #39 from GeoJunkie/release/1.1
Browse files Browse the repository at this point in the history
Release/1.1
  • Loading branch information
GeoJunkie authored Feb 5, 2024
2 parents 2966fdd + 39e46d0 commit 0942e29
Show file tree
Hide file tree
Showing 5 changed files with 59 additions and 59 deletions.
5 changes: 5 additions & 0 deletions .deployignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
README.md
.vscode
.github
.gitignore
.git
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Deploy to WordPress.org Repository
on:
release:
# run only when a new release is published, but not when it's classified as a pre-release.
types: [released]
jobs:
deploy_to_wp_repository:
name: Deploy to WP.org
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
# We don't currently need to build the plugin. This will be added in v2.
# - name: Build
# run: |
# npm install
# npm run build
- name: WordPress Plugin Deploy
id: deploy
uses: 10up/action-wordpress-plugin-deploy@stable
with:
generate-zip: true
env:
SVN_USERNAME: ${{ secrets.SVN_USERNAME }}
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}
SLUG: wftda-rankings-widget
- name: Upload release asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ${{ steps.deploy.outputs.zip-path }}
asset_name: ${{ github.event.repository.name }}.zip
asset_content_type: application/zip
65 changes: 9 additions & 56 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,62 +1,15 @@
# WFTDA Rankings Widget
**Contributors:** mikestraw
**Tags:** roller derby, wftda, sports, rankings, stats
**Requires at least:** 3.0.1
**Tested up to:** 5.8
**Stable tag:** 1.0.1
**License:** GPLv2 or later
**License URI:** http://www.gnu.org/licenses/gpl-2.0.html

A widget to show a WFTDA league’s ranking information in a widget.
## Description
Add a widget to your site with the WFTDA stats from stats.wftda.com.

Currently, the widget will scrape the data from http://stats.wftda.com/league/{league}. Once the WFTDA makes an API available, it will use that API.
Currently, the widget will scrape the data from http://stats.wftda.com/team/{team}. Once the WFTDA makes an API available, it will use that API.

**This plugin was developed by a roller derby referee, fan, and league member. It isn’t approved of, endorsed, or part of the Women’s Flat Track Derby Association (WFTDA). I just made this to meet a need in my own league and wanted to share it.**
## Getting the plugin

There are measures in place to ensure we don’t overload the stats site:
* We won’t use live stats unless and until the API has a good way to do that
* Rankings for each league will be stored locally when first retrieved and then refreshed only if the data is over 24 hours old
## Future enhancements
* More configuration options for the widget:
* Choice of which stats to display
* Visual customizations
* Create a block
* Make available as a shortcode
* Add hooks for extendability
* Convert to API when available
## Installation
1. Install directly from WordPress.org, upload `wftda-rankings-widget.zip` under **Plugins > Add New**, or install via WP-CLI using `wp plugin install wftda-rankings-widget`
2. Activate the plugin through the ‘Plugins’ menu in WordPress
3. Add the widget in the Customizer
4. The League Slug should match the portion of the address of your league’s stats after the last slash. e.g., if the address for your league’s stats page is `https://stats.wftda.com/league/super-fantastic-derby`, enter `super-fantastic-derby` under League Slug
## Frequently Asked Questions
### What if it doesn’t work?
* Make sure it’s installed properly
* Make sure your site can read external URLs
* Activate WP_DEBUG and check for any errors
* Ask on the support forums
### Can I help make the plugin better?
* Absolutely! You can contribute [on GitHub](https://github.com/GeoJunkie/league-wftda-ranking)
## Screenshots
### 1. The widget as it appears on the page
The widget as it appears on the page
### 2. Widget settings
Widget settings
## Changelog
### 1.0.2 - 2020-04-12
* Readme updates
* Added an icon
### 1.0.1 - 2020-04-05
* Converted to HTTP API
* Updated league data storage to prevent refreshes on every page load
### 1.0.0 - 2020-03-21
* The initial release
## Upgrade Notice
### 1.0.2
Update to WordPress.org information. Strictly cosmetic
### 1.0.1
Release to WordPress.org
### 1.0.0
Initial plugin release
The most current released version is [available on WordPress.org](https://wordpress.org/plugins/wftda-rankings-widget/). You can also install it directly from your WordPress dashboard.

It can also be downloaded [directly from this repository](https://github.com/GeoJunkie/league-wftda-ranking/releases/latest).

## Contributing

I'm currently working to update the build process, which will also make this more available to contributors. This section will be updated once that process is complete.
11 changes: 9 additions & 2 deletions README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,17 @@
Contributors: mikestraw
Tags: roller derby, wftda, sports, rankings, stats
Requires at least: 3.0.1
Tested up to: 5.8
Stable tag: 4.3
Tested up to: 6.4.3
Stable tag: 1.1.0
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

A widget to show a WFTDA league's ranking information in a widget.

== Description ==

**NOTE:** This widget is not currently compatible with block themes. When installing on WordPress versions 6.0 or higher, you will also need to install the [Classic Widgets plugin](https://wordpress.org/plugins/classic-widgets/).

Add a widget to your site with the WFTDA stats from stats.wftda.com.

Currently, the widget will scrape the data from http://stats.wftda.com/league/{league}. Once the WFTDA makes an API available, it will use that API.
Expand Down Expand Up @@ -38,6 +40,7 @@ There are measures in place to ensure we don't overload the stats site:

1. Install directly from WordPress.org, upload `wftda-rankings-widget.zip` under **Plugins > Add New**, or install via WP-CLI using `wp plugin install wftda-rankings-widget`
1. Activate the plugin through the 'Plugins' menu in WordPress
1. If you are installing on a site with WordPress 6.0 or higher, also install and activate the [Classic Widgets plugin](https://wordpress.org/plugins/classic-widgets/).
1. Add the widget in the Customizer
1. The League Slug should match the portion of the address of your league's stats after the last slash. e.g., if the address for your league's stats page is `https://stats.wftda.com/league/super-fantastic-derby`, enter `super-fantastic-derby` under League Slug

Expand All @@ -61,6 +64,10 @@ There are measures in place to ensure we don't overload the stats site:

== Changelog ==

= 1.1.0 - 2024-02-05 =

* Updated to account for new URL structure on stats.wftda.com

= 1.0.2 - 2020-04-12 =

* Readme updates
Expand Down
2 changes: 1 addition & 1 deletion wftda-rankings-widget.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* Plugin Name: WFTDA Rankings Widget
* Plugin URI: https://wordpress.org/plugins/wftda-rankings-widget/
* Description: A widget to show a WFTDA league's ranking information in a widget.
* Version: 1.0.2
* Version: 1.1.0
* Author: Mike Straw (aka Stray Taco)
* Author URI: http://bit.ly/Stray_Taco
* License: GPL-2.0+
Expand Down

0 comments on commit 0942e29

Please sign in to comment.