diff options
author | Lennart Poettering <lennart@poettering.net> | 2018-11-29 11:40:23 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2018-11-29 19:09:09 +0100 |
commit | f7db73528f40b1ebef32f6e77246a9ecc7684354 (patch) | |
tree | c77f62b54990e3c349b88977c7f048e1e3407000 | |
parent | 401faa3533280b05fee972e0c64885caf4b31e4c (diff) | |
download | systemd-f7db73528f40b1ebef32f6e77246a9ecc7684354.tar.gz systemd-f7db73528f40b1ebef32f6e77246a9ecc7684354.tar.bz2 systemd-f7db73528f40b1ebef32f6e77246a9ecc7684354.zip |
docs: work around GitHub pages weirdness
Fixes: #10546
-rw-r--r-- | docs/index.md | 4 | ||||
-rwxr-xr-x | tools/make-index-md.sh | 18 |
2 files changed, 19 insertions, 3 deletions
diff --git a/docs/index.md b/docs/index.md index 5857c40217..f27aeaad2b 100644 --- a/docs/index.md +++ b/docs/index.md @@ -5,10 +5,10 @@ * [The Boot Loader Interface](https://systemd.io/BOOT_LOADER_INTERFACE) * [The Boot Loader Specification](https://systemd.io/BOOT_LOADER_SPECIFICATION) * [Control Group APIs and Delegation](https://systemd.io/CGROUP_DELEGATION) -* [The systemd Community Conduct Guidelines](https://systemd.io/CODE_OF_CONDUCT) +* [The systemd Community Conduct Guidelines](https://github.com/systemd/systemd/blob/master/docs/CODE_OF_CONDUCT.md) * [Code Quality Tools](https://systemd.io/CODE_QUALITY) * [Coding Style](https://systemd.io/CODING_STYLE) -* [Contributing](https://systemd.io/CONTRIBUTING) +* [Contributing](https://github.com/systemd/systemd/blob/master/docs/CONTRIBUTING.md) * [Porting systemd To New Distributions](https://systemd.io/DISTRO_PORTING) * [Known Environment Variables](https://systemd.io/ENVIRONMENT) * [Hacking on systemd](https://systemd.io/HACKING) diff --git a/tools/make-index-md.sh b/tools/make-index-md.sh index ab52bb2c55..78506cbf39 100755 --- a/tools/make-index-md.sh +++ b/tools/make-index-md.sh @@ -9,7 +9,23 @@ cd "$@"/docs/ for f in *.md ; do if [ "x$f" != "xindex.md" ] ; then t=`grep "^# " "$f" | head -n 1 | sed -e 's/^#\s*//'` - u="https://systemd.io/"`echo "$f" | sed -e 's/.md$//'` + + if [ "x$f" = "xCODE_OF_CONDUCT.md" -o "x$f" = "xCONTRIBUTING.md" ] ; then + # For some reason GitHub refuses to generate + # HTML versions of these two documents, + # probably because they are in some way special + # in GitHub behaviour (as they are shown as + # links in the issue submission form). Let's + # work around this limitation by linking to + # their repository browser version + # instead. This might not even be such a bad + # thing, given that the issue submission form + # and our index file thus link to the same + # version. + u="https://github.com/systemd/systemd/blob/master/docs/$f" + else + u="https://systemd.io/"`echo "$f" | sed -e 's/.md$//'` + fi echo "* [$t]($u)" fi done |