aboutsummaryrefslogtreecommitdiff
path: root/server/tools
diff options
context:
space:
mode:
Diffstat (limited to 'server/tools')
-rw-r--r--server/tools/src/book_html.css17
-rw-r--r--server/tools/src/book_html.rs9
-rw-r--r--server/tools/src/diagram_layout.rs1
3 files changed, 21 insertions, 6 deletions
diff --git a/server/tools/src/book_html.css b/server/tools/src/book_html.css
index 9a67de71..fb60eb60 100644
--- a/server/tools/src/book_html.css
+++ b/server/tools/src/book_html.css
@@ -1,3 +1,20 @@
+/*
+ Hurry Curry! - a game about cooking
+ Copyright (C) 2025 Hurry Curry! Contributors
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Affero General Public License as published by
+ the Free Software Foundation, version 3 of the License only.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU Affero General Public License for more details.
+
+ You should have received a copy of the GNU Affero General Public License
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
+
+*/
body {
margin: 0px;
background-color: rgb(74, 74, 74);
diff --git a/server/tools/src/book_html.rs b/server/tools/src/book_html.rs
index 0af9af06..c827fc4a 100644
--- a/server/tools/src/book_html.rs
+++ b/server/tools/src/book_html.rs
@@ -30,7 +30,7 @@ markup::define! {
@markup::doctype()
html {
head {
- style { @include_str!("book_html.css") }
+ style { @include_str!("book_html.css").replace(" ", "").replace("\n", "") }
title { "Recipe Book - Hurry Curry!" }
}
body {
@@ -70,7 +70,7 @@ markup::define! {
MessageR<'a>(data: &'a Gamedata, message: &'a Message) {
@match message {
- Message::Translation { id, params } => {}
+ Message::Translation { id, params } => { @format!("{:?}", (id, params)) }
Message::Text(t) => { @t }
Message::Item(i) => { @data.item_name(*i) }
Message::Tile(i) => { @data.tile_name(*i) }
@@ -84,9 +84,8 @@ markup::define! {
@MessageR { data, message: &node.label }
}
}
- @for edge in &diagram.edges {
-
- }
+ // @for edge in &diagram.edges {
+ // }
}
}
}
diff --git a/server/tools/src/diagram_layout.rs b/server/tools/src/diagram_layout.rs
index 73bfcb96..bfa0a269 100644
--- a/server/tools/src/diagram_layout.rs
+++ b/server/tools/src/diagram_layout.rs
@@ -48,7 +48,6 @@ pub fn diagram_layout(diagram: &mut Diagram) -> Result<()> {
writeln!(out, "k{} -> k{}", edge.src, edge.dst)?;
}
writeln!(out, "}}")?;
- println!("{out}");
child.stdin.as_mut().unwrap().write_all(out.as_bytes())?;
let output = child.wait_with_output()?;