diff options
author | metamuffin <metamuffin@disroot.org> | 2025-09-21 19:47:47 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2025-09-21 19:47:49 +0200 |
commit | d72aa72d2797a92d93fab43617e839e5c7f1f442 (patch) | |
tree | 3bd935dbf8df2dcc909cd045cab1b7e489b3464a /server/tools | |
parent | 934f5d5f18dfbb3677bdcde4ba1cb3646af37123 (diff) | |
download | hurrycurry-d72aa72d2797a92d93fab43617e839e5c7f1f442.tar hurrycurry-d72aa72d2797a92d93fab43617e839e5c7f1f442.tar.bz2 hurrycurry-d72aa72d2797a92d93fab43617e839e5c7f1f442.tar.zst |
Small book fixes
Diffstat (limited to 'server/tools')
-rw-r--r-- | server/tools/src/book_html.css | 17 | ||||
-rw-r--r-- | server/tools/src/book_html.rs | 9 | ||||
-rw-r--r-- | server/tools/src/diagram_layout.rs | 1 |
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()?; |