aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBradley Taunt <bt@btxx.org>2024-01-19 14:12:42 -0500
committerBradley Taunt <bt@btxx.org>2024-01-19 14:12:42 -0500
commitf2cc4d87e331b762b79c70b7a8a95960af734480 (patch)
tree872ee7f004fb1499201c1d30d55e78f0195133df
parent07d40116304c24911d716cd161f443efaece739c (diff)
More improvements to the core ssgit fork
-rw-r--r--Makefile2
-rw-r--r--README27
-rw-r--r--build.sh2
-rw-r--r--ssgit.c6
4 files changed, 29 insertions, 8 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..4e2642b
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,2 @@
+build:
+ gcc gituwa.c -o /home/protected/gituwa -lgit2
diff --git a/README b/README
index d0d914b..621b2ca 100644
--- a/README
+++ b/README
@@ -10,15 +10,36 @@ photo of your project and README.
work in progress :)
+differences
+-----------
+
+With ssgit, all icons are included as base64 elements. I have
+also removed the need for image screenshots (plan to revisit
+this option later).
+
+Some different styling has been applied as well, by removing
+absolute CSS link paths.
+
build
-----
-You should have installed libgit2 on your computer, then:
-$ sudo bash build.sh
+This fork is specifically built to run on NearlyFreeSpeech.
+
+First, you will need to request that libgit2 be installed on
+your realm. Also be sure to edit your domain and proper links
+inside the core ssgit.c file.
-This will create an executable in your /usr/bin directory.
+Then you simply run:
+$ make
Usage
-----
+You should create a .bashrc file and setup and alias for gituwa
+(be sure to source your .bashrc after), like so:
+
+alias ssgit="/home/protected/ssgit"
+
+Then you have the ability to use gituwa directly:
+
$ ssgit [repo_path] [output_path] [repository_description]
where repo_path can be a path to bare repository,
diff --git a/build.sh b/build.sh
deleted file mode 100644
index 486fd3a..0000000
--- a/build.sh
+++ /dev/null
@@ -1,2 +0,0 @@
-#!/bin/bash
-gcc ssgit.c -o /usr/bin/ssgit -lgit2
diff --git a/ssgit.c b/ssgit.c
index 49eb3a6..30acc9e 100644
--- a/ssgit.c
+++ b/ssgit.c
@@ -6,7 +6,7 @@
#include <stdbool.h>
#define PATH_MAX 4096
-#define DOMAIN "https://git.bt.ht"
+#define DOMAIN "https://git.btxx.org"
struct Config {
char *output_path;
@@ -16,12 +16,12 @@ struct Config {
};
void header(FILE *f, const char *repo_name, const char *desc) {
- fprintf(f, "<html lang='en'><head><meta charset='UTF-8'><meta name='viewport' content='width=device-width, initial-scale=1.0'><title>%s - %s</title><style>*{box-sizing:border-box;}body{font-family:sans-serif;margin:0 auto;max-width:650px;padding:1rem;}img{max-width:auto;}pre{overflow:auto;}</style></head><body>\n", repo_name, desc);
+ fprintf(f, "<html lang='en'><head><meta charset='UTF-8'><meta name='viewport' content='width=device-width, initial-scale=1.0'><title>%s - %s</title><style>*{box-sizing:border-box;}body{font-family:sans-serif;margin:0 auto;max-width:650px;padding:1rem;}img{max-width:auto;}pre{overflow:auto;}</style></head><body><header><nav><a href="/">git.btxx.org</a></header>\n", repo_name, desc);
}
const char footer[] =
" <footer><hr>\n"
-" built with <a href='https://git.sr.ht/~bt/ssgit'>ssgit</a>\n"
+" built with <a href='https://git.btxx.org/ssgit'>ssgit</a>\n"
" </footer>\n"
" </body>\n"
"</html>\n";