Skip to content

Commit 475bd59

Browse files
authored
Merge pull request #1957 from lean-ja/codex/fix-issues-after-updating-mdbook-to-v0.4.41
fix: update theme for mdBook v0.4.41
2 parents bb18127 + 03a0583 commit 475bd59

File tree

6 files changed

+358
-331
lines changed

6 files changed

+358
-331
lines changed

.devcontainer/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@ RUN curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain ${RUST_VERS
1919
ENV PATH=$PATH:$HOME/.cargo/bin
2020

2121
# mdbook と mdbook のプラグインのインストール
22-
RUN cargo install --version 0.4.40 mdbook && \
22+
RUN cargo install --version 0.4.41 mdbook && \
2323
cargo install --version 1.18.0 mdbook-admonish

.github/CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* [mdbook-admonish](https://github.com/tommilligan/mdbook-admonish) を使用してカードを表示させています。
99

1010
> [!IMPORTANT]
11-
> 開発に使用する mdbook のバージョンは `0.4.40` に固定してください。
11+
> 開発に使用する mdbook のバージョンは `0.4.41` に固定してください。
1212
1313
* [mdgen](https://github.com/Seasawher/mdgen) を Lean ファイルから markdown ファイルを生成するために使用しています。
1414

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
- name: Setup mdBook
3737
uses: peaceiris/actions-mdbook@v2
3838
with:
39-
mdbook-version: '0.4.40'
39+
mdbook-version: '0.4.41'
4040

4141
- name: install mdbook-admonish
4242
uses: baptiste0928/cargo-install@v3

theme/css/general.css

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,14 @@
44
*/
55
/* Base styles and content styles */
66

7-
@import 'variables.css';
8-
97
:root {
108
/* Browser default font-size is 16px, this way 1 rem = 10px */
119
font-size: 62.5%;
1210
color-scheme: var(--color-scheme);
1311
}
1412

1513
html {
14+
/* 日本語を含むコンテンツでも読みやすくするためのフォント指定 */
1615
font-family: "Noto Sans JP", "Fira Sans", sans-serif;
1716
color: var(--fg);
1817
background-color: var(--bg);
@@ -196,6 +195,16 @@ kbd {
196195
vertical-align: middle;
197196
}
198197

198+
sup {
199+
/* Set the line-height for superscript and footnote references so that there
200+
isn't an awkward space appearing above lines that contain the footnote.
201+
202+
See https://github.com/rust-lang/mdBook/pull/2443#discussion_r1813773583
203+
for an explanation.
204+
*/
205+
line-height: 0;
206+
}
207+
199208
:not(.footnote-definition) + .footnote-definition,
200209
.footnote-definition + :not(.footnote-definition) {
201210
margin-block-start: 2em;

0 commit comments

Comments
 (0)