From ed3b165b4b5112093b71890a672c150b0537f805 Mon Sep 17 00:00:00 2001 From: Manav Rathi Date: Fri, 8 Mar 2024 21:17:00 +0530 Subject: [PATCH 1/2] Don't consider localhost links as dead Fixes the following error when building the site (!) Found dead link http://localhost:3000 in file self-hosting/index.md x Build failed in 1.72s If this is expected, you can disable this check via config. Refer: https://vitepress.dev/reference/site-config#ignoredeadlinks --- docs/docs/.vitepress/config.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/docs/.vitepress/config.ts b/docs/docs/.vitepress/config.ts index 2286c7c0b7..bc2b77fca4 100644 --- a/docs/docs/.vitepress/config.ts +++ b/docs/docs/.vitepress/config.ts @@ -7,6 +7,7 @@ export default defineConfig({ description: "Documentation and help for Ente's products", head: [["link", { rel: "icon", type: "image/png", href: "/favicon.png" }]], cleanUrls: true, + ignoreDeadLinks: 'localhostLinks', themeConfig: { // We use the default theme (with some CSS color overrides). This // themeConfig block can be used to further customize the default theme. From c899984f761d25a31292c2bf1214be686a9368c6 Mon Sep 17 00:00:00 2001 From: Manav Rathi Date: Fri, 8 Mar 2024 21:21:10 +0530 Subject: [PATCH 2/2] Add yarn troubleshooting page --- docs/docs/.vitepress/sidebar.ts | 9 +++++++++ docs/docs/self-hosting/troubleshooting/yarn.md | 10 ++++++++++ 2 files changed, 19 insertions(+) create mode 100644 docs/docs/self-hosting/troubleshooting/yarn.md diff --git a/docs/docs/.vitepress/sidebar.ts b/docs/docs/.vitepress/sidebar.ts index 683432ba2e..d6547e8102 100644 --- a/docs/docs/.vitepress/sidebar.ts +++ b/docs/docs/.vitepress/sidebar.ts @@ -89,6 +89,15 @@ export const sidebar = [ }, ], }, + { + text: "Troubleshooting", + items: [ + { + text: "Yarn", + link: "/self-hosting/troubleshooting/yarn", + }, + ], + }, ], }, { diff --git a/docs/docs/self-hosting/troubleshooting/yarn.md b/docs/docs/self-hosting/troubleshooting/yarn.md new file mode 100644 index 0000000000..d117d9c3cb --- /dev/null +++ b/docs/docs/self-hosting/troubleshooting/yarn.md @@ -0,0 +1,10 @@ +--- +title: Yarn errors +description: Fixing yarn install errors when trying to self host Ente +--- + +# Yarn + +If your `yarn install` is failing, make sure you are using Yarn Classic + +* https://classic.yarnpkg.com/lang/en/docs/install