From 71a0f9f51af5afdb6d0e0b3c53242874982d81e3 Mon Sep 17 00:00:00 2001 From: Dimitris Gkanatsios Date: Mon, 10 Oct 2022 14:50:46 -0700 Subject: [PATCH] attempt to fix broken links --- .github/workflows/pages-check-links.yml | 7 ++++++- docs/gameserverapi/gameserverapi_swagger.md | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pages-check-links.yml b/.github/workflows/pages-check-links.yml index 63c12a14..11ce5068 100644 --- a/.github/workflows/pages-check-links.yml +++ b/.github/workflows/pages-check-links.yml @@ -2,6 +2,11 @@ name: pages-check-links # Controls when the workflow will run on: + push: + branches: [ main ] + pull_request: + # The branches below must be a subset of the branches above + branches: [ main ] # Allows you to run this workflow manually from the Actions tab workflow_dispatch: @@ -38,4 +43,4 @@ jobs: - name: Check for broken links run: | cd docs/ - bundle exec htmlproofer --log-level :debug ./_site --swap-urls '^/thundernetes/:/' --ignore-status-code 403 + bundle exec htmlproofer --alt-ignore '/.*/' --log-level :debug ./_site --swap-urls '^/thundernetes/:/' --ignore-status-code 403 diff --git a/docs/gameserverapi/gameserverapi_swagger.md b/docs/gameserverapi/gameserverapi_swagger.md index 2c850207..df5ecf4b 100644 --- a/docs/gameserverapi/gameserverapi_swagger.md +++ b/docs/gameserverapi/gameserverapi_swagger.md @@ -32,6 +32,6 @@ func setSwaggerInfo(c *gin.Context) { ## Browse Swagger Run the code and browse the following URL to use swagger - - or in case of localhost - +`https://{$IP}:5001/swagger/index.html` or in case of localhost - `http://localhost:5001/swagger/index.html` !["GameServer API Swagger"](../assets/images/gameserverapi_swagger.png "GameServer API Swagger")