Skip to content

Commit 194ba32

Browse files
committed
engage: fix build with mdbook 0.5
Update engage documentation build for mdbook 0.5 compatibility. Changes: - Remove deprecated 'multilingual' field from book.toml - Update git-repository-icon from 'fa-git-square' to 'fab-square-git' The 'multilingual' field was removed in mdbook 0.5 as it was never used. The FontAwesome icon name changed from 'fa-git-square' (FA 4) to 'fab-square-git' (FA 5 brand icon) in the version bundled with mdbook 0.5.
1 parent e7f30ad commit 194ba32

2 files changed

Lines changed: 21 additions & 0 deletions

File tree

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
--- a/book.toml
2+
+++ b/book.toml
3+
@@ -1,6 +1,5 @@
4+
[book]
5+
language = "en"
6+
-multilingual = false
7+
src = "book"
8+
title = "Engage"
9+
10+
@@ -8,5 +7,5 @@ build-dir = "public"
11+
12+
[output.html]
13+
-git-repository-icon = "fa-git-square"
14+
+git-repository-icon = "fab-square-git"
15+
git-repository-url = "https://gitlab.computer.surgery/charles/engage"
16+

pkgs/by-name/en/engage/package.nix

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ rustPlatform.buildRustPackage (finalAttrs: {
2828
hash = "sha256-n7ypFJBYT712Uzh1NnWWSOIpEDKR0e6sQxbiIN6pZgo=";
2929
};
3030

31+
patches = [
32+
# Support mdbook 0.5.x - remove deprecated multilingual field
33+
./mdbook-0.5-support.patch
34+
];
35+
3136
cargoHash = "sha256-UTIxxPBtxzsZilxriAT8ksl2ovoDzIhB+8f+b2cGN3k=";
3237

3338
nativeBuildInputs = [

0 commit comments

Comments
 (0)