~sircmpwn/sr.ht-docs

a2f27ee7c1299af5e59431baed74b097b854c040 — наб 23 days ago 6ea6e64
Spec curl --data-binary to not mangle the uploaded README and link to example repo

curl mangles the upload (stripping newlines, probably something else)
with just --data
1 files changed, 4 insertions(+), 2 deletions(-)

M git.sr.ht/index.md
M git.sr.ht/index.md => git.sr.ht/index.md +4 -2
@@ 93,7 93,7 @@ you will be able to run:
curl -H "Authorization: Bearer your-token" \
     -H "Content-Type: text/html"          \
     -XPUT                                 \
     --data @README.html                   \
     --data-binary @README.html            \
     "https://git.sr.ht/api/repos/your-fun-repo/readme"
```



@@ 105,4 105,6 @@ It may be desirable to configure a builds.sr.ht job to compile your README from
another markup format and submit it on each git push; if so, you will need to
review the [build secrets
tutorial](https://man.sr.ht/tutorials/builds.sr.ht/using-build-secrets.md) to
safely store your OAuth token.
safely store your OAuth token. Check out the
[example](https://git.sr.ht/~nabijaczleweli/html-readme) to avoid some common
pitfalls.