Merge remote-tracking branch 'technical-git/master'

This commit is contained in:
GitHub Action 2021-07-17 14:06:13 +00:00
commit e644177d13
5 changed files with 6 additions and 6 deletions

View File

@ -1 +1 @@
See [Build Server](Build-Server)
See [Build Server](Build-Server-and-Automation)

View File

@ -32,7 +32,7 @@ Example:
Links to images are relative to the .md file they are in.
Example:
`![TunerStudio New Project View](images/TunerStudio_new_project.png)`
`![TunerStudio New Project View](FAQ/images/TunerStudio_new_project.png)`
**Q:** What sort of fancy options do we have?
**A:** We can do collapsible sections & hints sections! See [cranking](Cranking) for an example.

View File

@ -66,7 +66,7 @@ So you are thinking of doing an engine control project. You have stopped by the
## rusEFI in action!
[Engines running rusEFI](List-of-engines-running-rusEFI)
[Engines running rusEFI](List-of-Engines-Running-rusEFI)
### [![Miata rusEFI Racecar!](https://user-images.githubusercontent.com/5051341/80621997-bf7bf000-8a0d-11ea-998e-48fc3accba59.png)](https://www.youtube.com/embed/3xz66oR95F8?start=8 "Miata rusEFI Racecar!")

View File

@ -15,7 +15,7 @@
- [Forum](https://rusefi.com/forum/)
- [Slack](HOWTO-join-slack-channel)
- [Facebook Users Group](https://www.facebook.com/groups/rusEfi/)
- [Engines running on rusEFI](List-of-engines-running-rusEFI)
- [Engines running on rusEFI](List-of-Engines-Running-rusEFI)
- [HOWTO-help-rusEFI](HOWTO-help-rusEFI)
# Setup Guides

View File

@ -98,7 +98,7 @@ searchfile() {
# Parentheses are placed around both the old link and new one in order to ensure we replace the link,
# and not some other place in the file that happens to use the same words.
REPLACE=$(escape '('$link')')
REPLACEWITH=$(escapeReplace "$FILE")
REPLACEWITH=$(escapeReplace "$(basename "$FILE" .md)")
sed -i "s/$REPLACE/\($REPLACEWITH\)/" "$1"
continue
fi
@ -133,7 +133,7 @@ searchfile() {
sed -i "s/$REPLACE/\($REPLACEWITH\)/" "$1"
# This regex finds links in the file that is passed to searchfile
# Results are fed to file descriptor 3 for the reasons previously explained.
done 3< <(grep -oP '(?<=\]\().+?(?=[\)])' "$1")
done 3< <(grep -oP '(?<=\]\().*?(?=[\)])' "$1" | sed -e "s/^<//g" -e "s/>$//g" | cut -d '"' -f1 | sed -e 's/^[[:space:]]*//' -e 's/[[:space:]]*$//')
}
export -f searchfile