Skip to content

Commit d32690f

Browse files
authored
Merge pull request #181 from sine-fdn/fix-website-styles
Fix styling issues caused by mdbook update
2 parents 818eb5c + cb83b33 commit d32690f

File tree

3 files changed

+10
-37
lines changed

3 files changed

+10
-37
lines changed

.github/workflows/pages.yml

+5-7
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,11 @@ jobs:
1515
- uses: actions/checkout@v4
1616
with:
1717
fetch-depth: 0
18-
- name: Install latest mdbook
19-
run: |
20-
tag=$(curl 'https://api.github.com/repos/rust-lang/mdbook/releases/latest' | jq -r '.tag_name')
21-
url="https://github.com/rust-lang/mdbook/releases/download/${tag}/mdbook-${tag}-x86_64-unknown-linux-gnu.tar.gz"
22-
mkdir mdbook
23-
curl -sSL $url | tar -xz --directory=./mdbook
24-
echo `pwd`/mdbook >> $GITHUB_PATH
18+
- uses: actions-rs/toolchain@v1
19+
with:
20+
toolchain: stable
21+
- name: Install mdbook
22+
run: cargo install --version 0.4.47 mdbook
2523
- name: Build Book
2624
run: |
2725
cd garble_docs && mdbook build

docs/pages/index.md

-29
This file was deleted.

garble_docs/theme/css/general.css

+5-1
Original file line numberDiff line numberDiff line change
@@ -342,6 +342,10 @@ code * {
342342
font-family: ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, Consolas, 'DejaVu Sans Mono', monospace !important;
343343
}
344344

345+
:not(pre):not(a)>code.hljs {
346+
color: #ccc;
347+
}
348+
345349
p {
346350
line-height: 1.6em !important;
347351
margin-block-start: 1.6em;
@@ -372,7 +376,7 @@ a,
372376
padding: 0.1em 0.3em;
373377
border-radius: 3px;
374378
border: 1px solid #333;
375-
background-color: #fff;
379+
background-color: #666;
376380
line-height: 1.8;
377381
}
378382

0 commit comments

Comments
 (0)