Skip to content

Commit

Permalink
getting started
Browse files Browse the repository at this point in the history
  • Loading branch information
marwie committed Oct 30, 2023
1 parent 6097b5e commit 9c51cdf
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 9 deletions.
16 changes: 10 additions & 6 deletions documentation/.vuepress/components/os-link.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
export default {
props: {
text: String,
generic_url: String,
windows_url: String,
osx_url: String,
osx_silicon_url: String,
Expand All @@ -11,18 +12,21 @@ export default {
getUrl: function () {
const os = navigator.userAgent;
if (os.indexOf('Windows') !== -1) {
return this.windows_url;
if (this.windows_url)
return this.windows_url;
} else if (os.indexOf('Mac') !== -1) {
if(this.osx_silicon_url && os.indexOf('Intel') === -1)
if (this.osx_silicon_url && os.indexOf('Intel') === -1)
return this.osx_silicon_url;
return this.osx_url;
if (this.osx_url)
return this.osx_url;
} else if (os.indexOf('Linux') !== -1) {
if (this.linux_url)
return this.linux_url;
return this.osx_url;
} else {
return this.windows_url;
if (this.osx_url)
return this.osx_url;
}
return this.generic_url ?? this.windows_url;
}
}
}
Expand Down
10 changes: 7 additions & 3 deletions documentation/getting-started/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@ next: ../project-structure.md
---

## Prerequisites
Below you find a list of tools that you need or that we recommend for using Needle Engine. We recommend installing those first.

Before getting started we recommend you install Nodejs (if you don't have it already)

<ClientOnly>

<!-- <br/><os-link generic_url="https://engine.needle.tools/downloads/unity">Needle Engine for Unity</os-link> — <os-link generic_url="https://engine.needle.tools/downloads/unity">Needle Engine for Blender</os-link> -->

<br/><os-link windows_url="https://nodejs.org/dist/v18.16.0/node-v18.16.0-x64.msi" osx_url="https://nodejs.org/dist/v18.16.0/node-v18.16.0.pkg">Download Nodejs ⭐</os-link>
Node.js is used to preview and build the website that you are creating on your computer.
It is also used for uploading (deploy) your website when you are finished and when you want to share it.
Expand All @@ -32,7 +33,10 @@ When you plan to edit or write code (js or HTML) then we *recommend* that you us

<br/>
<br/>
After having installed the tools listed above you might have to restart your machine once!
After having installed the tools listed above you might have to restart your machine once!

Then continue below at [Needle Engine for Unity](#needle-engine-with-unity) or [Needle Engine for Blender](#needle-engine-with-blender)

<br/>
<br/>

Expand Down

0 comments on commit 9c51cdf

Please sign in to comment.