Skip to content

Commit

Permalink
docs: fix static file example
Browse files Browse the repository at this point in the history
  • Loading branch information
cablehead committed May 24, 2024
1 parent c6e5137 commit 6500ae5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
9 changes: 6 additions & 3 deletions examples/static/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,14 @@
Run with:

```bash
http-sh --static-path ./examples/static --port 3333 -- bash -c "echo {}; jq .path"
http-sh -s ./css :3333 -- bash -c '
jo headers="$(jo "content-type"="text/html")" >&4
cat index.html
'
```

Visit: http://localhost:3333

## sanitize.css.gz

CSS is provided by [`sanitize.css`](https://csstools.github.io/sanitize.css/).
Expand All @@ -17,5 +22,3 @@ curl -s -L https://github.com/csstools/sanitize.css/archive/refs/tags/v13.0.0.ta
minify --type=css | \
gzip -c > css/sanitize.css.gz
```


4 changes: 1 addition & 3 deletions examples/static/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
</head>
<body>
<h1>http-sh</h1>
<h2>static file example</h2>
<a href="README.md">README.md</a>
<a href="dynamic-content">dynamic content</a>
<p>hai</a>
</body>
</html>

0 comments on commit 6500ae5

Please sign in to comment.