From 39651a602107ca58f64b9c2368f277cf90993858 Mon Sep 17 00:00:00 2001 From: antanst <> Date: Tue, 3 Jun 2025 12:38:41 +0300 Subject: [PATCH] Fix rendering bugs, update name --- .gitignore | 3 ++ Makefile | 2 +- {pkg/gmi2html/assets => assets}/main.html | 9 +++--- cmd/gmi2html/main.go | 4 +-- pkg/gmi2html/gmi2html.go => gmi2html.go | 32 +++++++++++-------- .../gmi2html_test.go => gmi2html_test.go | 0 go.mod | 2 +- pkg/gmi2html/templates.go => templates.go | 0 8 files changed, 31 insertions(+), 21 deletions(-) create mode 100644 .gitignore rename {pkg/gmi2html/assets => assets}/main.html (90%) rename pkg/gmi2html/gmi2html.go => gmi2html.go (90%) rename pkg/gmi2html/gmi2html_test.go => gmi2html_test.go (100%) rename pkg/gmi2html/templates.go => templates.go (100%) diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..22a9c53 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +/.idea +/.vscode +/dist diff --git a/Makefile b/Makefile index 026341f..8b79493 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -SHELL := /bin/env oksh +SHELL := /bin/sh export PATH := $(PATH) all: fmt lintfix tidy test clean build diff --git a/pkg/gmi2html/assets/main.html b/assets/main.html similarity index 90% rename from pkg/gmi2html/assets/main.html rename to assets/main.html index a05342b..3cebd7c 100644 --- a/pkg/gmi2html/assets/main.html +++ b/assets/main.html @@ -6,7 +6,7 @@ {{.Title}} - +