Skip to content

Commit e158e91

Browse files
authored
chore(deps): use HonKit (#130)
* chore(deps): use HonKit * fix * add pdf * fix * use npx * fix * use custom font * add deploy script
1 parent 9c3f2ac commit e158e91

File tree

12 files changed

+2244
-4896
lines changed

12 files changed

+2244
-4896
lines changed

.github/workflows/deploy.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: test
2+
on:
3+
push:
4+
branches:
5+
- master
6+
env:
7+
CI: true
8+
jobs:
9+
test:
10+
name: "Test on Node.js ${{ matrix.node-version }}"
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
node-version: [12]
15+
steps:
16+
- name: checkout
17+
uses: actions/checkout@v2
18+
- name: setup Node.js ${{ matrix.node-version }}
19+
uses: actions/setup-node@v1
20+
with:
21+
node-version: ${{ matrix.node-version }}
22+
- name: Install
23+
run: npm install
24+
- name: Build
25+
run: npm run build
26+
- name: Test
27+
run: npm test
28+
- name: Build ebook
29+
run: |
30+
docker build . -t honkit
31+
docker run -v `pwd`:`pwd` -w `pwd` honkit node_modules/.bin/honkit pdf . _book/JavaScript-Plugin-Architecture.pdf
32+
docker run -v `pwd`:`pwd` -w `pwd` honkit node_modules/.bin/honkit epub . _book/JavaScript-Plugin-Architecture.epub
33+
docker run -v `pwd`:`pwd` -w `pwd` honkit node_modules/.bin/honkit mobi . _book/JavaScript-Plugin-Architecture.mobi
34+
- name: Deploy
35+
uses: peaceiris/actions-gh-pages@v3
36+
with:
37+
github_token: ${{ secrets.GITHUB_TOKEN }}
38+
publish_dir: ./_book

.github/workflows/test.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: test
2+
on: [push, pull_request]
3+
env:
4+
CI: true
5+
jobs:
6+
test:
7+
name: "Test on Node.js ${{ matrix.node-version }}"
8+
runs-on: ubuntu-latest
9+
strategy:
10+
matrix:
11+
node-version: [12]
12+
steps:
13+
- name: checkout
14+
uses: actions/checkout@v2
15+
- name: setup Node.js ${{ matrix.node-version }}
16+
uses: actions/setup-node@v1
17+
with:
18+
node-version: ${{ matrix.node-version }}
19+
- name: Install
20+
run: npm install
21+
- name: Build
22+
run: npm run build
23+
- name: Test
24+
run: npm test

.travis.yml

Lines changed: 0 additions & 10 deletions
This file was deleted.

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@
1010

1111
## Usage
1212

13-
この書籍は[GitBook](https://github.com/GitbookIO/gitbook "GitBook")を使い書かれています。
13+
この書籍は[HonKit](https://github.com/honkit/honkit)を使い書かれています。
1414

1515
### 表示の確認
1616

17-
`npm start`でGitBookのローカルサーバを立ち上げて表示を確認できます
17+
`npm start`[HonKit](https://github.com/honkit/honkit)のローカルサーバを立ち上げて表示を確認できます
1818

1919
npm start
2020

Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
FROM honkit/honkit:latest
2+
LABEL maintainer="[email protected]"
3+
4+
# Install fonts
5+
COPY fonts/ipaexg00201s /usr/share/fonts

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# JavaScript Plugin Architecture [![Build Status](https://travis-ci.org/azu/JavaScript-Plugin-Architecture.svg?branch=master)](https://travis-ci.org/azu/JavaScript-Plugin-Architecture)
1+
# JavaScript Plugin Architecture [![Actions Status: test](https://github.com/azu/JavaScript-Plugin-Architecture/workflows/test/badge.svg)](https://github.com/azu/JavaScript-Plugin-Architecture/actions?query=workflow%3A"test")
22

33
この書籍はJavaScriptのライブラリやツールにおけるプラグインアーキテクチャについて見ていくことを目的としたものです。
44

book.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"githubId": "azu/JavaScript-Plugin-Architecture",
66
"author": "azu",
77
"pdf": {
8-
"fontFamily": "nato-sans"
8+
"fontFamily": "IPAexMincho"
99
},
1010
"plugins": [
1111
"include-codeblock",

fonts/ipaexg00201s/IPA_Font_License_Agreement_v1.0.txt

Lines changed: 117 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
IPAex�t�H���g�iIPAex�S�V�b�N�j
2+
�\ �͂��߂ɂ��ǂ݂������� �\
3+
4+
IPAex�t�H���g�́AJIS X 0213:2004�ɏ�������TrueType�A�E�g���C���x�[�X��OpenType�t�H���g�ł��B
5+
6+
IPAex�t�H���g�̎g�p�܂��͗��p�ɓ������ẮA�Y�t�́uIPA�t�H���g���C�Z���Xv1.0�v�ɒ�߂�����ɏ]���Ă��������B
7+
IPAex�t�H���g���g�p���A�������A�܂��͔Еz����s�ׁA���̑��A�uIPA�t�H���g���C�Z���Xv1.0�v�ɒ�߂錠���̗��p���s�����ꍇ�A��̎҂́uIPA�t�H���g���C�Z���Xv1.0�v�ɓ��ӂ������̂ƌ��Ȃ��܂��B
8+
9+
10+
IPAex�t�H���g�iIPAex�S�V�b�N�j ipaexg00201.zip
11+
|--�͂��߂ɂ��ǂ݂������� Readme_ipaexg00201.txt
12+
|--IPA�t�H���g���C�Z���Xv1.0 IPA_Font_License_Agreement_v1.0.txt
13+
|--IPAex�S�V�b�N(Ver.002.01) ipaexg.ttf
14+
15+
16+
�uIPA�t�H���g�v�́AIPA�̓o�^���W�ł��B
17+
18+
=========================
19+
IPAex Font (IPAex Gothic)
20+
-- Readme --
21+
22+
IPAex Fonts are JIS X 0213:2004 compliant OpenType fonts based on TrueType outlines.
23+
24+
In using IPAex fonts, please comply with the terms and conditions set out in "IPA Font License Agreement v1.0" included in this package.
25+
Any use, reproduction or distribution of the IPA Font or any exercise of rights under "IPA Font License Agreement v1.0" by a Recipient constitutes the Recipient's acceptance of the License Agreement.
26+
27+
28+
IPAex Font (IPAexGothic) ipaexg00201.zip
29+
|--Readme Readme_ipaexg00201.txt
30+
|--IPA Font License Agreement v1.0 IPA_Font_License_Agreement_v1.0.txt
31+
|--IPAexGothic(Ver.002.01) ipaexg.ttf
32+
33+
34+
"IPA Font" is a registered trademark of IPA in Japan.

fonts/ipaexg00201s/ipaexg.ttf

5.82 MB
Binary file not shown.

0 commit comments

Comments
 (0)