Skip to content

Commit 1a5f2f6

Browse files
author
hg-anssi
committed
mdbook-code-align
1 parent 08f4dc6 commit 1a5f2f6

File tree

10 files changed

+3232
-0
lines changed

10 files changed

+3232
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ jobs:
1616
uses: actions/checkout@v3
1717
- name: Prepare
1818
run: cargo install mdbook mdbook-checklist
19+
- name: Install mdbook-code-align
20+
run: cargo install --path ./mdbook-code-align
1921
- name: Build EN version
2022
run: |
2123
./lang.sh en

book.toml.en

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,6 @@ additional-css = [
1919

2020
[preprocessor.checklist]
2121
title = "Recommendations checklist"
22+
23+
[preprocessor.code-align]
24+
after = ["links"]

book.toml.fr

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,6 @@ additional-css = [
1919

2020
[preprocessor.checklist]
2121
title = "Liste des recommandations"
22+
23+
[preprocessor.code-align]
24+
after = ["links"]

flake.nix

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,18 @@
4747

4848
});
4949

50+
mdbook-code-align = pkgs.rustPlatform.buildRustPackage (finalAttrs: rec {
51+
pname = "mdbook-code-align";
52+
version = "0.1.0";
53+
54+
src = ./mdbook-code-align;
55+
56+
cargoLock = {
57+
lockFile = "${src}/Cargo.lock";
58+
};
59+
60+
});
61+
5062
mdbook-shiftinclude = pkgs.rustPlatform.buildRustPackage (finalAttrs: rec {
5163
pname = "mdbook-shiftinclude";
5264
version = "0.1.0";
@@ -72,6 +84,7 @@
7284
bash
7385
mdbook-checklist
7486
mdbook-shiftinclude
87+
mdbook-code-align
7588
];
7689
};
7790
}

mdbook-code-align/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/target

0 commit comments

Comments
 (0)