templates/index: update the description

Give a quick rundown of how to use the pastebin

Signed-off-by: Gunwant Jain <mail@wantguns.dev>
This commit is contained in:
Gunwant Jain
2021-07-08 21:57:59 +05:30
parent 7726a0e0ee
commit 8a3b29a0ef

View File

@@ -60,22 +60,32 @@ button[type="submit"].hidden { display: none; }
bin(3) BIN bin(3) bin(3) BIN bin(3)
NAME NAME
bin - A highly opinionated and minamalistic Pastebin bin - A highly opinionated and minamalistic Pastebin
WEB USAGE ROUTES
GET /<id>
Get raw pastes
GET /p/<id>
Get highlighted pastes
GET /p/<id>.<ext>
Get syntax highlighted pastes.
E.g. https://bin.wantguns.dev/p/foobaz.cpp should return a C++ syntax
highlighted paste
Drag a file and drop it here, WEB USAGE
or After typing, press the big yellow button to paste, or Drag a file and drop it here, or
Just press Ctrl + Enter once done. Paste an image from your clipboard using Ctrl + v, or
After typing, press the big yellow button to paste, or
Just press Ctrl + Enter once done typing.
Tip: Set your browser's monospace font to the one you prefer
CLI USAGE CLI USAGE
curl \ curl \
-Ls -o /dev/null \ -Ls -o /dev/null \
-w %{url_effective} \ -w %{url_effective} \
--data-binary @file.txt \ --data-binary @file.txt \
https://bin.wantguns.dev https://bin.wantguns.dev | tee >(xclip -selection clipboard)
Better use cases of CLI mentioned at Github Better use cases of CLI mentioned at Github
@@ -84,8 +94,6 @@ SEE ALSO
AUTHOR AUTHOR
Gunwant Jain Gunwant Jain
2021-06-20 bin(3)
" autofocus autocomplete="off" autocorrect="off" autocapitalize="off" " autofocus autocomplete="off" autocorrect="off" autocapitalize="off"
spellcheck="false"></textarea> spellcheck="false"></textarea>