Initial commit

This commit is contained in:
2023-10-14 18:21:56 +09:00
commit 52ae36eef2
11 changed files with 83 additions and 0 deletions

1
.gitattributes vendored Normal file
View File

@ -0,0 +1 @@
*.zip filter=lfs diff=lfs merge=lfs -text

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
node_modules
_book

23
.gitlab-ci.yml Normal file
View File

@ -0,0 +1,23 @@
image: oven/bun
pages:
stage: deploy
cache:
key:
files:
- bun.lockb
prefix: bun
paths:
- node_modules/
script:
- apt-get update && apt-get install -y calibre --no-install-recommends
- apt-get update && apt-get install -y fontconfig unzip
- unzip "./fonts/*.zip" -d /usr/share/fonts/
&& fc-cache -fv
- bun install
- env LANG=ja_JP.UTF-8 bun run build
- cp -a _book/. public/
artifacts:
paths:
- public/
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH

18
book.json Normal file
View File

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

BIN
bun.lockb Executable file

Binary file not shown.

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

Binary file not shown.

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

Binary file not shown.

23
package.json Normal file
View File

@ -0,0 +1,23 @@
{
"name": "devlifefrommodernway",
"private": true,
"scripts": {
"watch": "run-p watch:web",
"watch:web": "honkit serve",
"build": "run-s build:content",
"build:content": "run-p build:content:*",
"build:content:web": "honkit build",
"build:content:pdf": "honkit pdf . ./public/books/books.pdf",
"build:content:epub": "honkit epub . ./public/books/books.epub",
"build:content:mobi": "honkit mobi . ./public/books/books.mobi"
},
"devDependencies": {
"gitbook-plugin-anchors": "^0.7.1",
"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",
"honkit": "^5.1.1",
"npm-run-all": "^4.1.5"
}
}

2
public/books/.gitignore vendored Normal file
View File

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

5
src/README.md Normal file
View File

@ -0,0 +1,5 @@
# 「モダンからはじめる プログラミング生活!」
## このリポジトリについて
## このリポジトリの使い方、読み進め方

3
src/SUMMARY.md Normal file
View File

@ -0,0 +1,3 @@
# 「モダンからはじめる プログラミング生活!」
- [はじめに](README.md)