Skip to content

Commit

Permalink
Add download attribute to download links
Browse files Browse the repository at this point in the history
Fixes #405

Signed-off-by: Kai Kreuzer <[email protected]>
  • Loading branch information
kaikreuzer authored May 25, 2023
1 parent e4d85ad commit c261fa0
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .vuepress/components/InstallInstructions.vue
Original file line number Diff line number Diff line change
Expand Up @@ -155,12 +155,12 @@ usermod -a -G openhab myownuser
&#128712; <small> You don't need the add-ons archives if your machine has Internet access, openHAB will download add-ons you need online as necessary.</small>
<div v-if="(selectedVersion === 'stable' || selectedVersion === 'testing')">
<div class="download-button-container">
<a class="download-button" style="margin-bottom: 0" :href="addonsDownloadLink">Download openHAB {{currentDownloadVersion}} {{currentVersionLabel}} Add-ons</a>
<a class="download-button" style="margin-bottom: 0" :href="addonsDownloadLink" download>Download openHAB {{currentDownloadVersion}} {{currentVersionLabel}} Add-ons</a>
</div>
</div>
<div v-if="selectedVersion === 'snapshot'">
<div class="download-button-container">
<a class="download-button" style="margin-bottom: 0" :href="`https://ci.openhab.org/job/openHAB-Distribution/lastSuccessfulBuild/artifact/distributions/openhab-addons/target/openhab-addons-4.0.0-SNAPSHOT.kar`">Download openHAB {{$page.frontmatter.currentSnapshotVersion}} Add-ons</a>
<a class="download-button" style="margin-bottom: 0" :href="`https://ci.openhab.org/job/openHAB-Distribution/lastSuccessfulBuild/artifact/distributions/openhab-addons/target/openhab-addons-4.0.0-SNAPSHOT.kar`" download>Download openHAB {{$page.frontmatter.currentSnapshotVersion}} Add-ons</a>
</div>
</div>
</ol>
Expand All @@ -173,12 +173,12 @@ usermod -a -G openhab myownuser
<li>Install a recent Java 11 platform (we recommend <a target="_blank" href="https://www.azul.com/downloads/zulu-community/?version=java-11-lts&package=jdk">the Zulu builds of OpenJDK</a>)</li>
<li>Download and extract the openHAB runtime distribution:</li>
<div class="download-button-container">
<a class="download-button big" :href="runtimeDownloadLink">Download openHAB {{currentDownloadVersion}} {{currentVersionLabel}} Runtime</a>
<a class="download-button big" :href="runtimeDownloadLink" download>Download openHAB {{currentDownloadVersion}} {{currentVersionLabel}} Runtime</a>
</div>
<li><strong>(Optional)</strong> Download the add-on archives for offline use and put them in the <code>addons</code> folder of the extracted distribution:</li>
&#128712; <small> You don't need the add-ons archives if your machine has Internet access, openHAB will download add-ons you need online as necessary.</small>
<div class="download-button-container">
<a class="download-button" style="margin-bottom: 0" :href="addonsDownloadLink">Download openHAB {{currentDownloadVersion}} {{currentVersionLabel}} Add-ons</a>
<a class="download-button" style="margin-bottom: 0" :href="addonsDownloadLink" download>Download openHAB {{currentDownloadVersion}} {{currentVersionLabel}} Add-ons</a>
</div>
<li v-if="selectedSystem === 'apple'">
Open <em>System Preferences &gt; Keyboard &gt; Shortcuts</em> and check the <em>New Terminal at Folder</em> option under <em>Services</em>:<br />
Expand All @@ -204,12 +204,12 @@ usermod -a -G openhab myownuser
<li>Install a recent Java 17 platform (we recommend <a target="_blank" href="https://www.azul.com/downloads/zulu-community/?version=java-17-lts&package=jdk">the Zulu builds of OpenJDK</a>)</li>
<li>Download and extract the distribution from <a href="https://ci.openhab.org/">https://ci.openhab.org/</a>:</li>
<div class="download-button-container">
<a target="_blank" class="download-button big" :href="`https://ci.openhab.org/job/openHAB-Distribution/lastSuccessfulBuild/artifact/distributions/openhab/target/openhab-4.0.0-SNAPSHOT.zip`">Latest openHAB {{$page.frontmatter.currentSnapshotVersion}} Build</a>
<a target="_blank" class="download-button big" :href="`https://ci.openhab.org/job/openHAB-Distribution/lastSuccessfulBuild/artifact/distributions/openhab/target/openhab-4.0.0-SNAPSHOT.zip`" download>Latest openHAB {{$page.frontmatter.currentSnapshotVersion}} Build</a>
</div>
<li><strong>(Optional)</strong> Download the add-on archives for offline use and put them in the <code>addons</code> folder of the extracted distribution:</li>
&#128712; <small> You don't need the add-ons archives if your machine has Internet access, openHAB will download add-ons you need online as necessary.</small>
<div class="download-button-container">
<a class="download-button" style="margin-bottom: 0" :href="`https://ci.openhab.org/job/openHAB-Distribution/lastSuccessfulBuild/artifact/distributions/openhab-addons/target/openhab-addons-4.0.0-SNAPSHOT.kar`">Download openHAB {{$page.frontmatter.currentSnapshotVersion}} Add-ons</a>
<a class="download-button" style="margin-bottom: 0" :href="`https://ci.openhab.org/job/openHAB-Distribution/lastSuccessfulBuild/artifact/distributions/openhab-addons/target/openhab-addons-4.0.0-SNAPSHOT.kar`" download>Download openHAB {{$page.frontmatter.currentSnapshotVersion}} Add-ons</a>
</div>
</ol>
</div>
Expand Down

0 comments on commit c261fa0

Please sign in to comment.