chore: fix relative links in docs and enforce we dont break them again (#14832)

This commit is contained in:
Samuel Attard 2018-09-28 13:16:38 +10:00 committed by GitHub
parent 46141b8283
commit e86298d5d9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 6 additions and 5 deletions

View file

@ -13,7 +13,7 @@ For guides on Electron app development, see
* [Coding Style](coding-style.md) * [Coding Style](coding-style.md)
* [Using clang-format on C++ Code](clang-format.md) * [Using clang-format on C++ Code](clang-format.md)
* [Build System Overview](build-system-overview.md) * [Build System Overview](build-system-overview.md)
* [Build Instructions (macOS)](build-instructions-osx.md) * [Build Instructions (macOS)](build-instructions-macos.md)
* [Build Instructions (Windows)](build-instructions-windows.md) * [Build Instructions (Windows)](build-instructions-windows.md)
* [Build Instructions (Linux)](build-instructions-linux.md) * [Build Instructions (Linux)](build-instructions-linux.md)
* [Chromium Development](chromium-development.md) * [Chromium Development](chromium-development.md)

View file

@ -6,7 +6,7 @@ Follow the guidelines below for building Electron.
Check the build prerequisites for your platform before proceeding Check the build prerequisites for your platform before proceeding
* [macOS](build-instructions-osx.md#prerequisites) * [macOS](build-instructions-macos.md#prerequisites)
* [Linux](build-instructions-linux.md#prerequisites) * [Linux](build-instructions-linux.md#prerequisites)
* [Windows](build-instructions-windows.md#prerequisites) * [Windows](build-instructions-windows.md#prerequisites)

View file

@ -12,7 +12,7 @@ you prefer a graphical interface.
* **A debug build of Electron**: The easiest way is usually building it * **A debug build of Electron**: The easiest way is usually building it
yourself, using the tools and prerequisites listed in the yourself, using the tools and prerequisites listed in the
[build instructions for macOS](build-instructions-osx.md). While you can [build instructions for macOS](build-instructions-macos.md). While you can
attach to and debug Electron as you can download it directly, you will attach to and debug Electron as you can download it directly, you will
find that it is heavily optimized, making debugging substantially more find that it is heavily optimized, making debugging substantially more
difficult: The debugger will not be able to show you the content of all difficult: The debugger will not be able to show you the content of all

View file

@ -35,7 +35,7 @@ $ git fetch upstream
Build steps and dependencies differ slightly depending on your operating system. Build steps and dependencies differ slightly depending on your operating system.
See these detailed guides on building Electron locally: See these detailed guides on building Electron locally:
* [Building on MacOS](https://electronjs.org/docs/development/build-instructions-osx) * [Building on MacOS](https://electronjs.org/docs/development/build-instructions-macos)
* [Building on Linux](https://electronjs.org/docs/development/build-instructions-linux) * [Building on Linux](https://electronjs.org/docs/development/build-instructions-linux)
* [Building on Windows](https://electronjs.org/docs/development/build-instructions-windows) * [Building on Windows](https://electronjs.org/docs/development/build-instructions-windows)

View file

@ -32,6 +32,7 @@ def main():
' files within docs directory and its ' + ' files within docs directory and its ' +
str(totalDirs) + ' subdirectories.') str(totalDirs) + ' subdirectories.')
print('Found ' + str(totalBrokenLinks) + ' broken relative links.') print('Found ' + str(totalBrokenLinks) + ' broken relative links.')
return totalBrokenLinks
def getBrokenLinks(filepath): def getBrokenLinks(filepath):

View file

@ -30,7 +30,7 @@ def check_tls(verbose):
if sys.platform == "linux" or sys.platform == "linux2": if sys.platform == "linux" or sys.platform == "linux2":
tutorial = "./docs/development/build-instructions-linux.md" tutorial = "./docs/development/build-instructions-linux.md"
elif sys.platform == "darwin": elif sys.platform == "darwin":
tutorial = "./docs/development/build-instructions-osx.md" tutorial = "./docs/development/build-instructions-macos.md"
elif sys.platform == "win32": elif sys.platform == "win32":
tutorial = "./docs/development/build-instructions-windows.md" tutorial = "./docs/development/build-instructions-windows.md"
else: else: