commit 52ae36eef20253359adf76b296af93936d35b7d4 Author: Satsuki Akiba Date: Sat Oct 14 18:21:56 2023 +0900 Initial commit diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..486a232 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +*.zip filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0974d9e --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +node_modules +_book diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..083c345 --- /dev/null +++ b/.gitlab-ci.yml @@ -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 diff --git a/book.json b/book.json new file mode 100644 index 0000000..d39e780 --- /dev/null +++ b/book.json @@ -0,0 +1,18 @@ +{ + "root": "./src", + "title": "「モダンからはじめる プログラミング生活!」", + "author": "Satsuki Akiba ", + "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 +} diff --git a/bun.lockb b/bun.lockb new file mode 100755 index 0000000..a18fbaa Binary files /dev/null and b/bun.lockb differ diff --git a/fonts/M_PLUS_1p.zip b/fonts/M_PLUS_1p.zip new file mode 100644 index 0000000..eed6b3d --- /dev/null +++ b/fonts/M_PLUS_1p.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4a580a535bad83a4a2dc4d871798752ad9f34d13ebec20121d16330f75736c73 +size 12348651 diff --git a/fonts/Zen_Maru_Gothic.zip b/fonts/Zen_Maru_Gothic.zip new file mode 100644 index 0000000..83e65e1 --- /dev/null +++ b/fonts/Zen_Maru_Gothic.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:94ff3f221368d03607a5567faf3d369307fa20da3c439da67765261feed976db +size 18860329 diff --git a/package.json b/package.json new file mode 100644 index 0000000..3fc8236 --- /dev/null +++ b/package.json @@ -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" + } +} diff --git a/public/books/.gitignore b/public/books/.gitignore new file mode 100644 index 0000000..d6b7ef3 --- /dev/null +++ b/public/books/.gitignore @@ -0,0 +1,2 @@ +* +!.gitignore diff --git a/src/README.md b/src/README.md new file mode 100644 index 0000000..b0aa546 --- /dev/null +++ b/src/README.md @@ -0,0 +1,5 @@ +# 「モダンからはじめる プログラミング生活!」 + +## このリポジトリについて + +## このリポジトリの使い方、読み進め方 diff --git a/src/SUMMARY.md b/src/SUMMARY.md new file mode 100644 index 0000000..62029f9 --- /dev/null +++ b/src/SUMMARY.md @@ -0,0 +1,3 @@ +# 「モダンからはじめる プログラミング生活!」 + +- [はじめに](README.md)