git home / emma home
logo

sgw

Static git web. Emma's fork of stagit.
git clone https://git.y1.nz/archives/sgw.tar.gz
README | Files | Log | Refs | LICENSE

config.h


      1 /* Only macros! :) */
      2 
      3 #define INDEX_DEST  "index.html"
      4 #define INDEX_LINK  readme == NULL ? "files.html" : "files/%s.html", readme
      5 // TODO index header/footer?
      6 #define INDEX_STYLE_HREF  "/style.css" // TODO wire
      7 #define INDEX_LOGO_SRC  "/logo.webp"
      8 #define INDEX_LOGO_HREF  ""
      9 
     10 #define PAGE_DEST  "%s", repo_name
     11 #define PAGE_HEADER  "<p>bonjour!</p>"
     12 #define PAGE_FOOTER  "<p><i>This webpage is intended to be an accessible " \
     13 "preview of this repository. To get a fuller picture, clone it and use the " \
     14 "git CLI."
     15 #define PAGE_STYLE_HREF  "/style.css"
     16 #define PAGE_LOGO_SRC  "/logo.webp"
     17 #define PAGE_LOGO_HREF  "/index.html"
     18 
     19 #define DIR_PAGES  0 /* generate a page for each dir in a repo */
     20 #define BACKLINKS  1 /* include ".." in directories */
     21 #define MAX_COMMITS  10
     22 
     23 #define LICENSE_FILES  "HEAD:LICENSE", "HEAD:LICENSE.md", \
     24                        "HEAD:LICENSE.txt", "HEAD:COPYING"
     25 #define README_FILES  "HEAD:README", "HEAD:README.md"

This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.