From b147ef8aa8c284db8c6d853b7c10100aa21c0056 Mon Sep 17 00:00:00 2001 From: jihchi Date: Mon, 8 Apr 2024 19:32:59 +0200 Subject: [PATCH 1/2] Add "How to run a container" section to readme --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index 07c8ef0..1d181ce 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,16 @@ DEBUG=app:* pnpm start Go to http://localhost:3000 +## Launch a container + +See [here](https://github.com/jihchi/mermaid.ink/pkgs/container/mermaid.ink) for supported tags. + +``` +docker run --cap-add=SYS_ADMIN ghcr.io/jihchi/mermaid.ink +``` + +Go to http://localhost:3000 + ## Troubleshooting ### I'm getting back `HTTP 431 Request Header Fields Too Large` error From 5eb6175c428e4eca8b8adfc6d53364ca1ecdbbae Mon Sep 17 00:00:00 2001 From: jihchi Date: Mon, 8 Apr 2024 19:45:48 +0200 Subject: [PATCH 2/2] Format markdown files --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 706ce6d..6c1c8e2 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,7 @@ "author": "jihchi", "main": "src/index.js", "scripts": { - "format": "prettier --with-node-modules --write \"{src,test}/**/*.{mjs,js,html}\" \"*.{js,cjs,mjs}\"", + "format": "prettier --with-node-modules --write \"{src,test}/**/*.{mjs,js,html}\" \"*.{js,cjs,mjs,md}\"", "start": "node src/index.js", "test": "jest", "test:watch": "pnpm test --watch"