summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2019-01-03 18:38:57 +0100
committerGitHub <noreply@github.com>2019-01-03 18:38:57 +0100
commitd27d60b3bca61684a2b6e14f984e02d8a7ecd15c (patch)
tree4f86aae77a55d1b1fdae6a2ed9a711d870f1627d /tools
parent88514e7bae0c918ca4b93714fbf2ae0f8f33855d (diff)
parent357211a4260e47d5ea24db2a8062d263d58ec791 (diff)
downloadsystemd-d27d60b3bca61684a2b6e14f984e02d8a7ecd15c.tar.gz
Merge pull request #11317 from filbranden/docs1
Improvements to systemd.io generation
Diffstat (limited to 'tools')
-rwxr-xr-xtools/make-index-md.sh32
1 files changed, 0 insertions, 32 deletions
diff --git a/tools/make-index-md.sh b/tools/make-index-md.sh
deleted file mode 100755
index 78506cbf39..0000000000
--- a/tools/make-index-md.sh
+++ /dev/null
@@ -1,32 +0,0 @@
-#!/bin/sh
-
-set -eu
-
-cd "$@"/docs/
-(
- echo -e "# systemd Documentation\n"
-
- for f in *.md ; do
- if [ "x$f" != "xindex.md" ] ; then
- t=`grep "^# " "$f" | head -n 1 | sed -e 's/^#\s*//'`
-
- 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
-) > index.md