File tree 5 files changed +36
-11
lines changed
5 files changed +36
-11
lines changed Original file line number Diff line number Diff line change
1
+ version : 2
2
+ updates :
3
+ - package-ecosystem : " github-actions"
4
+ directory : " /"
5
+ schedule :
6
+ interval : " weekly"
7
+ reviewers :
8
+ - " tcpipuk"
Original file line number Diff line number Diff line change @@ -115,9 +115,9 @@ jobs:
115
115
curl -sSfL -o theme/catppuccin-admonish.css \
116
116
https://github.com/catppuccin/mdBook/releases/latest/download/catppuccin-admonish.css
117
117
118
- # Download default theme's index.hbs for customization
118
+ # Download default theme's index.hbs for customisation
119
119
curl -sSfL -o theme/index.hbs \
120
- https://raw.githubusercontent.com/rust-lang/mdBook/master/src/theme /index.hbs
120
+ https://raw.githubusercontent.com/rust-lang/mdBook/refs/heads/ master/src/front-end/templates /index.hbs
121
121
122
122
# Update index.hbs theme options
123
123
sed -i 's/Light/Latte/; s/Rust/Frappé/; s/Coal/Macchiato/; s/Navy/Mocha/; /Ayu/d' theme/index.hbs
@@ -149,6 +149,11 @@ jobs:
149
149
-o src/assets/whichlang.js \
150
150
https://raw.githubusercontent.com/phoenixr-codes/mdbook-whichlang/master/dist/whichlang.js
151
151
152
+ # Mermaid JS
153
+ curl -sSf \
154
+ -o src/assets/mermaid.min.js \
155
+ https://cdn.jsdelivr.net/npm/mermaid/dist/mermaid.min.js
156
+
152
157
- name : Build the mdBook Site
153
158
run : mdbook build
154
159
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ create-missing = true
12
12
13
13
[output .html ]
14
14
default-theme = " latte"
15
- preferred-dark-theme = " mocha "
15
+ preferred-dark-theme = " macchiato "
16
16
# URL to send visitors who click edit
17
17
edit-url-template = " https://github.com/tcpipuk/tcpipuk.github.io/edit/main/{path}"
18
18
# Remove numbers before each item in the sidebar
@@ -30,11 +30,19 @@ additional-css = [
30
30
" ./theme/catppuccin.css" ,
31
31
" ./theme/catppuccin-admonish.css" ,
32
32
]
33
- additional-js = [" src/assets/table-of-contents.js" , " src/assets/whichlang.js" ]
33
+ additional-js = [
34
+ " src/assets/table-of-contents.js" ,
35
+ " src/assets/whichlang.js" ,
36
+ " src/assets/mermaid.min.js" ,
37
+ " src/assets/mermaid-init.js" ,
38
+ ]
34
39
35
40
[preprocessor .footnote ]
36
41
37
42
[preprocessor .graphviz ]
38
43
after = [" links" ]
39
44
command = " mdbook-graphviz"
40
45
output-to-file = false
46
+
47
+ [preprocessor .mermaid ]
48
+ command = " mdbook-mermaid"
Original file line number Diff line number Diff line change
1
+ mermaid . initialize ( {
2
+ securityLevel : "loose" ,
3
+ theme : "dark" ,
4
+ } ) ;
Original file line number Diff line number Diff line change @@ -34,16 +34,16 @@ Here's a diagram of how requests should flow once we're done:
34
34
35
35
``` mermaid
36
36
graph TD;
37
- A[Client\nRequests ] --> B[Client Sync &\nStream Writers];
38
- A --> C[Main\nProcess ];
37
+ A[Client<br>Requests ] --> B[Client Sync &<br>Stream Writers];
38
+ A --> C[Main<br>Process ];
39
39
C --> B;
40
- C --> E[Background &\nEvent Writer];
41
- A --> D[Room\nWorkers ];
42
- F[Federation\nRequests ] --> D;
43
- F --> G[Federation\nReader ]
40
+ C --> E[Background &<br>Event Writer];
41
+ A --> D[Room<br>Workers ];
42
+ F[Federation<br>Requests ] --> D;
43
+ F --> G[Federation<br>Reader ]
44
44
G --> B;
45
45
G --> E;
46
- H[Media\nRequests ] --> I[Media\nRepository ];
46
+ H[Media<br>Requests ] --> I[Media<br>Repository ];
47
47
```
48
48
49
49
- ** Main Process** : Some requests can only go to the Synapse main process, but we also send client
You can’t perform that action at this time.
0 commit comments