From f5a0f388b7222435e74e38f5da3c298280f0c36b Mon Sep 17 00:00:00 2001 From: Sean Morley Date: Wed, 27 Nov 2024 11:58:25 -0500 Subject: [PATCH 1/3] Enhance documentation: update VitePress config to ignore localhost links with any port and correct docker-compose.yml formatting for Nginx Proxy Manager --- documentation/.vitepress/config.mts | 5 +++++ documentation/docs/install/nginx_proxy_manager.md | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/documentation/.vitepress/config.mts b/documentation/.vitepress/config.mts index b79077c..163c4c5 100644 --- a/documentation/.vitepress/config.mts +++ b/documentation/.vitepress/config.mts @@ -13,6 +13,11 @@ export default defineConfig({ "/playground", // ignore all localhost links /^https?:\/\/localhost/, + // ignore localhost links with any port + // ignore http://localhost:8015 + /^https?:\/\/localhost:\d+/, + /^http?:\/\/localhost:\d+/, + // ignore all links include "/playground/" // ignore all links include "/repl/"" /\/repl\//, // custom function, ignore all links include "ignore" diff --git a/documentation/docs/install/nginx_proxy_manager.md b/documentation/docs/install/nginx_proxy_manager.md index e02882a..fc58b7a 100644 --- a/documentation/docs/install/nginx_proxy_manager.md +++ b/documentation/docs/install/nginx_proxy_manager.md @@ -26,8 +26,8 @@ Add the folowing to the bottom of the `docker-compose.yml` file for the Nginx Pr ```yaml networks: default: - external: - name: nginx-proxy-manager + name: nginx-proxy-manager + external: true ``` ## Setting Up Nginx Proxy Manager From 173c6183b34ee7a957744e3224cd2615a1c51c76 Mon Sep 17 00:00:00 2001 From: Sean Morley Date: Wed, 27 Nov 2024 11:59:24 -0500 Subject: [PATCH 2/3] Simplify VitePress config: set ignoreDeadLinks to true for streamlined link management --- documentation/.vitepress/config.mts | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/documentation/.vitepress/config.mts b/documentation/.vitepress/config.mts index 163c4c5..0e5444a 100644 --- a/documentation/.vitepress/config.mts +++ b/documentation/.vitepress/config.mts @@ -8,23 +8,7 @@ export default defineConfig({ lang: "en-US", // lastUpdated: true, - ignoreDeadLinks: [ - // ignore exact url "/playground" - "/playground", - // ignore all localhost links - /^https?:\/\/localhost/, - // ignore localhost links with any port - // ignore http://localhost:8015 - /^https?:\/\/localhost:\d+/, - /^http?:\/\/localhost:\d+/, - // ignore all links include "/playground/" - // ignore all links include "/repl/"" - /\/repl\//, - // custom function, ignore all links include "ignore" - (url) => { - return url.toLowerCase().includes("ignore"); - }, - ], + ignoreDeadLinks: true, sitemap: { hostname: "https://adventurelog.app", From ec4935ecddf5ec34cda4bcd91a21e50731153738 Mon Sep 17 00:00:00 2001 From: Sean Morley Date: Wed, 27 Nov 2024 12:01:53 -0500 Subject: [PATCH 3/3] Update VitePress config: set ignoreDeadLinks to 'localhostLinks' for improved link management --- documentation/.vitepress/config.mts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/documentation/.vitepress/config.mts b/documentation/.vitepress/config.mts index 0e5444a..baf3e6d 100644 --- a/documentation/.vitepress/config.mts +++ b/documentation/.vitepress/config.mts @@ -3,12 +3,10 @@ import { defineConfig } from "vitepress"; // https://vitepress.dev/reference/site-config export default defineConfig({ head: [["link", { rel: "icon", href: "/adventurelog.png" }]], + ignoreDeadLinks: "localhostLinks", title: "AdventureLog", description: "The ultimate travel companion.", lang: "en-US", - // lastUpdated: true, - - ignoreDeadLinks: true, sitemap: { hostname: "https://adventurelog.app",