diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2026-08-30 18:35:23 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2026-08-30 18:35:23 +0200 |
| commit | 5e3b4b6c21d33b28e60ce976479339f72d544a6c (patch) | |
| tree | 0e5a101d4944e7dd5a99606344b6a6807a9a5606 /src/blog/2022-11-23-git-host/git-host.md | |
| parent | d3f0841cfdd229ff16b8a230117737a435fc7a56 (diff) | |
| download | sebastiano.tronto.net-5e3b4b6c21d33b28e60ce976479339f72d544a6c.tar.gz sebastiano.tronto.net-5e3b4b6c21d33b28e60ce976479339f72d544a6c.zip | |
Switch from stagit to cgit
Diffstat (limited to 'src/blog/2022-11-23-git-host/git-host.md')
| -rw-r--r-- | src/blog/2022-11-23-git-host/git-host.md | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/src/blog/2022-11-23-git-host/git-host.md b/src/blog/2022-11-23-git-host/git-host.md index cc9fc27..9976b91 100644 --- a/src/blog/2022-11-23-git-host/git-host.md +++ b/src/blog/2022-11-23-git-host/git-host.md | |||
| @@ -1,5 +1,11 @@ | |||
| 1 | # Self-hosted git pages with stagit (featuring ed, the standard editor) | 1 | # Self-hosted git pages with stagit (featuring ed, the standard editor) |
| 2 | 2 | ||
| 3 | **Update 2026-08-30: Since August 2026, I am no longer using stagit to | ||
| 4 | host my git pages. Instead, I use [cgit](https://git.zx2c4.com/cgit/about). | ||
| 5 | I have updated all the links in this page to point to a frozen copy of | ||
| 6 | my stagit-based git page before the switch. If you want to visit my new | ||
| 7 | git page, go to [git.tronto.net](https://git.tronto.net)** | ||
| 8 | |||
| 3 | This is a follow-up to my earlier blog entry | 9 | This is a follow-up to my earlier blog entry |
| 4 | [How I update my website](../2022-08-14-website). | 10 | [How I update my website](../2022-08-14-website). |
| 5 | 11 | ||
| @@ -14,9 +20,9 @@ via web pages, on your personal server? In this post I am going to show | |||
| 14 | you how I do it, in the usual minimalist and | 20 | you how I do it, in the usual minimalist and |
| 15 | not-using-what-I-do-not-understand style. | 21 | not-using-what-I-do-not-understand style. |
| 16 | 22 | ||
| 17 | You can see the final result on my [git pages](https://git.tronto.net). | 23 | You can see the final result on my [git pages](https://stagit.tronto.net). |
| 18 | The scripts and other files I use to set this up are accessible | 24 | The scripts and other files I use to set this up are accessible |
| 19 | [here](https://git.tronto.net/git-hooks). | 25 | [here](https://stagit.tronto.net/git-hooks). |
| 20 | 26 | ||
| 21 | ## Hosting git repositories on your own server | 27 | ## Hosting git repositories on your own server |
| 22 | 28 | ||
| @@ -54,7 +60,7 @@ a bunch of html files that you can simply move to your www hosting directory. | |||
| 54 | After generating the pages you can personalize them by copying your logo, | 60 | After generating the pages you can personalize them by copying your logo, |
| 55 | [favicon](https://en.wikipedia.org/wiki/Favicon) or CSS style sheet. You can | 61 | [favicon](https://en.wikipedia.org/wiki/Favicon) or CSS style sheet. You can |
| 56 | use `stagit-index` to generate | 62 | use `stagit-index` to generate |
| 57 | [an index page for your repositories](https://git.tronto.net/). Since everything | 63 | [an index page for your repositories](https://stagit.tronto.net/). Since everything |
| 58 | consists of html files, you can simply edit them to personalize your git pages | 64 | consists of html files, you can simply edit them to personalize your git pages |
| 59 | even further - and below you'll see some examples. | 65 | even further - and below you'll see some examples. |
| 60 | 66 | ||
| @@ -155,8 +161,8 @@ add or change: | |||
| 155 | * I would like to have a download button so that people who don't use git | 161 | * I would like to have a download button so that people who don't use git |
| 156 | can still download my files. This makes sense especially for those | 162 | can still download my files. This makes sense especially for those |
| 157 | repos that are mostly documents, such as my | 163 | repos that are mostly documents, such as my |
| 158 | [lecture notes](https://git.tronto.net/mathsoftware) or my | 164 | [lecture notes](https://stagit.tronto.net/mathsoftware) or my |
| 159 | [FMC tutorial](https://git.tronto.net/fmctutorial). | 165 | [FMC tutorial](https://stagit.tronto.net/fmctutorial). |
| 160 | * I would like to convert README.md files to html. | 166 | * I would like to convert README.md files to html. |
| 161 | 167 | ||
| 162 | If I were calling stagit by hand after each `git push`, I | 168 | If I were calling stagit by hand after each `git push`, I |
| @@ -280,7 +286,7 @@ stagit-index /home/git/*.git | sed 's|/log\.html||g' > "$basedir/index.html" | |||
| 280 | And that's it. Well, I also copy the style files and add a bottom bar, | 286 | And that's it. Well, I also copy the style files and add a bottom bar, |
| 281 | and change the title from a `<span class="desc">` to an `<h1>` element, | 287 | and change the title from a `<span class="desc">` to an `<h1>` element, |
| 282 | again using `ed`. If you want to see the details you can check them out | 288 | again using `ed`. If you want to see the details you can check them out |
| 283 | [here](https://git.tronto.net/git-hooks/file/post-receive-stagit.html). | 289 | [here](https://stagit.tronto.net/git-hooks/file/post-receive-stagit.html). |
| 284 | 290 | ||
| 285 | ## Conclusions | 291 | ## Conclusions |
| 286 | 292 | ||
