git.y1.nz

sgw

Static git web (fork of stagit)
download: https://git.y1.nz/archives/sgw.tar.gz
README | Files | Log | Refs | LICENSE

config.h

      1 /* Only macros! :) */
      2 
      3 /********* global configurations ************/
      4 /* url of the stylesheet */
      5 #define STYLE_HREF  "/style.css"
      6 /* whether to generate a page for each dir in a repo */
      7 #define DIR_PAGES  1
      8 /* where to truncate the commit history */
      9 #define MAX_COMMITS  10
     10 /* where to check for license files */
     11 #define LICENSE_FILES  "HEAD:LICENSE", "HEAD:LICENSE.md", \
     12                        "HEAD:LICENSE.txt", "HEAD:COPYING"
     13 /* where to check for readme files */
     14 #define README_FILES  "HEAD:README", "HEAD:README.md"
     15 
     16 /********* index page configurations ************/
     17 /* the relative path to save to index page to */
     18 #define INDEX_DEST  "index.html"
     19 /* what projects' titles link to */
     20 #define INDEX_REPO_LINK  data->readme == NULL ? "files.html" : "files/%s.html", data->readme
     21 /* used for index page title, otherwise not displayed. */
     22 #define INDEX_TITLE  "Emma's Code"
     23 /* shown at the top of index page */
     24 #define INDEX_HEADER  "<p>" \
     25 	"<a href=\"https://y1.nz\">y1.nz</a>" \
     26 "</p> <p>" \
     27 	"<b>GIT.Y1.NZ</b> - make yourself at home." \
     28 "</p>"
     29 
     30 /********* repository page configurations ************/
     31 /* the relative path to save each repository's page to */
     32 #define PAGE_DEST  "%s", data->repo_name
     33 /* shown at the top of each repo page */
     34 #define PAGE_HEADER  "<p> <a href=\"/\">git.y1.nz</a> </p>"
     35 /* label shown before download/clone link */
     36 #define PAGE_ACCESS_LABEL  "download"
     37 /* shown at the bottom of each repo page */
     38 #define PAGE_FOOTER  "<p><i>" \
     39 	"This webpage is intended to be an accessible preview of this " \
     40 	"repository. To get a fuller picture, clone it and use the " \
     41 	"git CLI." \
     42 "</i></p>"
     43 

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