Browse Source

Update version, add localization tools.

pull/107/head
Ned Zimmerman 7 years ago
parent
commit
442029bf06
No known key found for this signature in database
GPG Key ID: FF56334A013120CA
  1. 9
      .tx/config
  2. 15
      README.md
  3. 6
      bin/i18n.sh
  4. 2
      composer.json
  5. 127
      package.json
  6. 14
      readme.txt
  7. 6
      style.css

9
.tx/config

@ -0,0 +1,9 @@
[main]
host = https://www.transifex.com
[pressbooks-aldine.pressbooks-aldine]
source_file = languages/pressbooks-aldine.pot
source_lang = en
type = PO
file_filter = languages/<lang>.po
lang_map = de:de_DE, es:es_ES, fr:fr_FR, gl:gl_ES, nb:nb_NO, it:it_IT, ka:ka_GE, ru:ru_RU, ta:ta_LK

15
README.md

@ -6,8 +6,8 @@
**Requires at least:** 4.9.4 **Requires at least:** 4.9.4
**Tested up to:** 4.9.4 **Tested up to:** 4.9.4
**Stable tag:** 1.0.0 **Stable tag:** 1.0.1
**License:** GNU General Public License v3 **License:** GNU General Public License v3 or later
**License URI:** LICENSE **License URI:** LICENSE
Aldine is the default theme for the home page of Pressbooks networks. It is named for the Aldine Press, founded by Aldus Manutius in 1494, who is regarded by many as the world’s first publisher. Aldine is the default theme for the home page of Pressbooks networks. It is named for the Aldine Press, founded by Aldus Manutius in 1494, who is regarded by many as the world’s first publisher.
@ -33,6 +33,17 @@ TK.
## Changelog ## Changelog
# Aldine 1.0.1
#### Patches
- Load header image from `dist` ([#104](https://github.com/pressbooks/pressbooks-aldine/issues/104), props [@steven1350](https://github.com/steven1350) for reporting): [826dc93](https://github.com/pressbooks/pressbooks-aldine/commit/826dc930869041df0ffdd15748f686013fbed54e)
- Prevent page header from overlapping menu in some situations ([#103](https://github.com/pressbooks/pressbooks-aldine/issues/103), props [@beckej13820](https://github.com/beckej13820) for reporting): [df793ac](https://github.com/pressbooks/pressbooks-aldine/commit/df793acda9a4ccd4975056e150862e73f9e8379f)
- Improve display of pages without content ([#102](https://github.com/pressbooks/pressbooks-aldine/issues/102)): [0866e9a](https://github.com/pressbooks/pressbooks-aldine/commit/0866e9afe80f82b7d79dfd5a4d17095ee0bf716b)
- Update activation routine to use shortcodes: [1409a01](https://github.com/pressbooks/pressbooks-aldine/commit/1409a01b7759b6b4117316763957d498a5827692)
- Use a unique cookie name for the network homepage font size setting: [d109496](https://github.com/pressbooks/pressbooks-aldine/commit/d10949677ccc3fee67fbb9b1069c360b2270c779)
# Aldine 1.0.0 # Aldine 1.0.0
#### Customisation & Branding #### Customisation & Branding

6
bin/i18n.sh

@ -0,0 +1,6 @@
#!/bin/bash
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
PARENT="$(dirname $DIR)"
tx push -s
tx pull -a
for file in $PARENT/languages/*.po ; do msgfmt $file -o `echo $file | sed 's/\(.*\.\)po/\1mo/'` ; done

2
composer.json

@ -1,7 +1,7 @@
{ {
"name": "pressbooks/pressbooks-aldine", "name": "pressbooks/pressbooks-aldine",
"type": "wordpress-theme", "type": "wordpress-theme",
"license": "GPL-3.0", "license": "GPL-3.0-or-later",
"description": "description":
"Aldine is the default theme for the home page of Pressbooks networks. It is named for the Aldine Press, founded by Aldus Manutius in 1494, who is regarded by many as the world’s first publisher.", "Aldine is the default theme for the home page of Pressbooks networks. It is named for the Aldine Press, founded by Aldus Manutius in 1494, who is regarded by many as the world’s first publisher.",
"homepage": "https://github.com/pressbooks/pressbooks-aldine/", "homepage": "https://github.com/pressbooks/pressbooks-aldine/",

127
package.json

@ -1,66 +1,65 @@
{ {
"name": "@pressbooks/pressbooks-aldine", "name": "@pressbooks/pressbooks-aldine",
"version": "1.0.0", "version": "1.0.0",
"author": "Pressbooks (Book Oven Inc.) <code@pressbooks.com>", "author": "Pressbooks (Book Oven Inc.) <code@pressbooks.com>",
"homepage": "https://github.com/pressbooks/pressbooks-aldine/", "homepage": "https://github.com/pressbooks/pressbooks-aldine/",
"description": "Aldine is the default theme for the home page of Pressbooks networks. It is named for the Aldine Press, founded by Aldus Manutius in 1494, who is regarded by many as the world’s first publisher.", "description":
"keywords": [ "Aldine is the default theme for the home page of Pressbooks networks. It is named for the Aldine Press, founded by Aldus Manutius in 1494, who is regarded by many as the world’s first publisher.",
"publishing", "keywords": ["publishing", "catalog", "pressbooks", "default-theme"],
"catalog", "private": true,
"pressbooks", "repository": {
"default-theme" "type": "git",
], "url": "git://github.com/pressbooks/pressbooks-aldine.git"
"private": true, },
"repository": { "bugs": {
"type": "git", "url": "https://github.com/pressbooks/pressbooks-aldine/issues"
"url": "git://github.com/pressbooks/pressbooks-aldine.git" },
}, "licenses": [
"bugs": { {
"url": "https://github.com/pressbooks/pressbooks-aldine/issues" "type": "GPL-3.0-or-later",
}, "url":
"licenses": [ "https://github.com/pressbooks/pressbooks-aldine/tree/master/LICENSE.md"
{ }
"type": "GPL-3.0", ],
"url": "https://opensource.org/licenses/GPL-3.0" "browserslist": ["last 2 versions", "android 4", "opera 12"],
} "eslintConfig": {
], "extends": "./node_modules/pressbooks-build-tools/config/eslint.js",
"browserslist": [ "globals": {
"last 2 versions", "$": true,
"android 4", "PB_A11y": true
"opera 12" }
], },
"eslintConfig": { "stylelint": {
"extends": "./node_modules/pressbooks-build-tools/config/eslint.js", "extends": "./node_modules/pressbooks-build-tools/config/stylelint.js"
"globals": { },
"$": true, "scripts": {
"PB_A11y": true "build":
} "cross-env NODE_ENV=development webpack --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js",
}, "build:production":
"stylelint": { "cross-env NODE_ENV=production webpack --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js",
"extends": "./node_modules/pressbooks-build-tools/config/stylelint.js" "build:profile":
}, "cross-env NODE_ENV=production webpack --progress --profile --json --config=node_modules/laravel-mix/setup/webpack.config.js",
"scripts": { "start":
"build": "cross-env NODE_ENV=development webpack --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js", "cross-env NODE_ENV=development webpack --watch --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js",
"build:production": "cross-env NODE_ENV=production webpack --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js", "rmdist": "rimraf dist",
"build:profile": "cross-env NODE_ENV=production webpack --progress --profile --json --config=node_modules/laravel-mix/setup/webpack.config.js", "lint": "npm run -s lint:scripts && npm run -s lint:styles",
"start": "cross-env NODE_ENV=development webpack --watch --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js", "lint:scripts":
"rmdist": "rimraf dist", "cross-env NODE_ENV=development node_modules/eslint/bin/eslint.js \"assets/scripts/*.js\"",
"lint": "npm run -s lint:scripts && npm run -s lint:styles", "lint:styles":
"lint:scripts": "cross-env NODE_ENV=development node_modules/eslint/bin/eslint.js \"assets/scripts/*.js\"", "cross-env NODE_ENV=development node_modules/stylelint/bin/stylelint.js \"assets/styles/**/*.scss\" --syntax scss",
"lint:styles": "cross-env NODE_ENV=development node_modules/stylelint/bin/stylelint.js \"assets/styles/**/*.scss\" --syntax scss", "test": "npm run -s lint"
"test": "npm run -s lint" },
}, "engines": {
"engines": { "node": ">= 6.9.4"
"node": ">= 6.9.4" },
}, "devDependencies": {
"devDependencies": { "pressbooks-build-tools": "^0.11.0"
"pressbooks-build-tools": "^0.11.0" },
}, "dependencies": {
"dependencies": { "aetna": "^1.0.0-alpha.17",
"aetna": "^1.0.0-alpha.17", "isotope-layout": "^3.0.5",
"isotope-layout": "^3.0.5", "jquery-bridget": "^2.0.1",
"jquery-bridget": "^2.0.1", "js-cookie": "^2.2.0",
"js-cookie": "^2.2.0", "wpapi": "^1.1.2"
"wpapi": "^1.1.2" }
}
} }

14
readme.txt

@ -6,8 +6,8 @@ Tags: publishing, catalog, pressbooks, default-theme
Requires at least: 4.9.4 Requires at least: 4.9.4
Tested up to: 4.9.4 Tested up to: 4.9.4
Stable tag: 1.0.0 Stable tag: 1.0.1
License: GNU General Public License v3 License: GNU General Public License v3 or later
License URI: LICENSE License URI: LICENSE
Aldine is the default theme for the home page of Pressbooks networks. It is named for the Aldine Press, founded by Aldus Manutius in 1494, who is regarded by many as the world’s first publisher. Aldine is the default theme for the home page of Pressbooks networks. It is named for the Aldine Press, founded by Aldus Manutius in 1494, who is regarded by many as the world’s first publisher.
@ -28,6 +28,16 @@ TK.
== Changelog == == Changelog ==
=== Aldine 1.0.1 ===
#### Patches
- Load header image from `dist` ([#104](https://github.com/pressbooks/pressbooks-aldine/issues/104), props [@steven1350](https://github.com/steven1350) for reporting): [826dc93](https://github.com/pressbooks/pressbooks-aldine/commit/826dc930869041df0ffdd15748f686013fbed54e)
- Prevent page header from overlapping menu in some situations ([#103](https://github.com/pressbooks/pressbooks-aldine/issues/103), props [@beckej13820](https://github.com/beckej13820) for reporting): [df793ac](https://github.com/pressbooks/pressbooks-aldine/commit/df793acda9a4ccd4975056e150862e73f9e8379f)
- Improve display of pages without content ([#102](https://github.com/pressbooks/pressbooks-aldine/issues/102)): [0866e9a](https://github.com/pressbooks/pressbooks-aldine/commit/0866e9afe80f82b7d79dfd5a4d17095ee0bf716b)
- Update activation routine to use shortcodes: [1409a01](https://github.com/pressbooks/pressbooks-aldine/commit/1409a01b7759b6b4117316763957d498a5827692)
- Use a unique cookie name for the network homepage font size setting: [d109496](https://github.com/pressbooks/pressbooks-aldine/commit/d10949677ccc3fee67fbb9b1069c360b2270c779)
=== Aldine 1.0.0 === === Aldine 1.0.0 ===
#### Customisation & Branding #### Customisation & Branding

6
style.css

@ -2,14 +2,14 @@
Theme Name: Aldine Theme Name: Aldine
Theme URI: https://github.com/pressbooks/pressbooks-aldine/ Theme URI: https://github.com/pressbooks/pressbooks-aldine/
Description: Aldine is the default theme for the home page of Pressbooks networks. It is named for the Aldine Press, founded by Aldus Manutius in 1494, who is regarded by many as the worlds first publisher. Description: Aldine is the default theme for the home page of Pressbooks networks. It is named for the Aldine Press, founded by Aldus Manutius in 1494, who is regarded by many as the worlds first publisher.
Version: 1.0.0 Version: 1.0.1
Author: Pressbooks (Book Oven Inc.) Author: Pressbooks (Book Oven Inc.)
Author URI: https://pressbooks.org Author URI: https://pressbooks.org
Text Domain: pressbooks-aldine Text Domain: pressbooks-aldine
GitHub Theme URI: pressbooks/pressbooks-aldine GitHub Theme URI: pressbooks/pressbooks-aldine
Release Asset: true Release Asset: true
License: GNU General Public License v3 License: GNU GPL v3 or later
License URI: http://opensource.org/licenses/GPL-3.0 License URI: https://github.com/pressbooks/pressbooks-aldine/tree/master/LICENSE.md
Aldine is based on Underscores https://underscores.me/, (C) 2012-2017 Automattic, Inc. Aldine is based on Underscores https://underscores.me/, (C) 2012-2017 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later. Underscores is distributed under the terms of the GNU GPL v2 or later.

Loading…
Cancel
Save