Skip to content

Commit 31402e1

Browse files
committed
docs: update to mdbook 5
1 parent 918c163 commit 31402e1

File tree

3 files changed

+6
-17
lines changed

3 files changed

+6
-17
lines changed

docs/book.toml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
[book]
22
authors = ["isabel roses"]
33
language = "en"
4-
multilingual = false
54
src = "src"
65
title = "dotfiles"
76

@@ -13,8 +12,6 @@ create-missing = false
1312
default-theme = "latte"
1413
preferred-dark-theme = "mocha"
1514
git-repository-url = "https://github.com/isabelroses/dotfiles"
16-
git-repository-icon = "fa-code-fork"
15+
# git-repository-icon = "fa-code-fork"
1716
cname = "dotfiles.isabelroses.com"
18-
additional-css = ["./theme/catppuccin.css", "./theme/catppuccin-alerts.css"]
19-
20-
[preprocessor.alerts]
17+
additional-css = ["./theme/catppuccin.css"]

docs/src/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010

1111
<br />
1212

13-
![Preview image](./docs/src/images/main.webp)
13+
![Preview image](./images/main.webp)
1414

15-
![image of my flakes topology](./docs/src/images/topology.png)
15+
![image of my flakes topology](./images/topology.png)
1616

1717
### Foreword
1818

modules/flake/packages/docs/package.nix

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,13 @@ stdenvNoCC.mkDerivation (finalAttrs: {
1616

1717
src = self + /docs;
1818

19-
nativeBuildInputs = [
20-
mdbook
21-
mdbook-alerts
22-
];
19+
nativeBuildInputs = [ mdbook ];
2320

2421
buildPhase = ''
2522
runHook preBuild
2623
2724
mkdir -p theme
2825
cp ${finalAttrs.passthru.catppuccin-mdbook} theme/catppuccin.css
29-
cp ${finalAttrs.passthru.catppuccin-alerts} theme/catppuccin-alerts.css
3026
3127
cp -r ${libdoc} src/lib
3228
@@ -45,16 +41,12 @@ stdenvNoCC.mkDerivation (finalAttrs: {
4541
'';
4642

4743
passthru = {
44+
# TODO: update me when a new version is released
4845
catppuccin-mdbook = fetchurl {
4946
url = "https://github.com/catppuccin/mdBook/releases/download/v3.1.1/catppuccin.css";
5047
hash = "sha256-WSl6UaRfx2jwcDg/ZlDlRbB5zwBD7YIuHHPwFj5ldKM=";
5148
};
5249

53-
catppuccin-alerts = fetchurl {
54-
url = "https://github.com/catppuccin/mdBook/releases/download/v3.1.1/catppuccin-alerts.css";
55-
hash = "sha256-TnOuFi/0LeIj9pwg9dgfyDpd1oZVCN18dvjp8uB+K78=";
56-
};
57-
5850
serve = writeShellApplication {
5951
name = "serve";
6052

0 commit comments

Comments
 (0)