Skip to content

Commit c4098f7

Browse files
authored
Merge pull request #121 from brklntmhwk/119-add-markdown-ruby-feature
feat(deps): 🆕 add remark ruby plugin and replace ruby syntax
2 parents 750eac6 + c139cf1 commit c4098f7

11 files changed

+41
-36
lines changed

astro.config.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import remarkCard, { type Config as RemarkCardConfig } from 'remark-card';
1818
import remarkDirective from 'remark-directive';
1919
import remarkGfm from 'remark-gfm';
2020
import remarkMath from 'remark-math';
21+
import remarkRubyDirective from 'remark-ruby-directive';
2122
import remarkVideo, { type Config as RemarkVideoConfig } from 'remark-video';
2223
import { iconNameTypes } from './src/lib/astro-integrations/icon-name-type';
2324
import { pagefind } from './src/lib/astro-integrations/pagefind';
@@ -137,6 +138,7 @@ export default defineConfig({
137138
} satisfies RemarkEmbedOptions,
138139
],
139140
remarkLinkCard,
141+
remarkRubyDirective,
140142
remarkLineBreaks,
141143
],
142144
rehypePlugins: [

bun.lockb

7.75 KB
Binary file not shown.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@
9797
"remark-directive": "^3.0.0",
9898
"remark-gfm": "4.0.0",
9999
"remark-math": "6.0.0",
100+
"remark-ruby-directive": "^0.2.0",
100101
"remark-video": "^0.10.0",
101102
"satori": "^0.12.0",
102103
"sharp": "^0.33.5",

src/content/blog/en/build-a-simple-diy-soundproof-vocal-booth-on-a-shelf.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ type: blog
55
title: Build a DIY soundproof vocal booth on a shelf
66
publishedAt: 2024-11-14T05:27:54.903Z
77
fmContentType: blog
8-
modifiedAt: 2025-01-07T08:19:43.786Z
8+
modifiedAt: 2025-01-08T07:55:44.336Z
99
category:
1010
metadata: en/categories
1111
slug: attempt
@@ -192,7 +192,7 @@ So I covered the floor with the sheet and put some cork boards on it. It incredi
192192

193193
Now, it was supposed to be almost all done at this point but it still sounded noisy when I made a fuss in the booth. Hmm...
194194

195-
Speaking of which, I remember someone leaving a famous quote, "Sound leaks from gaps".
195+
Speaking of which, I remember someone leaving a famous quote, "Sound leaks from gaps."
196196
After all, I embarked on installing a curtain in front of the booth. [^3]
197197

198198
[^3]: In addition, I stacked up a wooden board leftover for my work desk whose depth is longer than the top board onto it.
@@ -201,7 +201,7 @@ Having bought a cafe curtain and a tension rod, I dragged book stands that was a
201201

202202
![Book stands and a tension rod feat. hooks](../../../assets/images/diy-booth-curtain-rail.jpg)
203203

204-
After installing the cafe curtain, the first impression I got was, "Isn't it like the photo booth of Purikura?".
204+
After installing the cafe curtain, the first impression I got was, "Isn't it like the photo booth of Purikura?"
205205

206206
![The cafe curtain installed](../../../assets/images/diy-booth-curtain-closed.jpg)
207207

src/content/blog/en/pomodoro-shortcut.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Free pomodoro timer shortcut built only with the genuine Apple Clock app
33
draft: published
44
publishedAt: 2024-08-08T03:05:43.193Z
55
type: blog
6-
modifiedAt: 2025-01-07T08:01:40.661Z
6+
modifiedAt: 2025-01-08T07:56:33.966Z
77
category:
88
slug: attempt
99
metadata: en/categories
@@ -24,7 +24,7 @@ In modern society where productivity and time management are of top priority, th
2424
[The Pomodoro® Technique](https://www.pomodorotechnique.com/) plays a pivotal role as the accelerator and there've been a street full of pomodoro timer apps available in the app stores.
2525

2626
I, a prisoner of time like most people, went to the market and stuck around for a while.
27-
Having tried those tomatoes from A to Z that looked delicious, I couldn't still find anything that made me say "This is it!".
27+
Having tried those tomatoes from A to Z that looked delicious, I couldn't still find anything that made me say "This is it!"
2828
Some have very limited features for free tier users, whereas some have a lot of bells and whistles that I mightn't use.
2929

3030
So I embarked on creating it on my own with the Apple shortcut. As it's a rush job, I can't guarantee you its quality.

src/content/blog/en/split-keyboard-the-endpoint-build.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ type: blog
55
title: Total newbie builds ergonomic split keyboard kit "The Endpoint"
66
publishedAt: 2024-11-22T02:27:47.379Z
77
fmContentType: blog
8-
modifiedAt: 2025-01-08T01:58:10.710Z
8+
modifiedAt: 2025-01-08T07:55:00.188Z
99
category:
1010
metadata: en/categories
1111
slug: attempt
@@ -50,7 +50,7 @@ As of the day I'm writing this article, my proficiency level in this field is as
5050

5151
- A total newbie in building a keyboard from a build kit
5252
- Have tried more than 10 off-the-shelf keyboards
53-
- Haven't done soldering ever since elementary school
53+
- Haven't done soldering ever since more than 10 years ago
5454

5555
## Main
5656

@@ -198,7 +198,7 @@ The capability to adjust it to my shoulder width.
198198
On the other hand, it doesn't include anything like trackball cover, which means your trackball is merely there like a strawberry on top of a strawberry shortcake.
199199
Once you tilt your keyboard outside, it will jump out vigorously and then walk out on you very soon.
200200

201-
I used to be one of them who thought it'd be no problem if using it home only, but reconsidered quickly, "Definitely need something to cover it".
201+
I used to be one of them who thought there'd be no problem as long as using it at home, but reconsidered quickly, "Definitely need something to cover it..."
202202
That's because it's often gone like a pinball game whenever I accidentally hit my keyboard. [^5]
203203

204204
[^5]: I played it 3 times in shorter than 2 weeks. They were all gone too far unbelievably.

src/content/blog/en/total-newbie-builds-mini-itx-linux-pc.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ type: blog
55
title: Total newbie builds Mini-ITX Linux PC (Error after Error)
66
publishedAt: 2024-09-19T01:48:09.453Z
77
fmContentType: blog
8-
modifiedAt: 2025-01-07T07:51:14.938Z
8+
modifiedAt: 2025-01-08T06:59:27.229Z
99
category:
1010
metadata: en/categories
1111
slug: attempt
@@ -17,7 +17,7 @@ tags:
1717
- nixos
1818
- linux
1919
description: A newbie recklessly builds Mini-ITX PC. From the beginner's view, some tricky points are explained through parts selection to OS installation.
20-
thumbnail: 🙃🖥️(;´Д`)
20+
thumbnail: 🙃🖥️🛠️(;´Д`)
2121
---
2222

2323
## Intro

src/content/blog/ja/astro-website.mdx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
---
2-
title: Astro + Cloudflare Pages + D1 + Front Matter CMS で個人ウェブサイトを作った
3-
description: 動画の時代に個人ブログという茨の道を歩みたいオタクなあなたに贈る開発体験記。Astro + Cloudflare Pages + D1 + Front Matter CMS とその他諸々の構成で作った個人ウェブサイトの諸機能を紹介
4-
publishedAt: 2024-07-13T00:35:10.000Z
5-
modifiedAt: 2025-01-07T08:30:14.111Z
62
draft: published
3+
level: 4
74
type: blog
5+
title: Astro + Cloudflare Pages + D1 + Front Matter CMS で個人ウェブサイトを作った
6+
publishedAt: 2024-07-13T00:35:10.000Z
87
category:
98
metadata: ja/categories
109
slug: attempt
@@ -16,7 +15,8 @@ tags:
1615
- front-matter-cms
1716
- cloudflare
1817
- markdown
19-
level: 4
18+
modifiedAt: 2025-01-08T06:40:17.347Z
19+
description: 動画の時代に個人ブログという茨の道を歩みたいオタクなあなたに贈る開発体験記。Astro + Cloudflare Pages + D1 + Front Matter CMS とその他諸々の構成で作った個人ウェブサイトの諸機能を紹介
2020
thumbnail: 🚀🌐🔧 ( •̀ᴗ•́ )و
2121
---
2222

@@ -81,7 +81,7 @@ https://github.com/brklntmhwk/younagi.dev
8181

8282
{/* textlint-disable ja-technical-writing/no-doubled-joshi */}
8383
ユーザの快適なブラウジングライフを支えるのに欠かせないのが検索機能である。
84-
インターネットの古き良き日々(グッドオールドデイズ)に想いを馳せるあまり、検索機能の実装を先延ばしにしてアクセスカウンターを実装することに躍起になっている個人ウェブサイトは後を絶たない。その生き様はとても格好イイと思う。だがしかし、それとこれとは別である。[^1]
84+
インターネットの:ruby[古き良き日々(グッド・オールド・デイズ)]に想いを馳せるあまり、検索機能の実装を先延ばしにしてアクセスカウンターを実装することに躍起になっている個人ウェブサイトは後を絶たない。その生き様はとても格好イイと思う。だがしかし、それとこれとは別である。[^1]
8585

8686
[^1]: ネットの海を回遊しているとしばしば散見されるので、是非マグロにでもなった気分で気持ちよく遊泳してみて欲しい。
8787

@@ -189,7 +189,7 @@ $$
189189

190190
##### コードブロック
191191

192-
開☆発☆者(デベロッパ)として、コードを交えた説明は避けられない宿命である。
192+
:ruby[開☆発☆者(デベロッパ)]として、コードを交えた説明は避けられない宿命である。
193193
そこで、[rehype-pretty-code](https://rehype-pretty.pages.dev/)を使用し、シンタックスハイライトを実装した。シンタックスハイライターは[Shiki](https://shiki.style/)を採用。
194194

195195
```astro title="example.astro" "Astro.props" {6,9}
@@ -442,7 +442,7 @@ D1 データベースと[Drizzle ORM(Object-relational Mapping)](https://orm.dri
442442
- ローカルで記事の執筆や保存ができる
443443
- マークダウン/MDX 形式
444444

445-
VS Code の拡張機能であり、ローカルで動くという点で、他のヘッドレス CMS とは一線を画している。これはつまり、コードの修正や記事の執筆、サイトのデプロイなどの作業が VS Code エディタで一元化できるということだ。特に開☆発☆者(デベロッパ)においては大きなメリットとなるのではないだろうか。
445+
VS Code の拡張機能であり、ローカルで動くという点で、他のヘッドレス CMS とは一線を画している。これはつまり、コードの修正や記事の執筆、サイトのデプロイなどの作業が VS Code エディタで一元化できるということだ。特に:ruby[☆発☆者(デベロッパ)]においては大きなメリットとなるのではないだろうか。
446446

447447
詳細は下記の記事を参照されたし。
448448

src/content/blog/ja/one-month-with-the-ohnishi-keyboard-layout-a-status-update.mdx

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ tags:
1212
metadata: ja/tags
1313
slugList:
1414
- keyboard
15-
modifiedAt: 2025-01-08T02:22:40.660Z
15+
modifiedAt: 2025-01-08T06:45:10.847Z
1616
description: QWERTY配列からの解脱に成功し、晴れて大西配列への入門を果たすまでの記録。プログラミング用途にも耐えうるよう、周辺キーにカスタマイズを施した。
1717
thumbnail: ⌨️🖐️🔄( •̀ω•́ )
1818
---
@@ -23,13 +23,13 @@ thumbnail: ⌨️🖐️🔄( •̀ω•́ )
2323

2424
https://younagi.dev/ja/blog/split-keyboard-the-endpoint-build/
2525

26-
しかし人間(わたし)は欲深い生き物で、キーボードの自作が済んだら今度はキー配列までこねくり回したくなってしまった。
26+
しかし:ruby[人間(わたし)]は欲深い生き物で、キーボードの自作が済んだら今度はキー配列までこねくり回したくなってしまった。
2727

2828
早速キー配列の沼に両足を突っ込んでみたところ、日本では「[大西配列](https://o24.works/layout/)」というキー配列が近年お熱らしく、開発者はあの大西琢磨氏だと言うではないか。[^1]
2929

3030
[^1]: TV で「ギフテッド」というレッテルを貼られて紹介されているのを観たことがあり、予め名前は知っていた。
3131

32-
更に分かったことがある。それは「QWERTY(こ)の支配からの卒業」をモチベーションにしたキー配列が数多く存在しているということだ。そしてそのうえで、私は大西配列をパートナーに選んだ。
32+
更に分かったことがある。それは「:ruby[QWERTY(こ)]の支配からの卒業」をモチベーションにしたキー配列が数多く存在しているということだ。そしてそのうえで、私は大西配列をパートナーに選んだ。
3333

3434
理由は後ほど、推しポイントとして漏れなく紹介するつもりだ。
3535

@@ -107,7 +107,7 @@ https://younagi.dev/ja/blog/split-keyboard-the-endpoint-build/
107107

108108
私にとって「キー配列が覚えやすい」点が最大の決め手となった。ベンチマークの観点からのみ言えば、大西配列よりも魅力的なキー配列は他に幾つかあったのだが、そのどれもが・・覚えづらかった。
109109

110-
対して、大西配列はベンチマーク上の数値、学習曲線、実際の使用感── これらの絶妙なバランスの上に成り立っている。
110+
対して、大西配列はベンチマーク上の数値、:ruby[学習曲線(ラーニング・カーブ)]、実際の使用感── これらの絶妙なバランスの上に成り立っている。
111111
現に、既に手元を見ることなくボチボチ快適にタイピングができるようになった。付き合い始めてまだ一ヶ月だと言うのに。
112112

113113
#### ここが惜しいよ大西配列
@@ -124,7 +124,7 @@ https://younagi.dev/ja/blog/split-keyboard-the-endpoint-build/
124124

125125
#### 大西配列 de プログラミング!
126126

127-
開☆発☆者(デベロッパ)として、大西配列がコーディング用途に耐えうるのか否かは是非とも確認しておきたいところだ。
127+
:ruby[開☆発☆者(デベロッパ)]として、大西配列がコーディング用途に耐えうるのか否かは是非とも確認しておきたいところだ。
128128

129129
・・とはいえ、大西配列ではカンマやピリオド、ダッシュなどの一部を除き、他の記号に関しては「どうぞよしなに」というスタンスをとっている。つまり、大西配列がコーディング用途に耐えうるかどうかは、ほとんどユーザの手にかかっているのだ。[^4]
130130

@@ -133,7 +133,9 @@ QWERTY 配列で Vim(Neovim)のキーバインドに慣れ切ってしまった
133133

134134
ここでもう一度、キー配列の全体像を確認しておこう。
135135

136-
![Remap で The Endpoint に大西配列をキーマップした](../../../assets/images/ohnishi-layout-0.jpg)
136+
![大西配列のキーマップ左手側](../../../assets/images/ohnishi-layout-left-0.jpg)
137+
138+
![大西配列のキーマップ右手側](../../../assets/images/ohnishi-layout-right-0.jpg)
137139

138140
コーディングで頻出する記号について、それぞれの配置は次のようになっている。
139141

src/content/blog/ja/split-keyboard-the-endpoint-build.mdx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ type: blog
55
title: キーボード自作初心者が左右分割型キーボード「The Endpoint」をビルドする
66
publishedAt: 2024-11-22T02:27:47.379Z
77
fmContentType: blog
8-
modifiedAt: 2025-01-07T08:29:48.639Z
8+
modifiedAt: 2025-01-08T06:56:26.636Z
99
category:
1010
metadata: ja/categories
1111
slug: attempt
@@ -20,10 +20,10 @@ thumbnail: ⌨️✨🔧(∩´∀`)∩
2020

2121
## 導入
2222

23-
2020 年に突入し、自作キーボード (略して「自キ」とも) 界隈に或る一大旋風が巻き起こっている。
24-
その台風の目たる彼らは「左右分割型キーボード」を自称し、生産性・効率厨やYouTube で突如としてデスクツアーを押っ始めてしまうようなデスクオタクらを中心にファンを獲得し続けているようだ[^1]
23+
2020 年に突入し、:ruby[自作キーボード(自キ)]界隈に或る一大旋風が巻き起こっている。
24+
その台風の目たる彼らは「左右分割型キーボード」を自称し、効率厨や YouTube で徐にデスクツアーを押っ始めてしまうデスクオタクらを中心にファンを獲得し続けているようだ[^1]
2525

26-
[^1]: 私は 1 つのことをとことん突き詰められる彼らのような人たちを尊敬している。
26+
[^1]: ちなみに私は 1 つのことをとことん突き詰められる彼らのような人たちを尊敬している。
2727

2828
彼らが他と明らかに異なるのは、文字通り左右が完全に分離している点である。これにより、ユーザは各々に合った肩幅でタイピングができるようになるのだ。「これぞ、エルゴノミクス・・!」
2929

@@ -49,7 +49,7 @@ https://note.com/underthrow_/n/n65385d90a76e
4949

5050
- ビルドキットからのキーボード自作において完全な初心者
5151
- これまでに 10 種類を超える既製品キーボードを使ってきた
52-
- はんだ付けは小学校以来
52+
- はんだ付けは 10 年以上ぶり
5353

5454
## 本題
5555

@@ -102,7 +102,8 @@ The Endpoint の素敵なところは、トラックボールの取り付け位
102102
- 電子工作作業マット
103103
- 小物ケース
104104

105-
キーキャップやキースイッチと併せると、優に 30,000 円を超えるシロモノであり、市販のキーボードと比べると決して安くはない。しかし、私は躊躇しなかった。そうして、理想郷への片道切符を手に、行き先の分からない電車へとせっせと乗り込んだ。
105+
キーキャップやキースイッチと併せると、優に 30,000 円を超えるシロモノであり、市販のキーボードと比べると決して安くはない。
106+
しかし、私は躊躇しなかった。そうして、:ruby[理想郷(ユートピア)]への片道切符を手に、行き先も分からぬままホームで待つ電車へと飛び乗った。
106107

107108
### ビルド開始
108109

@@ -150,13 +151,13 @@ The Endpoint の素敵なところは、トラックボールの取り付け位
150151
#### プレートの取り付けが地味に大変
151152

152153
これが終われば、いよいよキースイッチやキャップの取り付けという一番ワクワクするフェーズに突入する── のだが、人生そう甘くはなかった。
153-
ゴールテープはもう目と鼻の先だったのだが、プレートの取り付けには想像以上に手こずった。
154+
ゴールテープを目前に、プレートの取り付けには想像以上に手こずった。
154155

155156
ビルドガイドにも書いてあるが、トッププレートを取り付ける際は、先に四隅だけでもキースイッチを差し込んでおくことが重要であった。[^3]
156157
これは、何も考えずにそのままねじ締めを進めると、プレートが傾いてしまうからだ。
157158
つまり、先にキャップで仮留めを行い、平衡感覚を保ったうえで、ねじをバランスよく締めていくという算段だ。
158159

159-
[^3]: 2024 年 11 月現在。今後、アップデートに伴い記載内容が変更される可能性は大いにある
160+
[^3]: 2024 年 11 月現在。今後、アップデートに伴い記載内容が変更される可能性は大いにある
160161

161162
![プレート仮留めの様子](../../../assets/images/the-endpoint-plates.jpg)
162163

@@ -185,8 +186,7 @@ https://younagi.dev/ja/blog/one-month-with-the-ohnishi-keyboard-layout-a-status-
185186
The Endpoint をビルドして 1 ~ 2 週間程使っているが、キーボードからマウスへの手の移動が無く、非常に快適だ。肩幅に合わせ自由にセッティングできるという、左右分割型キーボードの特権も存分に享受している。
186187

187188
一方で、トラックボールユニットにはカバーのようなものが付属しておらず、言わばお供え物状態である。キーボードを少し傾けるとトラックボールが勢いよく転がり落ちてしまう為、外出先で使用すればたちどころに迷子となること必至だ。
188-
かく言う私も、はじめは自宅に据え置いて使うので問題ないと思っていたのだが、すぐに考えを改めた。
189-
というのも、何かの拍子でキーボードを引っぱたいてしまった時、ボールがピンボールの如く空の彼方へ弾き出されてしまうのだ。[^5]
189+
かく言う私も、はじめは自宅に据え置いて使うので問題ないと思っていたのだが、すぐに考えを改めた。割と高頻度でキーボードにぶつかってしまい、ボールが元気よく空の彼方へ:ruby[往って(ゴーンヌして)]しまうのだ。[^5]
190190

191191
[^5]: 2 週間足らずで既に 3 回ピンボールをプレイし、いずれも思いがけない場所まで飛翔していた。
192192

src/content/blog/ja/total-newbie-builds-mini-itx-linux-pc.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ type: blog
55
title: 【エラーだらけ】PC 自作初心者が Mini-ITX の Linux PC を組み立てる
66
publishedAt: 2024-09-19T01:48:03.469Z
77
fmContentType: blog
8-
modifiedAt: 2025-01-07T07:51:32.701Z
8+
modifiedAt: 2025-01-08T06:59:13.806Z
99
category:
1010
metadata: ja/categories
1111
slug: attempt
@@ -17,7 +17,7 @@ tags:
1717
- nixos
1818
- linux
1919
description: PC 自作初心者が無謀にも Mini-ITX PC の自作に挑戦した記録。パーツ選定からOSインストールまで、初心者目線でつまずいたポイントを解説する
20-
thumbnail: 🙃🖥️(;´Д`)
20+
thumbnail: 🙃🖥️🛠️(;´Д`)
2121
---
2222

2323
## 導入

0 commit comments

Comments
 (0)