Added script which checks cross-document links
Added a script which reads all .md files and checks if the links are valid. Also corrected two mistakes found by this script.
This commit is contained in:
parent
16d53f0eb1
commit
da572449c8
@ -19,5 +19,5 @@ Bugs can be reported in the MariaDB Jira
|
||||
## Installing MaxScale
|
||||
Information about installing MaxScale, either from a repository or by building from source code, is included in the [MariaDB MaxScale Installation Guide](../Getting-Started/MariaDB-MaxScale-Installation-Guide.md).
|
||||
|
||||
The same guide also provides basic information on running MaxScale. More detailed information about configuring MaxScale is given in the [Configuration Guide](/Documentation/Getting-Started/Configuration-Guide.md).
|
||||
The same guide also provides basic information on running MaxScale. More detailed information about configuring MaxScale is given in the [Configuration Guide](../Getting-Started/Configuration-Guide.md).
|
||||
|
||||
|
@ -36,7 +36,7 @@ An example configuration file is installed into the `/etc/` folder. This file sh
|
||||
|
||||
## Building MaxScale From Source Code
|
||||
|
||||
Alternatively you may download the MaxScale source and build your own binaries. To do this, refer to the separate document [Building MaxScale from Source Code](/Documentation/Getting-Started/Building-MaxScale-from-Source-Code.md)
|
||||
Alternatively you may download the MaxScale source and build your own binaries. To do this, refer to the separate document [Building MaxScale from Source Code](Building-MaxScale-from-Source-Code.md)
|
||||
|
||||
## Configuring MaxScale
|
||||
|
||||
|
16
Documentation/check_links.sh
Executable file
16
Documentation/check_links.sh
Executable file
@ -0,0 +1,16 @@
|
||||
#!/bin/bash
|
||||
|
||||
homedir=$(pwd)
|
||||
|
||||
for file in $(find . -name '*.md')
|
||||
do
|
||||
cd "$(dirname $file)"
|
||||
for i in `grep -o '\[.*\]([^#].*[.]md)' $(basename $file)| sed -e 's/\[.*\](\(.*\))/\1/'`
|
||||
do
|
||||
if [ ! -f $i ]
|
||||
then
|
||||
echo "Link $i in $file is not correct!"
|
||||
fi
|
||||
done
|
||||
cd "$homedir"
|
||||
done
|
Loading…
x
Reference in New Issue
Block a user