From 39c670c81f04b95302ae597473a06aca223d27cd Mon Sep 17 00:00:00 2001 From: HexagonCDN Date: Wed, 8 Mar 2023 00:23:53 +0000 Subject: [PATCH] Update 'README.md' (#94) 1. Simplify GreaseMonkey link code - fixes https://codeberg.org/video-prize-ranch/rimgo/issues/93 2. Add `bash` syntax highlighting to code blocks. Reviewed-on: https://codeberg.org/video-prize-ranch/rimgo/pulls/94 Co-authored-by: HexagonCDN Co-committed-by: HexagonCDN --- README.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 9a18209..22f4a7f 100644 --- a/README.md +++ b/README.md @@ -122,7 +122,7 @@ Use [LibRedirect](https://github.com/libredirect/libredirect) to automatically r ### GreaseMonkey script There is a script to redirect Imgur links to rimgo. -[https://codeberg.org/zortazert/GreaseMonkey-Redirect/src/branch/main/imgur-to-rimgo.user.js](https://codeberg.org/zortazert/GreaseMonkey-Redirect/src/branch/main/imgur-to-rimgo.user.js) +https://codeberg.org/zortazert/GreaseMonkey-Redirect/src/branch/main/imgur-to-rimgo.user.js ### Redirector You can use the [Redirector](https://github.com/einaregilsson/Redirector) extension to redirect Imgur links to rimgo with the configuration below: @@ -154,18 +154,18 @@ rimgo can run on any platform Go compiles on. ### Docker (recommended) Install [Docker](https://docs.docker.com/engine/install/) and [docker-compose](https://docs.docker.com/compose/install/), then clone this repository. -``` +```bash git clone https://codeberg.org/video-prize-ranch/rimgo cd rimgo ``` Edit the `docker-compose.yml` file using your favorite text editor. -``` +```bash nvim docker-compose.yml ``` You can now run rimgo. -``` +```bash sudo docker-compose up -d ``` @@ -188,28 +188,28 @@ services: * Go v1.16 or later Clone the repository and `cd` into it. -``` +```bash git clone https://codeberg.org/video-prize-ranch/rimgo cd rimgo ``` Build rimgo. -``` +```bash go build ``` You can now run rimgo. -``` +```bash ./rimgo ``` To include version information use: -``` +```bash go build -ldflags "-X codeberg.org/video-prize-ranch/rimgo/pages.VersionInfo=$(date '+%Y-%m-%d')-$(git rev-list --abbrev-commit -1 HEAD)" ``` (optional) You can use a .env file to set environment variables for configuration. -``` +```bash cp .env.example .env nvim .env ```