Rust library to generate static websites

feat: website tweaks

+29 -10
+1 -1
LICENSE
··· 1 1 MIT License 2 2 3 - Copyright (c) 2024 Bruits 3 + Copyright (c) 2025 Bruits 4 4 5 5 Permission is hereby granted, free of charge, to any person obtaining a copy 6 6 of this software and associated documentation files (the "Software"), to deal
+1
website/assets/bsky.svg
··· 1 + <svg xmlns="http://www.w3.org/2000/svg" width="32" viewBox="0 0 256 226"><path fill="currentColor" d="M55.491 15.172c29.35 22.035 60.917 66.712 72.509 90.686c11.592-23.974 43.159-68.651 72.509-90.686C221.686-.727 256-13.028 256 26.116c0 7.818-4.482 65.674-7.111 75.068c-9.138 32.654-42.436 40.983-72.057 35.942c51.775 8.812 64.946 38 36.501 67.187c-54.021 55.433-77.644-13.908-83.696-31.676c-1.11-3.257-1.63-4.78-1.637-3.485c-.008-1.296-.527.228-1.637 3.485c-6.052 17.768-29.675 87.11-83.696 31.676c-28.445-29.187-15.274-58.375 36.5-67.187c-29.62 5.041-62.918-3.288-72.056-35.942C4.482 91.79 0 33.934 0 26.116C0-13.028 34.314-.727 55.491 15.172"/></svg>
+1 -1
website/assets/discord.svg
··· 1 - <svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><path fill="currentColor" d="M19.27 5.33C17.94 4.71 16.5 4.26 15 4a.1.1 0 0 0-.07.03c-.18.33-.39.76-.53 1.09a16.1 16.1 0 0 0-4.8 0c-.14-.34-.35-.76-.54-1.09c-.01-.02-.04-.03-.07-.03c-1.5.26-2.93.71-4.27 1.33c-.01 0-.02.01-.03.02c-2.72 4.07-3.47 8.03-3.1 11.95c0 .02.01.04.03.05c1.8 1.32 3.53 2.12 5.24 2.65c.03.01.06 0 .07-.02c.4-.55.76-1.13 1.07-1.74c.02-.04 0-.08-.04-.09c-.57-.22-1.11-.48-1.64-.78c-.04-.02-.04-.08-.01-.11c.11-.08.22-.17.33-.25c.02-.02.05-.02.07-.01c3.44 1.57 7.15 1.57 10.55 0c.02-.01.05-.01.07.01c.11.09.22.17.33.26c.04.03.04.09-.01.11c-.52.31-1.07.56-1.64.78c-.04.01-.05.06-.04.09c.32.61.68 1.19 1.07 1.74c.03.01.06.02.09.01c1.72-.53 3.45-1.33 5.25-2.65c.02-.01.03-.03.03-.05c.44-4.53-.73-8.46-3.1-11.95c-.01-.01-.02-.02-.04-.02M8.52 14.91c-1.03 0-1.89-.95-1.89-2.12s.84-2.12 1.89-2.12c1.06 0 1.9.96 1.89 2.12c0 1.17-.84 2.12-1.89 2.12m6.97 0c-1.03 0-1.89-.95-1.89-2.12s.84-2.12 1.89-2.12c1.06 0 1.9.96 1.89 2.12c0 1.17-.83 2.12-1.89 2.12"/></svg> 1 + <svg width="32" height="32" viewBox="0 0 20.99942 16.00414" xmlns="http://www.w3.org/2000/svg"><path fill="currentColor" d="M17.76816 1.33c-1.33-.62-2.77-1.07-4.27-1.33a.1.1 0 0 0-.07.03c-.18.33-.39.76-.53 1.09a16.1 16.1 0 0 0-4.8 0c-.14-.34-.35-.76-.54-1.09-.01-.02-.04-.03-.07-.03-1.5.26-2.93.71-4.27 1.33-.01 0-.02.01-.03.02-2.72 4.07-3.47 8.03-3.1 11.95 0 .02.01.04.03.05 1.8 1.32 3.53 2.12 5.24 2.65.03.01.06 0 .07-.02.4-.55.76-1.13 1.07-1.74.02-.04 0-.08-.04-.09-.57-.22-1.11-.48-1.64-.78-.04-.02-.04-.08-.01-.11.11-.08.22-.17.33-.25.02-.02.05-.02.07-.01 3.44 1.57 7.15 1.57 10.55 0 .02-.01.05-.01.07.01.11.09.22.17.33.26.04.03.04.09-.01.11-.52.31-1.07.56-1.64.78-.04.01-.05.06-.04.09.32.61.68 1.19 1.07 1.74.03.01.06.02.09.01 1.72-.53 3.45-1.33 5.25-2.65.02-.01.03-.03.03-.05.44-4.53-.73-8.46-3.1-11.95-.01-.01-.02-.02-.04-.02m-10.75 9.58c-1.03 0-1.89-.95-1.89-2.12 0-1.17.84-2.12 1.89-2.12 1.06 0 1.9.96 1.89 2.12 0 1.17-.84 2.12-1.89 2.12m6.97 0c-1.03 0-1.89-.95-1.89-2.12 0-1.17.84-2.12 1.89-2.12 1.06 0 1.9.96 1.89 2.12 0 1.17-.83 2.12-1.89 2.12"/></svg>
+1 -1
website/assets/github.svg
··· 1 - <svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><path fill="currentColor" d="M12 2A10 10 0 0 0 2 12c0 4.42 2.87 8.17 6.84 9.5c.5.08.66-.23.66-.5v-1.69c-2.77.6-3.36-1.34-3.36-1.34c-.46-1.16-1.11-1.47-1.11-1.47c-.91-.62.07-.6.07-.6c1 .07 1.53 1.03 1.53 1.03c.87 1.52 2.34 1.07 2.91.83c.09-.65.35-1.09.63-1.34c-2.22-.25-4.55-1.11-4.55-4.92c0-1.11.38-2 1.03-2.71c-.1-.25-.45-1.29.1-2.64c0 0 .84-.27 2.75 1.02c.79-.22 1.65-.33 2.5-.33s1.71.11 2.5.33c1.91-1.29 2.75-1.02 2.75-1.02c.55 1.35.2 2.39.1 2.64c.65.71 1.03 1.6 1.03 2.71c0 3.82-2.34 4.66-4.57 4.91c.36.31.69.92.69 1.85V21c0 .27.16.59.67.5C19.14 20.16 22 16.42 22 12A10 10 0 0 0 12 2"/></svg> 1 + <svg width="32" height="32" viewBox="0 0 20 19.51549" xmlns="http://www.w3.org/2000/svg"><path fill="currentColor" d="M10 0A10 10 0 0 0 0 10c0 4.42 2.87 8.17 6.84 9.5.5.08.66-.23.66-.5v-1.69c-2.77.6-3.36-1.34-3.36-1.34-.46-1.16-1.11-1.47-1.11-1.47-.91-.62.07-.6.07-.6 1 .07 1.53 1.03 1.53 1.03.87 1.52 2.34 1.07 2.91.83.09-.65.35-1.09.63-1.34-2.22-.25-4.55-1.11-4.55-4.92 0-1.11.38-2 1.03-2.71-.1-.25-.45-1.29.1-2.64 0 0 .84-.27 2.75 1.02.79-.22 1.65-.33 2.5-.33.85 0 1.71.11 2.5.33 1.91-1.29 2.75-1.02 2.75-1.02.55 1.35.2 2.39.1 2.64.65.71 1.03 1.6 1.03 2.71 0 3.82-2.34 4.66-4.57 4.91.36.31.69.92.69 1.85V19c0 .27.16.59.67.5C17.14 18.16 20 14.42 20 10A10 10 0 0 0 10 0"/></svg>
+1 -1
website/content/docs/manual-install.md
··· 17 17 maudit = "0.1" 18 18 ``` 19 19 20 - Voilà! You can now use Maudit in your project. Check out the rest of the [documentation](/docs) for more information on how to use Maudit, or if you prefer jumping straght into the code, take a look at the [examples](https://github.com/Princesseuh/maudit/tree/main/examples) and the [API documentation](https://docs.rs/maudit). 20 + Voilà! You can now use Maudit in your project. Check out the rest of the [documentation](/docs) for more information on how to use Maudit, or if you prefer jumping straght into the code, take a look at the [examples](https://github.com/bruits/maudit/tree/main/examples) and the [API documentation](https://docs.rs/maudit).
+21 -3
website/src/layout.rs
··· 1 - use maud::{html, Markup, DOCTYPE}; 1 + use maud::{html, Markup, PreEscaped, DOCTYPE}; 2 2 mod docs_sidebars; 3 3 mod header; 4 4 ··· 53 53 (header(ctx, bottom_border)) 54 54 (main) 55 55 footer.bg-our-black.text-white { 56 - div.container.mx-auto.py-8 { 57 - p.text-center.text-sm.italic { "Maudit" } 56 + div.container.mx-auto.py-8.flex.justify-between.items-center { 57 + div.grow."basis-[0]" { 58 + a.text-md.font-bold href="https://bruits.org" { 59 + "Copyright © 2025 Bruits." 60 + } 61 + br; 62 + a.text-sm href="https://www.netlify.com" { "Site powered by Netlify" } 63 + } 64 + div { (PreEscaped(include_str!("../assets/logo.svg")))} 65 + div.flex.gap-x-6.grow.justify-end."basis-[0]".items-center { 66 + a href="https://bsky.app/profile/bruits.org" { 67 + (PreEscaped(include_str!("../assets/bsky.svg"))) 68 + } 69 + a href="/chat/" { 70 + (PreEscaped(include_str!("../assets/discord.svg"))) 71 + } 72 + a href="https://github.com/bruits/maudit" { 73 + (PreEscaped(include_str!("../assets/github.svg"))) 74 + } 75 + } 58 76 } 59 77 } 60 78 }
+1 -1
website/src/layout/docs_sidebars.rs
··· 30 30 ("Reference", "https://docs.rs/maudit"), 31 31 ( 32 32 "Examples", 33 - "https://github.com/Princesseuh/maudit/tree/main/examples", 33 + "https://github.com/bruits/maudit/tree/main/examples", 34 34 ), 35 35 ]; 36 36
+2 -2
website/src/layout/header.rs
··· 21 21 } 22 22 } 23 23 24 - div.flex.gap-x-3 { 24 + div.flex.gap-x-6 { 25 25 a href="/chat/" { 26 26 (PreEscaped(include_str!("../../assets/discord.svg"))) 27 27 } 28 - a href="https://github.com/Princesseuh/maudit" { 28 + a href="https://github.com/bruits/maudit" { 29 29 (PreEscaped(include_str!("../../assets/github.svg"))) 30 30 } 31 31 }