From d6ede34882af958bf0ff1bb5ff0ff3775cca5381 Mon Sep 17 00:00:00 2001 From: Chris Akritidis <43294513+cakrit@users.noreply.github.com> Date: Tue, 13 Aug 2019 09:06:53 +0200 Subject: [PATCH] Accept <> around links in markdown (#6646) --- collectors/python.d.plugin/riakkv/README.md | 3 +-- docs/generator/checklinks.sh | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/collectors/python.d.plugin/riakkv/README.md b/collectors/python.d.plugin/riakkv/README.md index 0bcf22c5bd..4efbe725ba 100644 --- a/collectors/python.d.plugin/riakkv/README.md +++ b/collectors/python.d.plugin/riakkv/README.md @@ -4,8 +4,7 @@ Monitors one or more Riak KV servers. **Requirements:** -* An accessible `/stats` endpoint. See [the Riak KV configuration reference] - documentation](https://docs.riak.com/riak/kv/2.2.3/configuring/reference/#client-interfaces) +* An accessible `/stats` endpoint. See [the Riak KV configuration reference documentation](<https://docs.riak.com/riak/kv/2.2.3/configuring/reference/#client-interfaces>) for how to enable this. The following charts are included, which are mostly derived from the metrics diff --git a/docs/generator/checklinks.sh b/docs/generator/checklinks.sh index 5012ad17dd..6521ca9ad2 100755 --- a/docs/generator/checklinks.sh +++ b/docs/generator/checklinks.sh @@ -227,7 +227,7 @@ checklinks () { while read -r l ; do for word in $l ; do if [[ $word =~ .*\]\(([^\(\) ]*)\).* ]] ; then - lnk="${BASH_REMATCH[1]}" + lnk=$(echo "${BASH_REMATCH[1]}" | tr -d '<>') if [ -z "$lnk" ] ; then continue ; fi dbg "-$lnk" case "$lnk" in