diff --git a/.editorconfig b/.editorconfig index 4937613..0a29617 100644 --- a/.editorconfig +++ b/.editorconfig @@ -6,3 +6,5 @@ indent_size = 2 indent_style = space [*.scd] indent_style = tab +[Makefile] +indent_style = tab diff --git a/.gitignore b/.gitignore index ef41b2d..42e9a13 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,2 @@ node_modules/ -capsule/ -gmi.js -gmi.min.js -example/test.html +gmi-web.1 diff --git a/.prettierignore b/.prettierignore deleted file mode 100644 index 90c978b..0000000 --- a/.prettierignore +++ /dev/null @@ -1 +0,0 @@ -example/ diff --git a/README.md b/README.md index 4863486..9fabf68 100644 --- a/README.md +++ b/README.md @@ -119,8 +119,7 @@ See the gmi-web(1) man page for more information # gmi.css -Optimized for readability, predictability and mobile-friendliness. -Ships with a handful of customizable variables. See `man 5 gmi.css`. +Optimized for readability, predictability and mobile-friendliness. Ships with a handful of customizable variables. The `--foreground` and `--background` variables will be inverted when `prefers-color-scheme` is "dark" which is a system-level preference on diff --git a/example/expected.html b/example/expected.html deleted file mode 100644 index b613160..0000000 --- a/example/expected.html +++ /dev/null @@ -1,48 +0,0 @@ - - -
- - - - - -checkout this empty line:
-here's what a blockquote is like-
-preformatted text - means that it already has formatting - which means it should show - - - - as is --
<b>watch out!</b> a gemtext line could have html in it that you'll need to escape!
-. Up-to-date sources can be
-found at https://codeberg.org/talon/gmi-web
-.P
-.SH COPYRIGHT
-This is free and unencumbered software released into the public domain.
-.P
-Anyone is free to copy, modify, publish, use, compile, sell, or
-distribute this software, either in source code form or as a compiled
-binary, for any purpose, commercial or non-commercial, and by any
-means.
-.P
-In jurisdictions that recognize copyright laws, the author or authors
-of this software dedicate any and all copyright interest in the
-software to the public domain. We make this dedication for the benefit
-of the public at large and to the detriment of our heirs and
-successors. We intend this dedication to be an overt act of
-relinquishment in perpetuity of all present and future rights to this
-software under copyright law.
-.P
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
-IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
-OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
-ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
-OTHER DEALINGS IN THE SOFTWARE.
-.P
-For more information, please refer to
diff --git a/gmi-web.1.scd b/gmi-web.1.scd
index a8ee32a..f1b1dbe 100644
--- a/gmi-web.1.scd
+++ b/gmi-web.1.scd
@@ -1,8 +1,8 @@
-gmi-web(1) "1.0.5-rc.2"
+gmi-web(1) "1.0.7-rc.2"
# NAME
-gmi-web - a bridge between Gemini and HTML
+gmi-web - A bridge between Gemini and HTML
# SYNOPSIS
diff --git a/package-lock.json b/package-lock.json
index 0f5fb2d..3c37061 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,6 +1,6 @@
{
"name": "gmi-web-cli",
- "version": "1.0.4-rc.2",
+ "version": "1.0.6-rc.2",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
@@ -58,14 +58,6 @@
"get-intrinsic": "^1.0.2"
}
},
- "clean-css": {
- "version": "5.0.1",
- "resolved": "https://registry.npmjs.org/clean-css/-/clean-css-5.0.1.tgz",
- "integrity": "sha512-F1zAGOowUCg8yxT0O4UR+nmbMauf3YwbiUS60CPxpzJU7ulpamGzQomFrJSK4w/HqHtMmQKSHJUNue+dQQYQdg==",
- "requires": {
- "source-map": "~0.6.0"
- }
- },
"cliui": {
"version": "7.0.4",
"resolved": "https://registry.npmjs.org/cliui/-/cliui-7.0.4.tgz",
diff --git a/package.json b/package.json
index 5c914d8..2d45c68 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "gmi-web-cli",
- "version": "1.0.5-rc.2",
+ "version": "1.0.7-rc.2",
"description": "A bridge between HTML and Gemini",
"main": "html.js",
"type": "module",
@@ -8,8 +8,7 @@
"gmi-web": "cli.js"
},
"man": [
- "./gmi-web.1",
- "./gmi.css.5"
+ "./gmi-web.1"
],
"files": [
"UNLICENSE",
@@ -24,7 +23,6 @@
"prepare": "prettier --write ."
},
"dependencies": {
- "clean-css": "^5.0.1",
"css": "^3.0.0",
"escape-html": "^1.0.3",
"map-stream": "0.0.7",
diff --git a/test.sh b/test.sh
deleted file mode 100755
index 50355ca..0000000
--- a/test.sh
+++ /dev/null
@@ -1,10 +0,0 @@
-rm -rf "example/test.html"
-./cli.js --image jpg --audio mp3 --video mp4 --html en "example/*.gmi"
-if cmp -s "example/test.html" "example/expected.html"; then
- printf "PASS: test.html matches expected.html!\n"
-else
- printf "FAIL: test.html DOES NOT match expected.html!\n"
- cmp "example/test.html" "example/expected.html"
- diff "example/test.html" "example/expected.html"
- exit 1
-fi