UI: fix docs links after docs site restructuring (#33160)
Co-authored-by: claude[bot] <41898282+claude[bot]@users.noreply.github.com> Co-authored-by: Michael Geers <michael@geers.tv>
This commit is contained in:
parent
9beca9b22f
commit
1defa5f7fc
20 changed files with 22 additions and 23 deletions
|
|
@ -61,7 +61,7 @@ export default defineComponent({
|
|||
},
|
||||
computed: {
|
||||
resetUrl() {
|
||||
return `${docsPrefix()}/docs/faq#password-reset`;
|
||||
return `${docsPrefix()}/faq#password-reset`;
|
||||
},
|
||||
modalSize() {
|
||||
return this.demoMode ? "md" : "sm";
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
name="circuits"
|
||||
:title="$t('config.circuits.title')"
|
||||
:description="$t('config.circuits.description')"
|
||||
docs="/docs/features/loadmanagement"
|
||||
docs="/features/loadmanagement"
|
||||
:defaultYaml="defaultYaml"
|
||||
removeKey="circuits"
|
||||
endpoint="/config/circuits"
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
:label="$t('config.control.labelInterval')"
|
||||
:help="$t('config.control.descriptionInterval')"
|
||||
example="30 s"
|
||||
docsLink="/docs/reference/configuration/interval"
|
||||
docsLink="/reference/configuration/interval"
|
||||
>
|
||||
<div class="input-group input-width">
|
||||
<input
|
||||
|
|
@ -37,7 +37,7 @@
|
|||
:label="$t('config.control.labelResidualPower')"
|
||||
:help="$t('config.control.descriptionResidualPower')"
|
||||
example="100 W"
|
||||
docsLink="/docs/reference/configuration/site#residualpower"
|
||||
docsLink="/reference/configuration/site#residualpower"
|
||||
>
|
||||
<div class="input-group input-width">
|
||||
<input
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ export default defineComponent({
|
|||
},
|
||||
computed: {
|
||||
docsLink() {
|
||||
return `${docsPrefix()}/docs/devices/plugins#${this.type}`;
|
||||
return `${docsPrefix()}/user-defined-devices#${this.type}`;
|
||||
},
|
||||
},
|
||||
watch: {
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
name="eebus"
|
||||
:title="$t('config.eebus.title')"
|
||||
:description="$t('config.eebus.description')"
|
||||
docs="/docs/reference/configuration/eebus"
|
||||
docs="/reference/configuration/eebus"
|
||||
endpoint="/config/eebus"
|
||||
state-key="eebus.config"
|
||||
:no-buttons="fromYaml"
|
||||
|
|
|
|||
|
|
@ -208,7 +208,7 @@ export default defineComponent({
|
|||
return (this as any).fmtTimeAgo(ms - Date.now());
|
||||
},
|
||||
docsLink(): string {
|
||||
return `${docsPrefix()}/docs/external-limit`;
|
||||
return `${docsPrefix()}/external-limit`;
|
||||
},
|
||||
experimental(): boolean {
|
||||
return store.state?.experimental === true;
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
name="influx"
|
||||
:title="$t('config.influx.title')"
|
||||
:description="$t('config.influx.description')"
|
||||
docs="/docs/reference/configuration/influx"
|
||||
docs="/reference/configuration/influx"
|
||||
endpoint="/config/influx"
|
||||
state-key="influx"
|
||||
@changed="$emit('changed')"
|
||||
|
|
|
|||
|
|
@ -54,7 +54,7 @@ export default defineComponent({
|
|||
return `claude mcp add --transport http evcc ${this.mcpUrl}`;
|
||||
},
|
||||
docsLink(): string {
|
||||
return `${docsPrefix()}/docs/integrations/mcp`;
|
||||
return `${docsPrefix()}/integrations/mcp`;
|
||||
},
|
||||
},
|
||||
});
|
||||
|
|
|
|||
|
|
@ -55,7 +55,7 @@
|
|||
/>
|
||||
<div class="text-end small text-gray mt-1">
|
||||
<a
|
||||
:href="`${docsPrefix()}/docs/notifications#placeholders`"
|
||||
:href="`${docsPrefix()}/notifications#placeholders`"
|
||||
target="_blank"
|
||||
class="text-gray"
|
||||
>
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
name="messaginglegacy"
|
||||
:title="`${$t('config.messaging.title')} (${$t('config.general.legacy')})`"
|
||||
:description="$t('config.messaging.description')"
|
||||
docs="/docs/reference/configuration/messaging"
|
||||
docs="/reference/configuration/messaging"
|
||||
:defaultYaml="defaultYaml"
|
||||
endpoint="/config/messaging"
|
||||
removeKey="messaging"
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
name="messaging"
|
||||
:title="$t('config.messaging.title')"
|
||||
:description="$t('config.messaging.description')"
|
||||
docs="/docs/notifications"
|
||||
docs="/notifications"
|
||||
endpoint="/config/messagingEvents"
|
||||
state-key="messagingEvents"
|
||||
data-testid="messaging-modal"
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
name="modbusproxy"
|
||||
:title="$t('config.modbusproxy.title')"
|
||||
:description="$t('config.modbusproxy.description')"
|
||||
docs="/docs/reference/configuration/modbusproxy"
|
||||
docs="/reference/configuration/modbusproxy"
|
||||
endpoint="/config/modbusproxy"
|
||||
state-key="modbusproxy"
|
||||
store-values-in-array
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
name="mqtt"
|
||||
:title="$t('config.mqtt.title')"
|
||||
:description="$t('config.mqtt.description')"
|
||||
docs="/docs/reference/configuration/mqtt"
|
||||
docs="/reference/configuration/mqtt"
|
||||
endpoint="/config/mqtt"
|
||||
state-key="mqtt"
|
||||
@changed="$emit('changed')"
|
||||
|
|
|
|||
|
|
@ -62,7 +62,7 @@ export default defineComponent({
|
|||
return !!store.state?.evopt;
|
||||
},
|
||||
docsLink(): string {
|
||||
return `${docsPrefix()}/docs/features/optimizer`;
|
||||
return `${docsPrefix()}/features/optimizer`;
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
name="shm"
|
||||
:title="$t('config.shm.title')"
|
||||
:description="$t('config.shm.description')"
|
||||
docs="/docs/reference/configuration/hems"
|
||||
docs="/reference/configuration/hems"
|
||||
endpoint="/config/shm"
|
||||
state-key="shm"
|
||||
disable-remove
|
||||
|
|
|
|||
|
|
@ -128,7 +128,7 @@ export default {
|
|||
return this.token && !this.fromYaml;
|
||||
},
|
||||
trialTokenLink() {
|
||||
return `${docsPrefix()}/docs/sponsorship#trial`;
|
||||
return `${docsPrefix()}/sponsorship#trial`;
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
name="tariffsLegacy"
|
||||
:title="`${$t('config.tariff.title')} (${$t('config.general.legacy')})`"
|
||||
:description="$t('config.tariff.description')"
|
||||
docs="/docs/tariffs"
|
||||
docs="/tariffs"
|
||||
:defaultYaml="defaultYaml"
|
||||
removeKey="tariffs"
|
||||
endpoint="/config/tariffs"
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@ export default defineComponent({
|
|||
},
|
||||
computed: {
|
||||
docsLink() {
|
||||
return `${docsPrefix()}/docs/faq#telemetry`;
|
||||
return `${docsPrefix()}/faq#telemetry`;
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
|
|
|
|||
|
|
@ -137,7 +137,7 @@ export default defineComponent({
|
|||
},
|
||||
computed: {
|
||||
docsUrl(): string {
|
||||
return `${docsPrefix()}/docs/features/limits`;
|
||||
return `${docsPrefix()}/features/limits`;
|
||||
},
|
||||
modeOptions(): SelectOption<string>[] {
|
||||
return [
|
||||
|
|
|
|||
|
|
@ -110,7 +110,6 @@ export async function ensureCurrentLocaleMessages(i18n: VueI18nInstance) {
|
|||
}
|
||||
|
||||
export function docsPrefix() {
|
||||
const locale = getLocale();
|
||||
const path = locale === "de" ? "" : `/en`;
|
||||
return `https://docs.evcc.io${path}`;
|
||||
const lang = getLocale() === "de" ? "de" : "en";
|
||||
return `https://docs.evcc.io/${lang}`;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue