From 788108c5b8262c9f771b728ae21728cdee86ec71 Mon Sep 17 00:00:00 2001 From: kaltokri Date: Wed, 25 Oct 2023 15:34:06 +0200 Subject: [PATCH] Added check for dead links and fixed dead links --- .github/workflows/gh-pages.yml | 9 +++++++++ docs/_config.yml | 2 ++ docs/buildsystem/build-docs.md | 2 +- docs/buildsystem/build-includes.md | 2 +- 4 files changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index b4faa62c8..48870d12c 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -67,3 +67,12 @@ jobs: - name: Deploy to GitHub Pages id: deployment uses: actions/deploy-pages@v1 + + check: + runs-on: ubuntu-latest + needs: deploy + steps: + - name: Setup Node + uses: actions/setup-node@v3 + - run: npm install linkinator + - run: npx linkinator https://flightcontrol-master.github.io/MOOSE/ --recurse diff --git a/docs/_config.yml b/docs/_config.yml index c557105bd..00c94761f 100644 --- a/docs/_config.yml +++ b/docs/_config.yml @@ -1,3 +1,5 @@ +baseurl: "" +url: "https://flightcontrol-master.github.io/MOOSE/" repository: FlightControl-Master/MOOSE title: MOOSE description: MOOSE is a Mission Object Oriented Scripting Environment for mission designers in DCS World diff --git a/docs/buildsystem/build-docs.md b/docs/buildsystem/build-docs.md index 8247e30bb..3ad52c993 100644 --- a/docs/buildsystem/build-docs.md +++ b/docs/buildsystem/build-docs.md @@ -56,7 +56,7 @@ Main build steps to create the class documentation are defined in [.github/workf - Copy build result to `MOOSE_DOCS` folder. - Push results to the target repository. -[tree]: https://www.cyberciti.biz/faq/linux-show-directory-structure-command-line/ +[tree]: https://wiki.ubuntuusers.de/tree/ [LuaDoc]: https://keplerproject.github.io/luadoc/ [LuaDocumentor]: https://luarocks.org/modules/luarocks/luadocumentor [Applevangelist/luadocumentor]: https://github.com/Applevangelist/luadocumentor/tree/patch-1 diff --git a/docs/buildsystem/build-includes.md b/docs/buildsystem/build-includes.md index a3e84c38b..bdd683a22 100644 --- a/docs/buildsystem/build-includes.md +++ b/docs/buildsystem/build-includes.md @@ -35,7 +35,7 @@ Main build steps to create the include files are defined in [.github/workflows/b - Push results to [MOOSE_INCLUDE] repository [.github/workflows/build-includes.yml]: https://github.com/FlightControl-Master/MOOSE/blob/master/.github/workflows/build-includes.yml -[tree]: https://www.cyberciti.biz/faq/linux-show-directory-structure-command-line/ +[tree]: https://wiki.ubuntuusers.de/tree/ [lua5.3]: https://www.lua.org/manual/5.3/ [LuaRocks]: https://luarocks.org/ [LuaCheck]: https://github.com/mpeterv/luacheck