separate markdown files, unbloat rocket

This commit is contained in:
Ponj 2024-11-15 14:50:27 -05:00
parent 67f26fe5f5
commit 78200d2890
Signed by: p6nj
GPG key ID: 6FED68D87C479A59
4 changed files with 4 additions and 7 deletions

View file

@ -6,7 +6,7 @@ edition = "2021"
[dependencies]
amplify = "4.8.0"
md = {version = "1.0.0-alpha.21", package = "markdown"}
rocket = "0"
rocket = {version="0", default-features = false}
shuttle-rocket = "*"
shuttle-runtime = "*"
tokio = "1"

View file

@ -1,10 +1,6 @@
name = "typonomy"
[deploy]
include = [
"dist/*",
]
[build]
assets = [
"dist/*",
"static/*",
]

View file

@ -5,7 +5,7 @@ use markdown::{Markdown, MarkdownConvertError};
#[get("/")]
fn index() -> Result<Markdown, MarkdownConvertError> {
"<h1>Hello, world!</h1>".parse()
include_str!("../static/hello-world.md").parse()
}
#[shuttle_runtime::main]

1
static/hello-world.md Normal file
View file

@ -0,0 +1 @@
<h1>Hello, world!</h1>