tMerge branch 'master' of src.adamsgaard.dk:src/stagit - stagit - static git page generator
(HTM) git clone git://src.adamsgaard.dk/stagit
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 2ce893356d238e7de8fb6110db6192f690cdf8e2
(DIR) parent 3984292b51190e9d2d93228cc109955e0f4cc42f
(HTM) Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Thu, 2 Jan 2020 10:43:45 +0100
Merge branch 'master' of src.adamsgaard.dk:src/stagit
Diffstat:
M favicon.png | 0
M logo.png | 0
M stagit-index.c | 11 +++++++----
M stagit.c | 4 ++--
4 files changed, 9 insertions(+), 6 deletions(-)
---
(DIR) diff --git a/favicon.png b/favicon.png
Binary files differ.
(DIR) diff --git a/logo.png b/logo.png
Binary files differ.
(DIR) diff --git a/stagit-index.c b/stagit-index.c
t@@ -17,7 +17,8 @@ static git_repository *repo;
static const char *relpath = "";
-static char description[255] = "Repositories";
+static char description[255] = "Anders' Repositories";
+static char home_link[255] = "<a href=\"https://adamsgaard.dk\">Back to adamsgaard.dk</a>";
static char *name = "";
static char owner[255];
t@@ -76,10 +77,12 @@ writeheader(FILE *fp)
fprintf(fp, "</title>\n<link rel=\"icon\" type=\"image/png\" href=\"%sfavicon.png\" />\n", relpath);
fprintf(fp, "<link rel=\"stylesheet\" type=\"text/css\" href=\"%sstyle.css\" />\n", relpath);
fputs("</head>\n<body>\n", fp);
- fprintf(fp, "<table>\n<tr><td><img src=\"%slogo.png\" alt=\"\" width=\"32\" height=\"32\" /></td>\n"
- "<td><span class=\"desc\">", relpath);
+ fprintf(fp, "<table style=\"width:100%%\">\n<tr><td style=\"white-space:nowrap\"><img src=\"%slogo.png\" alt=\"\" width=\"32\" height=\"32\" /></td>\n"
+ "<td style=\"width:99%%\"><span class=\"desc\">", relpath);
xmlencode(fp, description, strlen(description));
- fputs("</span></td></tr><tr><td></td><td>\n"
+ fputs("</span></td>", fp);
+ fprintf(fp, "<td style=\"text-align:right;white-space:nowrap\">%s</td>", home_link);
+ fputs("</tr><tr><td></td><td>\n"
"</td></tr>\n</table>\n<hr/>\n<div id=\"content\">\n"
"<table id=\"index\"><thead>\n"
"<tr><td><b>Name</b></td><td><b>Description</b></td><td><b>Owner</b></td>"
(DIR) diff --git a/stagit.c b/stagit.c
t@@ -57,9 +57,9 @@ static char *strippedname = "";
static char description[255];
static char cloneurl[1024];
static char *submodules;
-static char *licensefiles[] = { "HEAD:LICENSE", "HEAD:LICENSE.md", "HEAD:COPYING" };
+static char *licensefiles[] = { "HEAD:LICENSE", "HEAD:LICENSE.md", "HEAD:LICENSE.txt", "HEAD:LICENSE.rst", "HEAD:COPYING" };
static char *license;
-static char *readmefiles[] = { "HEAD:README", "HEAD:README.md" };
+static char *readmefiles[] = { "HEAD:README", "HEAD:README.md", "HEAD:README.rst", "HEAD:README.txt" };
static char *readme;
static long long nlogcommits = -1; /* < 0 indicates not used */