6 Commits

Author SHA1 Message Date
f965677403 Replace all ebooks' fonts with FirgeNerd font 2023-10-15 03:54:09 +09:00
bb93c8cca2 Add fonts.conf 2023-10-15 03:39:21 +09:00
2872b3b432 Update 2023-10-15 02:45:15 +09:00
6dd0859ac0 Update download links 2023-10-15 01:49:28 +09:00
48fbf2cd74 Revert "FIX"
This reverts commit 9cc27bf05a.
2023-10-15 01:45:04 +09:00
ab0e714cf3 FIX 2023-10-15 00:27:52 +09:00
9 changed files with 49 additions and 11 deletions

View File

@ -22,9 +22,10 @@ release:
rules:
- if: $CI_COMMIT_TAG
script:
- 'release-cli create --name "book-$CI_COMMIT_TAG" --tag-name $CI_COMMIT_TAG --assets-link "{\"name\":\"book.pdf\", \"url\":\"${PACKAGE_REGISTRY_URL}/book-${CI_COMMIT_TAG}.pdf\"}"'
- 'release-cli create --name "book-$CI_COMMIT_TAG" --tag-name $CI_COMMIT_TAG --assets-link "{\"name\":\"book.epub\", \"url\":\"${PACKAGE_REGISTRY_URL}/book-${CI_COMMIT_TAG}.epub\"}"'
- 'release-cli create --name "book-$CI_COMMIT_TAG" --tag-name $CI_COMMIT_TAG --assets-link "{\"name\":\"book.mobi\", \"url\":\"${PACKAGE_REGISTRY_URL}/book-${CI_COMMIT_TAG}.mobi\"}"'
- release-cli create --name "book-$CI_COMMIT_TAG" --tag-name $CI_COMMIT_TAG
--assets-link "{\"name\":\"book.pdf\", \"url\":\"${PACKAGE_REGISTRY_URL}/book-${CI_COMMIT_TAG}.pdf\"}"
--assets-link "{\"name\":\"book.epub\", \"url\":\"${PACKAGE_REGISTRY_URL}/book-${CI_COMMIT_TAG}.epub\"}"
--assets-link "{\"name\":\"book.mobi\", \"url\":\"${PACKAGE_REGISTRY_URL}/book-${CI_COMMIT_TAG}.mobi\"}"
image: node:lts-bullseye
pages:
@ -42,8 +43,13 @@ pages:
- unzip "./fonts/*.zip" -d /usr/share/fonts/
&& fc-cache -fv
- mkdir -p /etc/fonts/conf.d &&
cp -a ./fonts/fonts.conf /etc/fonts/conf.d/99-firgenerd.conf &&
fc-cache -fv
- sudo corepack enable
- sudo -u node pnpm install
- sudo -u node env LANG=ja_JP.UTF-8 pnpm run build
- cp -a _book/. public/

View File

@ -1,17 +1,16 @@
{
"root": "./src",
"title": "「モダンからはじめる プログラミング生活!」",
"author": "Satsuki Akiba <anosatsuk124@gmail.com>",
"authorShort": "Satsuki Akiba",
"author": "Satsuki Akiba",
"language": "ja",
"plugins": [
"anchors",
"collapsible-chapters",
"hide-published-with",
"hints"
"hints",
"search-pro-fixed"
],
"pdf.fontSize": 16,
"pdf.fontFamily": "ZenMaruGothic",
"pdf.paperSize": "a4",
"pdf.embedFonts": true
}

BIN
fonts/FirgeNerd_v0.2.0.zip (Stored with Git LFS) Normal file

Binary file not shown.

9
fonts/fonts.conf Normal file
View File

@ -0,0 +1,9 @@
<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
<match target="pattern">
<edit name="family" mode="assign">
<string>FirgeNerd</string>
</edit>
</match>
</fontconfig>

View File

@ -16,6 +16,7 @@
"gitbook-plugin-collapsible-chapters": "^0.1.8",
"gitbook-plugin-hide-published-with": "^0.0.1",
"gitbook-plugin-hints": "^1.0.2",
"gitbook-plugin-search-pro-fixed": "^1.0.1",
"graceful-fs": "^4.2.11",
"honkit": "^5.1.1",
"npm-run-all": "^4.1.5"

10
pnpm-lock.yaml generated
View File

@ -17,6 +17,9 @@ devDependencies:
gitbook-plugin-hints:
specifier: ^1.0.2
version: 1.0.2
gitbook-plugin-search-pro-fixed:
specifier: ^1.0.1
version: 1.0.1
graceful-fs:
specifier: ^4.2.11
version: 4.2.11
@ -816,6 +819,13 @@ packages:
lunr: 0.5.12
dev: true
/gitbook-plugin-search-pro-fixed@1.0.1:
resolution: {integrity: sha512-X6pBgfN54D3Ij+iF4cw44PZCdOvjnqboEoi0bsolEYPzcJOXFiiemxYt+rit95T8UbSaML38o8SCPzl9grM/zA==}
engines: {gitbook: '>=3.0.0'}
dependencies:
html-entities: 1.2.0
dev: true
/gitbook-plugin-search@2.2.1:
resolution: {integrity: sha512-oP9jhaKFUVPo756G9ywuuI43YdkZClSjfpFzNKe/a/Rcn3oVsrAM/PjdQ+dt65KfZVo3iW1LY4WdiZnNqzRP8g==}
engines: {gitbook: '>=3.0.0-pre.0'}

2
public/.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
*
!.gitignore

View File

View File

@ -1,12 +1,20 @@
# 「モダンからはじめる プログラミング生活!」
## 本としてダウンロード
{% hint style="info" %}
[PDF](https://gitlab.com/api/v4/projects/DevLifeFromModernWay%2Fdevlifefrommodernway.gitlab.io/releases/permalink/latest/downloads/book.pdf)
**本としてダウンロード**
[EPUB](https://gitlab.com/api/v4/projects/DevLifeFromModernWay%2Fdevlifefrommodernway.gitlab.io/releases/permalink/latest/downloads/book.epub)
[**Releases**](https://gitlab.com/DevLifeFromModernWay/devlifefrommodernway.gitlab.io/-/releases/permalink/latest) から以下のファイル形式でのダウンロードも可能です。
[MOBI](https://gitlab.com/api/v4/projects/DevLifeFromModernWay%2Fdevlifefrommodernway.gitlab.io/releases/permalink/latest/downloads/book.mobi)
- PDF
- EPUB
- MOBI
**link: <https://gitlab.com/DevLifeFromModernWay/devlifefrommodernway.gitlab.io/-/releases/permalink/latest>**
{% endhint %}
## このリポジトリについて