Skip to content

Commit ff7536e

Browse files
authored
Merge branch 'space-wizards:master' into master
2 parents c91a07d + 26f0ba0 commit ff7536e

65 files changed

Lines changed: 4261 additions & 1015 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/deploy.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,14 @@ jobs:
3131
- name: Install mdbook & plugins
3232
uses: taiki-e/install-action@v2.18.6
3333
with:
34-
tool: mdbook@0.4.36,mdbook-admonish@1.14.0,mdbook-linkcheck@0.7.7,mdbook-mermaid@0.12.6,mdbook-template@1.1.0,mdbook-emojicodes@0.3.0
34+
tool: mdbook@0.4.36,mdbook-admonish@1.14.0,mdbook-linkcheck@0.7.7,mdbook-mermaid@0.12.6,mdbook-template@1.1.0,mdbook-emojicodes@0.3.0,mdbook-embedify@0.2.11
3535
- name: Setup Pages
3636
id: pages
3737
uses: actions/configure-pages@v3
3838
- name: Build with mdBook
3939
run: mdbook build
4040
- name: Upload artifact
41-
uses: actions/upload-pages-artifact@v2
41+
uses: actions/upload-pages-artifact@v3
4242
with:
4343
path: ./book/html
4444

@@ -53,4 +53,4 @@ jobs:
5353
steps:
5454
- name: Deploy to GitHub Pages
5555
id: deployment
56-
uses: actions/deploy-pages@v2
56+
uses: actions/deploy-pages@v4

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ jobs:
1717
- name: Install mdbook & plugins
1818
uses: taiki-e/install-action@v2.18.6
1919
with:
20-
tool: mdbook@0.4.36,mdbook-admonish@1.14.0,mdbook-linkcheck@0.7.7,mdbook-mermaid@0.12.6,mdbook-template@1.1.0,mdbook-emojicodes@0.3.0
20+
tool: mdbook@0.4.36,mdbook-admonish@1.14.0,mdbook-linkcheck@0.7.7,mdbook-mermaid@0.12.6,mdbook-template@1.1.0,mdbook-emojicodes@0.3.0,mdbook-embedify@0.2.11
2121
- name: Build with mdBook
2222
run: mdbook build
2323
- name: Upload artifact
24-
uses: actions/upload-artifact@v3
24+
uses: actions/upload-artifact@v4
2525
with:
2626
name: Built Site
2727
path: ./book/html

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,6 @@ book
44
# editor files
55
.*~
66
*.swp
7+
8+
# VSCodium files
9+
.vscode/

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ The following `mdbook` features & plugins are available and in use:
2020
- `mdbook-template`
2121
- `mdbook-admonish`
2222
- `mdbook-emojicodes`
23+
- `mdbook-embedify`
2324

2425
**For information such as how to edit, build & test these docs, see [Guide to Editing Docs](https://spacestation14.io/docs/en/meta/guide-to-editing-docs.html). on the site itself** (or [in this repo](./src/en/meta/guide-to-editing-docs.md))
2526

book.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,11 @@ command = "mdbook-admonish"
1717
[preprocessor.template]
1818
before = ["mermaid","admonish","emojicodes"] # templates can include these so we run this first
1919

20+
[preprocessor.embedify]
21+
2022
[output.html]
2123
additional-js = ['scripts/mermaid.min.js', 'scripts/mermaid-init.js', 'scripts/nav-additions.js']
22-
additional-css = ['theme/mdbook-admonish.css', 'theme/ss14.css', 'theme/nav-style.css']
24+
additional-css = ['theme/compiled/ss14.css']
2325
default-theme = "navy"
2426
preferred-dark-theme = "navy"
2527

scripts/mermaid.min.js

Lines changed: 1287 additions & 710 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

scss/main.scss

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// Build with
2+
// sass ./scss/main.scss ./theme/compiled/ss14.css
3+
// Get sass with "npm install -g sass"
4+
5+
@use "ss14";
6+
@use "ss14-mermaid.scss";
7+
@use "mdbook-admonish";
8+
@use "nav-style";
9+
File renamed without changes.

scss/ss14-mermaid.scss

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
// These all have to be !important because Mermaid sets all of them based on ID matches, which sucks.
2+
3+
html {
4+
--mermaid-sequence-actor-bg: #2d4c5a;
5+
--mermaid-sequence-actor-stroke: #2a3355;
6+
7+
--mermaid-sequence-note-bg: #2d5a44;
8+
--mermaid-sequence-note-stroke: #253d31;
9+
10+
--mermaid-sequence-rect-bg: #21273C;
11+
}
12+
13+
// Light themes.
14+
.light, .rust {
15+
--mermaid-sequence-actor-bg: #cde498;
16+
--mermaid-sequence-actor-stroke: #a6cf47;
17+
18+
--mermaid-sequence-note-bg: #fff5ad;
19+
--mermaid-sequence-note-stroke: #aaaa33;
20+
21+
--mermaid-sequence-rect-bg: #abe5f3;
22+
}
23+
24+
pre.mermaid svg[aria-roledescription="sequence"] {
25+
defs > #arrowhead > path {
26+
fill: var(--fg) !important;
27+
stroke: var(--fg) !important;
28+
}
29+
.actor {
30+
fill: var(--mermaid-sequence-actor-bg) !important;
31+
stroke: var(--mermaid-sequence-actor-stroke) !important;
32+
}
33+
34+
.actor > tspan, .messageText, .loopText, .loopText > tspan, .noteText > tspan {
35+
fill: var(--fg) !important;
36+
}
37+
38+
.actor-line, .messageLine0, .messageLine1, .loopLine {
39+
stroke: var(--fg) !important;
40+
}
41+
42+
.note {
43+
fill: var(--mermaid-sequence-note-bg) !important;
44+
stroke: var(--mermaid-sequence-note-stroke) !important;
45+
}
46+
47+
.rect {
48+
fill: var(--mermaid-sequence-rect-bg) !important;
49+
}
50+
}

0 commit comments

Comments
 (0)