From 6ec48f260568ba58886c8046750ae0e39b2cdad6 Mon Sep 17 00:00:00 2001 From: Talon Poole Date: Fri, 29 Jan 2021 23:27:39 +0000 Subject: [PATCH] getting closeeee --- README.md | 8 +++----- cli.js | 3 +-- gmi-web.1 | 11 ++++++++--- gmi-web.1.scd | 8 ++++---- to-html.js | 4 +++- 5 files changed, 19 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index b94582e..a9335eb 100644 --- a/README.md +++ b/README.md @@ -70,15 +70,13 @@ npm install -g git+https://codeberg.org/talon/gmi-web.git man gmi-web ``` -### example - Render .html for all the .gmi files in the current directory ```sh -gmi-web $(find . -name *.gmi) +gmi-web --lang en $(find . -name *.gmi) ``` -## gmi.css +### gmi.css Optimized for readability, predictability, mobile-friendliness and ships with a handful of customizable variables. See `man 5 gmi.css`. @@ -96,7 +94,7 @@ Any of the variables can be customized by adding a style to the `` elemen When using `gmi-web(1)` they can be customized by providing _OPTIONS_ of the same name as the CSS variable. ```sh -gmi-web --foreground "#FFFFF" --background "#00000" *.gmi +gmi-web --lang en --foreground "#FFFFF" --background "#00000" *.gmi ``` # License diff --git a/cli.js b/cli.js index 66c56b6..636daa4 100755 --- a/cli.js +++ b/cli.js @@ -31,7 +31,7 @@ const GMI_CSS_VARS = [ require("yargs") .scriptName("gmi-web") .command( - "$0 [files..]", + "$0 [--lang] [files..]", "Convert .gmi to .html. See gmi-web(1) for more details.", (yargs) => yargs @@ -67,7 +67,6 @@ require("yargs") "gmi.css is included by default. Use --no-css to for the bare-minimum