From b830fd2107fd092a9c4f749b88b68412046758ab Mon Sep 17 00:00:00 2001 From: Adam Spragg Date: Fri, 22 Jun 2018 16:24:10 +0100 Subject: Add the repository for the website to the website How very meta! --- apache2.conf | 10 ++++++++++ cgitrc | 12 ++++++++++++ html/projects/index.php | 29 ++++++++++++++++++++--------- html/projects/spragg-ssl.co.uk.git | 1 + html/style/cgit | 1 + 5 files changed, 44 insertions(+), 9 deletions(-) create mode 100644 cgitrc create mode 120000 html/projects/spragg-ssl.co.uk.git create mode 120000 html/style/cgit diff --git a/apache2.conf b/apache2.conf index 3cb3ab7..a29a16d 100644 --- a/apache2.conf +++ b/apache2.conf @@ -178,6 +178,16 @@ # Enable user-dirs UserDir public_html + # Enable cgitrc at /projects/cgit + SetEnv CGIT_CONFIG /srv/www/spragg-ssl.co.uk/cgitrc + ScriptAlias /projects/cgit/ "/usr/lib/cgit/cgit.cgi/" + RedirectMatch ^/projects/cgit$ /projects/cgit/ + + AllowOverride None + Options ExecCGI FollowSymlinks + Require all granted + + # Enable the STAG trac instance over WSGI #WSGIScriptAlias /c/STAG/trac /srv/www/spragg-ssl.co.uk/html/c/STAG/trac/cgi-bin/trac.wsgi diff --git a/cgitrc b/cgitrc new file mode 100644 index 0000000..7f30e79 --- /dev/null +++ b/cgitrc @@ -0,0 +1,12 @@ +# +# cgit config +# see cgitrc(5) for details + +css=/style/cgit/cgit.css +logo=/style/cgit/cgit.png + +repo.url=spragg-ssl.co.uk +repo.path=/srv/git/spragg-ssl.co.uk.git +repo.desc=The spragg-ssl.co.uk website +repo.owner=adam@spragg-ssl.co.uk +repo.clone-url=https://spragg-ssl.co.uk/projects/spragg-ssl.co.uk.git diff --git a/html/projects/index.php b/html/projects/index.php index c661add..b995ccf 100644 --- a/html/projects/index.php +++ b/html/projects/index.php @@ -8,16 +8,27 @@
-

Public projects that I've worked on/contributed to...

+

Projects that I've written, worked on, or contributed to, which I am able to link to here...

-

libxml2

-

Add new pretty-printing and sorting options for saving XML

-

Commits:

-
    -
  1. 8b877135a38aac58141e81c2894bc28ad7f0e642 - Force _xmlSaveCtxt.format to be 0 or 1
  2. -
  3. 5f9d9ceb3dd2c084ec8646fd03ba3ab3e6055767 - Fix xmllint to use format=1 for default formatting
  4. -
  5. d2e62311cd15651e68f921167c7fcf05b19378f9 - Add xmlSaveOption XML_SAVE_WSNONSIG
  6. -
+
+

The spragg-ssl.co.uk website

+ +

Hm. Why does browse→browsable (no "e"), but clone→cloneable (with "e")?

+
+ +
+

libxml2

+

Add new pretty-printing and sorting options for saving XML

+

Commits:

+
    +
  1. 8b877135a38aac58141e81c2894bc28ad7f0e642 - Force _xmlSaveCtxt.format to be 0 or 1
  2. +
  3. 5f9d9ceb3dd2c084ec8646fd03ba3ab3e6055767 - Fix xmllint to use format=1 for default formatting
  4. +
  5. d2e62311cd15651e68f921167c7fcf05b19378f9 - Add xmlSaveOption XML_SAVE_WSNONSIG
  6. +
+

To be continued...

diff --git a/html/projects/spragg-ssl.co.uk.git b/html/projects/spragg-ssl.co.uk.git new file mode 120000 index 0000000..3ff43a9 --- /dev/null +++ b/html/projects/spragg-ssl.co.uk.git @@ -0,0 +1 @@ +/srv/git/spragg-ssl.co.uk.git \ No newline at end of file diff --git a/html/style/cgit b/html/style/cgit new file mode 120000 index 0000000..29621f2 --- /dev/null +++ b/html/style/cgit @@ -0,0 +1 @@ +/usr/share/cgit \ No newline at end of file -- cgit v1.2.1