diff --git a/src/components/dialogs/hacs-download-dialog.ts b/src/components/dialogs/hacs-download-dialog.ts index c25a2acb..69b4573c 100644 --- a/src/components/dialogs/hacs-download-dialog.ts +++ b/src/components/dialogs/hacs-download-dialog.ts @@ -149,8 +149,7 @@ export class HacsDonwloadDialog extends LitElement { - mainWindow.open( - documentationUrl({ experimental: this.hacs.info?.experimental }), - "_blank", - "noreferrer=true", - ), + action: () => mainWindow.open(documentationUrl({}), "_blank", "noreferrer=true"), }, { path: mdiGithub, @@ -169,8 +164,7 @@ export class HacsDashboard extends LitElement { action: () => mainWindow.open( documentationUrl({ - experimental: this.hacs.info?.experimental, - path: "/docs/issues", + path: "/docs/help/issues", }), "_blank", "noreferrer=true", diff --git a/src/data/about.ts b/src/data/about.ts index ff0d9090..428e0fc9 100644 --- a/src/data/about.ts +++ b/src/data/about.ts @@ -13,12 +13,11 @@ export const aboutHacsmarkdownContent = (hacs: Hacs) => ` **${hacs.localize("dialog_about.useful_links")}:** -- [General documentation](${documentationUrl({ experimental: hacs.info?.experimental })}) +- [General documentation](${documentationUrl({})}) - [Configuration](${documentationUrl({ - experimental: hacs.info?.experimental, - path: "/docs/configuration/start", + path: "/docs/use/configuration/basic", })}) -- [FAQ](${documentationUrl({ experimental: hacs.info?.experimental, path: "/docs/faq/what" })}) +- [FAQ](${documentationUrl({ path: "/docs/faq" })}) - [GitHub](https://github.com/hacs) - [Discord](https://discord.gg/apgchf8) - [Become a GitHub sponsor? ❤️](https://github.com/sponsors/ludeeus) diff --git a/src/data/hacs.ts b/src/data/hacs.ts index 508077ed..7f6a4c4f 100644 --- a/src/data/hacs.ts +++ b/src/data/hacs.ts @@ -10,7 +10,6 @@ export interface HacsInfo { debug: boolean; dev: boolean; disabled_reason: string; - experimental: boolean; lovelace_mode: "storage" | "yaml" | "auto-gen"; stage: "startup" | "waiting" | "running" | "setup"; startup: boolean; diff --git a/src/tools/documentation.ts b/src/tools/documentation.ts index e8718666..a50c505a 100644 --- a/src/tools/documentation.ts +++ b/src/tools/documentation.ts @@ -1,4 +1,3 @@ -export const documentationUrl = (options?: { path?: string; experimental?: boolean }) => { - const domain = options?.experimental ? "experimental.hacs.xyz" : "www.hacs.xyz"; - return `https://${domain}${options?.path || ""}`; +export const documentationUrl = (options?: { path?: string }) => { + return `https://www.hacs.xyz${options?.path || ""}`; };