summaryrefslogtreecommitdiff
path: root/site/entries/git_compile.html
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2023-07-21 11:05:15 +0200
committerdavidovski <david@davidovski.xyz>2023-08-09 02:42:03 +0100
commitf298c481fd08b58a26e17b1c36ced8128440dbf7 (patch)
tree322bb1788fdf4c4f6a5c43fc33200c5cb7647810 /site/entries/git_compile.html
parent9ac6c99826fc6a4deacd1fb2ead47920cf66cdcd (diff)
move non-executables to site subdir
Diffstat (limited to 'site/entries/git_compile.html')
-rwxr-xr-xsite/entries/git_compile.html15
1 files changed, 15 insertions, 0 deletions
diff --git a/site/entries/git_compile.html b/site/entries/git_compile.html
new file mode 100755
index 0000000..48619f6
--- /dev/null
+++ b/site/entries/git_compile.html
@@ -0,0 +1,15 @@
+#!./entries.sh
+
+# Compiling files in a git repo
+
+So I decided to improve the way that that you can access some of the repos that I am hosting on this server, including the code that I use to compile the site itself. I quickly hacked together a bit of code in my existing [build.py](https://davidovski.xyz/git/davidovski/build.py.html) to clone a list of repos and go through and generate a html pages for each of the files in the repo.
+
+Although this means that this is only a static view of the repo at any time (needing me to rebuild the site for it to update) I can easily add any git repo to be built into my site, so as you may see, I have added a few repos from my github as well.
+
+I tried using cgit, but it just didn't provide exactly what I wanted and I wasn't in the mood to try configuring it to my liking, so I opted for this approach instead.
+
+A way that I can improve it is to serve a http server that dynamically updates the repositories when new commits are added, which would probably be a better solution; but this works.. for now.
+
+If you want to view all of the repos that I've listed so far, click the link at the top of the page. (sorry that the index is still the default nginx autoindex, I will change that at some point), and feel free to check out how I did it in [build.py](https://davidovski.xyz/git/davidovski/build.py.html), though Im warning you, its probably some of the hackiest code i've put together.
+
+Tutorial on how to host your own git repos on your server and allow people to clone them with https may be coming soon