Skip to content

Commit c11f5d5

Browse files
structwafelThinkerDreamer
authored andcommitted
docs: symlink README and add ignore to rust blocks
1 parent dcd819e commit c11f5d5

File tree

2 files changed

+6
-88
lines changed

2 files changed

+6
-88
lines changed

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ axum = "0.8"
2828

2929
Use the `embed_assets!` macro to create a `static_router()` function in scope which will include your static files, embedding them into your binary:
3030

31-
```rust
31+
```rust,ignore
3232
use static_serve::embed_assets;
3333
3434
embed_assets!("assets", compress = true, ignore_paths = ["temp.txt","temp"], cache_busted_paths = ["immutable"]);
@@ -60,8 +60,9 @@ This will:
6060

6161
Use the `embed_asset!` macro to return a function you can use as a GET handler, which will include your static file, embedded into your binary:
6262

63-
```rust
64-
use static_serve::embed_assets;
63+
```rust,ignore
64+
use axum::Router;
65+
use static_serve::embed_asset;
6566
6667
let router: Router<()> = Router::new();
6768
let handler = embed_asset!("assets/my_file.png", compress = true, cache_bust = true);
@@ -96,7 +97,7 @@ The crate automatically handles:
9697

9798
## Example
9899

99-
```rust
100+
```rust,ignore
100101
use axum::{Router, Server};
101102
use static_serve::{embed_assets, embed_asset};
102103

static-serve/README.md

Lines changed: 0 additions & 84 deletions
This file was deleted.

static-serve/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../README.md

0 commit comments

Comments
 (0)