Skip to content

Commit 6ddc284

Browse files
authored
Merge pull request #190 from openzim/various-small-improvements
Various small improvements
2 parents 17ac8b7 + 0302a95 commit 6ddc284

3 files changed

Lines changed: 25 additions & 23 deletions

File tree

.github/workflows/publish.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
name: Publish
22

33
on:
4-
push:
5-
tags:
6-
- 'v?[0-9]+.[0-9]+.[0-9]+'
4+
release:
5+
types: [published]
76

87
jobs:
98
build:
@@ -16,10 +15,6 @@ jobs:
1615
node-version: "18.x"
1716
registry-url: "https://registry.npmjs.org"
1817

19-
- name: Check if tag is created on default branch
20-
if: endsWith(github.event.base_ref, '/main') == false
21-
run: echo "Please create the tag on default branch" && exit -1
22-
2318
- run: npm ci
2419
- run: npm publish
2520
env:

Changelog

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
2.4.0:
2-
* NEW Full localization of the ZIM files (@pavel-karatsiuba #178)
2+
* NEW Full localization system (still no translations) (@pavel-karatsiuba #178)
33
* NEW Harmonisation of the logo (@pavel-karatsiuba #177)
44
* FIX Many CSS odities (@pavel-karatsiuba #178)
55
* FIX Broken favicon links (@pavel-karatsiuba #175)

README.md

Lines changed: 22 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,25 @@
1+
# PhET Simulations scraper
2+
3+
This scraper creates offline versions in [ZIM
4+
format](https://openzim.org) of [PhET science
5+
simulations for Science and Math](https://phet.colorado.edu).
6+
17
<a href="https://play.google.com/store/apps/details?id=org.kiwix.kiwixcustomphet" target="_blank" align="left">
28
<img src="https://play.google.com/intl/en/badges/images/badge_new.png" alt="Get it on Google Play" height="30" />
39
</a>
410

5-
# PhET Simulations scraper
11+
[![npm](https://nodei.co/npm/phetscraper.png)](https://www.npmjs.com/package/phetscraper)
612

7-
This scraper creates offline versions in [ZIM
8-
format](https://openzim.org) of [PhET science
9-
simulations](https://phet.colorado.edu) in the ZIM format.
13+
[![npm](https://img.shields.io/npm/v/phetscraper.svg)](https://www.npmjs.com/package/phetscraper)
14+
[![Docker Image](https://img.shields.io/docker/v/openzim/phet?arch=amd64&label=docker&sort=semver)](https://hub.docker.com/r/openzim/phet)
15+
[![CI](https://github.com/openzim/phet/actions/workflows/ci.yml/badge.svg)](https://github.com/openzim/phet/actions/workflows/ci.yml)
16+
[![CodeFactor](https://www.codefactor.io/repository/github/openzim/phet/badge)](https://www.codefactor.io/repository/github/openzim/phet)
17+
[![Latest ZIM releases](https://img.shields.io/badge/latest-ZIM-%23ff4365)](https://download.kiwix.org/zim/phet/)
18+
[![License](https://img.shields.io/npm/l/phetscraper.svg)](LICENSE)
1019

1120
## Requirements
1221

13-
It requires Node.js v16 or higher.
22+
It requires Node.js version 16 or higher.
1423

1524
## Quick Start
1625

@@ -20,14 +29,6 @@ npm i && npm start
2029

2130
The above will eventually output a ZIM file to ```dist/```
2231

23-
[![NPM](https://nodei.co/npm/phetscraper.png)](https://www.npmjs.com/package/phetscraper)
24-
25-
[![npm](https://img.shields.io/npm/v/phetscraper.svg)](https://www.npmjs.com/package/phetscraper)
26-
[![CI](https://github.com/openzim/phet/actions/workflows/ci.yml/badge.svg)](https://github.com/openzim/phet/actions/workflows/ci.yml)
27-
[![Docker Image](https://img.shields.io/docker/v/openzim/phet?arch=amd64&label=docker&sort=semver)](https://hub.docker.com/r/openzim/phet)
28-
[![Latest ZIM releases](https://img.shields.io/badge/latest-ZIM-%23ff4365)](https://download.kiwix.org/zim/phet/)
29-
[![CodeFactor](https://www.codefactor.io/repository/github/openzim/phet/badge)](https://www.codefactor.io/repository/github/openzim/phet)
30-
3132
## Command line arguments
3233
Available on GET and EXPORT steps only:
3334
```bash
@@ -43,7 +44,7 @@ Available on EXPORT step only:
4344

4445
Example:
4546
```bash
46-
npm run get -- --includeLanguages en ru fr`
47+
npm run get -- --includeLanguages en ru fr
4748
```
4849

4950
## Config
@@ -65,7 +66,7 @@ PHET_VERBOSE_ERRORS=false
6566
This project achieves multiple things:
6667
* Download PhET content
6768
* Generate an Index for said content
68-
* Generate a ZIM file containing content and index
69+
* Generate ZIM file(s) containing content and index
6970

7071
Things this project does not yet do, but should:
7172
* Generate Android APK
@@ -83,3 +84,9 @@ The steps get, transform and export have their own output directories:
8384
* ```get``` outputs HTML and PNG files to ```state/get```
8485
* ```transform``` outputs intermediate files to ```state/transform```
8586
* ```export``` outputs HTML and PNG files to ```state/export``` AND a ZIM file(s) to ```dist/```
87+
88+
License
89+
-------
90+
91+
[Apache](https://www.apache.org/licenses/LICENSE-2.0) or later, see
92+
[LICENSE](LICENSE) for more details.

0 commit comments

Comments
 (0)