1.0.2-rc.3

This commit is contained in:
Talon Poole 2021-02-20 21:38:58 +00:00
parent 0e7b1f086e
commit 692fd5fe91
3 changed files with 7 additions and 5 deletions

View file

@ -100,7 +100,6 @@ gmi-web --body --css custom.css < doc.gmi
gmi-web auto-detects the need for the `<meta>` color-schemes and allows for using `--inline` to insert the declarations as `style` properties on their respective blocks. Variables defined in `:root` will be picked up and made available for configuration just like gmi-web.css.
```
gmi-web [files..]

7
cli.js
View file

@ -83,12 +83,15 @@ const cli = yargs(process.argv.slice(2))
const CSS_VARS = CSS.rootVariables(CSS.load({ css: "gmi-web.css" }));
Object.keys(CSS_VARS).forEach((key) => {
const opt = key.replace("--", "")
const opt = key.replace("--", "");
cli.option(opt, { default: CSS_VARS[key] });
cli.conflicts(opt, "core");
cli.conflicts(opt, "none");
});
cli.group(Object.keys(CSS_VARS).map(key => key.replace("--", "")), "CSS:");
cli.group(
Object.keys(CSS_VARS).map((key) => key.replace("--", "")),
"CSS:"
);
const argv = cli
.conflicts("author", "body")

View file

@ -1,6 +1,6 @@
{
"name": "gmi-web-cli",
"version": "1.0.1-rc.3",
"version": "1.0.2-rc.3",
"description": "A bridge between HTML and Gemini",
"main": "html.js",
"type": "module",
@ -15,7 +15,7 @@
"README.md",
"CONTRIBUTING.md",
"gmi-web.1",
"core.css",
"gmi-web.css",
"gmi.css",
"html.js",
"css.js",