Skip to content

Commit

Permalink
Use dynamic links for docs (#1983)
Browse files Browse the repository at this point in the history
Open next. or www. depending the openHAB version (release or
milestone/snapshot).

Signed-off-by: Florian Hotze <[email protected]>
  • Loading branch information
florian-h05 authored Jul 26, 2023
1 parent 2230f52 commit 3245032
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<config-sheet :parameterGroups="[]" :parameters="parameters" :configuration="metadata.config" />
</div>
<p class="padding">
<f7-link color="blue" external target="_blank" href="https://www.openhab.org/link/google-assistant">
<f7-link color="blue" external target="_blank" :href="`https://${$store.state.runtimeInfo.buildString === 'Release Build' ? 'www' : 'next'}.openhab.org/link/google-assistant`">
Google Assistant Integration Documentation
</f7-link>
</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
</f7-block-footer>
</f7-block>
<p class="padding">
<f7-link color="blue" external target="_blank" href="https://www.openhab.org/link/homekit">
<f7-link color="blue" external target="_blank" :href="`https://${$store.state.runtimeInfo.buildString === 'Release Build' ? 'www' : 'next'}.openhab.org/link/homekit`">
HomeKit integration documentation
</f7-link>
</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
<f7-block-title>Profile</f7-block-title>
<f7-block-footer class="padding-left padding-right">
Profiles define how Channels and Items work together. Install transformation add-ons to get additional profiles.
<f7-link external color="blue" target="_blank" href="https://www.openhab.org/link/profiles">
<f7-link external color="blue" target="_blank" :href="`https://${$store.state.runtimeInfo.buildString === 'Release Build' ? 'www' : 'next'}.openhab.org/link/profiles`">
Learn more about profiles.
</f7-link>
</f7-block-footer>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
<f7-block-title>Profile</f7-block-title>
<f7-block-footer class="padding-left padding-right">
Profiles define how Channels and Items work together. Install transformation add-ons to get additional profiles.
<f7-link external color="blue" target="_blank" href="https://www.openhab.org/link/profiles">
<f7-link external color="blue" target="_blank" :href="`https://${$store.state.runtimeInfo.buildString === 'Release Build' ? 'www' : 'next'}.openhab.org/link/profiles`">
Learn more about profiles.
</f7-link>
<f7-block v-if="!ready" class="text-align-center">
Expand Down

0 comments on commit 3245032

Please sign in to comment.