9 Commits

Author SHA1 Message Date
7665da5c08 FIX path 2023-10-25 13:43:09 +09:00
630ba71c8f FIX? 2023-10-25 06:05:17 +09:00
ac7e50b940 FIX 2023-10-25 06:05:03 +09:00
5c2ff7aaee Add pdfs fonts 2023-10-25 05:56:25 +09:00
64a5e34538 Additional fix for #3 2023-10-25 05:55:55 +09:00
8a459a7664 Fix some odd Japanese sentences 2023-10-18 01:18:23 +09:00
0c13b9c9d2 Fix; Close #3 2023-10-18 01:18:05 +09:00
0abaa06495 FIX english to japanese 2023-10-17 09:24:53 +09:00
ab21c78fbf FIX 2023-10-17 09:15:10 +09:00
7 changed files with 73 additions and 13 deletions

View File

@ -40,11 +40,11 @@ pages:
- apt-get update && apt-get install -y calibre --no-install-recommends
- apt-get update && apt-get install -y fontconfig unzip sudo
- unzip "./styles/fonts/*.zip" -d /usr/share/fonts/
- unzip "./fonts/*.zip" -d /usr/share/fonts/
&& fc-cache -fv
- mkdir -p /etc/fonts/conf.d &&
cp -a ./styles/fonts/fonts.conf /etc/fonts/conf.d/99-firgenerd.conf &&
cp -a ./fonts/fonts.conf /etc/fonts/conf.d/99-firgenerd.conf &&
fc-cache -fv
- sudo corepack enable

View File

@ -11,8 +11,10 @@
"search-pro-fixed"
],
"styles": {
"website": "./_styles/website.css"
"website": "./_styles/website.css",
"pdf": "./_styles/pdf.css"
},
"pdf.fontFamily": "FirgeNerd",
"pdf.fontSize": 16,
"pdf.paperSize": "a4",
"pdf.embedFonts": true

View File

@ -4,8 +4,8 @@
"scripts": {
"watch": "run-s license && run-p watch:web",
"watch:web": "honkit serve",
"build": "run-s license build:content",
"build:content": "run-p build:content:*",
"build": "run-s build:content",
"build:content": "run-s license && run-p build:content:*",
"build:content:web": "honkit build",
"build:content:pdf": "mkdir -p ./target/ && honkit pdf . ./target/book.pdf",
"build:content:epub": "mkdir -p ./target/ && honkit epub . ./target/book.epub",

View File

@ -1,4 +1,4 @@
# LICENSE Information
# ライセンス情報
## 本文

View File

@ -32,9 +32,9 @@
## 構成と目的
多くのプログラミング教材が** (たった) 一つの**プログラミング言語 (あるいは _framework_) の文法や機能を説明することに重点を置いていますが、
ここではそれらを最小限に抑え、むしろより多くの広い範囲に目を向けます。
多くのプログラミング教材が** (たった) 一つの**プログラミング言語 (あるいは _framework_) の文法や機能を説明することに重点を置いています
しかしここではそれらを最小限に抑え、
様々な領域の開発を通じて**プログラミングと開発**を広く学びます (プログラミング**言語**を広く学ぶわけではないのです!) 。
- 低レイヤプログラミング
@ -54,20 +54,27 @@
- プログラミングにまつわる思想 / 文化
- 複数のプログラミング言語を書く力
- `JavaScript / TypeScript`
- `Rust`
- `C#`
など、プログラミングとは切り離せない周辺分野の知識さえも得られます。
## なぜ複数の言語を学ぶのか
例えば、[X (Twitter)][2] の [Twitter の GitHub][1] [^1] を見てみると、 **Top languages** (プログラミング言語のランキング) は
例えば、[Twitter の GitHub][1] [^1] を見てみると、 **Top languages** (プログラミング言語のランキング) は
- `Scala`
- `Java`
- `Python`
- `JavaScript`
- `C`
となっています。他にも同サービスには `Rust``TypeScript` なども利用されています。
@ -87,6 +94,8 @@
[1]: https://github.com/twitter
[2]: https://x.com/
[^1]: [X (Twitter)][2] は、イーロン氏以降に _Open Source_ 化が進んでいます。
## このリポジトリの使い方、読み進め方
### 用語の表記について
@ -96,7 +105,4 @@
> プログラミング言語 (あるいは _framework_) の文法や機能を …
---
[^1]: [X (Twitter)][2] は、イーロン氏以降に _Open Source_ 化が進んでいます。
[^2]: Google での検索しやすさ。`C language``C-language` `C-lang` などと表記すると Googleablity が高い。
[^2]: Google での検索しやすさ。C 言語は `C` と検索せず、 `C-language` `C-lang` などとすると Googleablity が高い。

41
src/_styles/pdf.css Normal file
View File

@ -0,0 +1,41 @@
@font-face {
font-family: "FirgeNerd";
src: url("./fonts/woff2/FirgeNerd-Regular.woff2") format("woff2");
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: "FirgeNerd";
src: url("./fonts/woff2/FirgeNerd-Bold.woff2") format("woff2");
font-weight: bold;
font-style: normal;
}
.book.font-family-1 {
font-family: "FirgeNerd", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.markdown-section p {
font-size: 1.1em;
}
.markdown-section code,
.markdown-section pre {
font-family: "FirgeNerd", monospace;
}
.markdown-section code {
font-size: 0.9em;
}
/* For hints Plguin */
.hints-container {
/* To be fitted */
padding-right: 15px;
}
.hints-alert {
word-break: break-word;
}

View File

@ -28,3 +28,14 @@
.markdown-section code {
font-size: 0.9em;
}
/* For hints Plguin */
.hints-container {
/* To be fitted */
padding-right: 15px;
}
.hints-alert {
word-break: break-word;
}