-
-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Download Page] Can we get system based anchors? #78
Comments
Yep, good idea! Just needs a few lines of code in the component and access |
If you point me to the right direction for the start i would love to start contributing here too. 🙂 |
Sure! First try to run the site on your local machine by following the (very succint) instructions in https://github.com/openhab/website/blob/master/CONTRIBUTING.md#running-in-development-mode:
Then you can try making changes. actually for this one you can use as an example: website/.vuepress/components/HomePage.vue Lines 201 to 203 in 1e0e383
but you'll want to add a mounted () {
if (this.$route.hash) {
if (this.$route.hash.system) {
this.currentSystem = this.$route.hash.system
}
if (this.$route.hash.distro) {
this.currentDistro = this.$route.hash.distro
}
if (this.$route.hash.version) {
this.currentVersion = this.$route.hash.version
}
}
}, (this is completely untested, just a general idea! 😉 ) Good luck ;) |
Thanks for the overview. I will update you are as if anything isn't working. |
https://stackoverflow.com/questions/50774321/vuepress-unexpected-token Same problem here. Edit: |
Hmm, no clue, but I'm still on 0.10.0. |
See edit. 😄 i was on 5.X.X But have another error now:
This seems related to openhab docs?! |
If the file doesn't exist, the script hasn't run properly :) |
maybe i should check my ruby version too. |
Yeah I had this one too - use 2.5.0 or later!
…On Tue, Jun 19, 2018 at 11:02 PM, Jerome L. ***@***.***> wrote:
>D:\openHAB\openhab-website>ruby prepare-docs.rb
>>> Deleting .vuepress/openhab-docs if existing...
>>> Cloning openhab-docs
Cloning into '.vuepress/openhab-docs'...
remote: Counting objects: 4662, done.
remote: Compressing objects: 100% (1888/1888), done.
remote: Total 4662 (delta 1671), reused 4133 (delta 1619), pack-reused 0
Receiving objects: 100% (4662/4662), 26.04 MiB | 3.54 MiB/s, done.
Resolving deltas: 100% (1671/1671), done.
Checking out files: 100% (5779/5779), done.
>>> Download ESH addons feature file
C:/Ruby22/lib/ruby/2.2.0/net/http.rb:923:in `connect': SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (OpenSSL::SSL::SSLError)
from C:/Ruby22/lib/ruby/2.2.0/net/http.rb:923:in `block in connect'
from C:/Ruby22/lib/ruby/2.2.0/timeout.rb:74:in `timeout'
from C:/Ruby22/lib/ruby/2.2.0/net/http.rb:923:in `connect'
from C:/Ruby22/lib/ruby/2.2.0/net/http.rb:863:in `do_start'
from C:/Ruby22/lib/ruby/2.2.0/net/http.rb:852:in `start'
from C:/Ruby22/lib/ruby/2.2.0/net/http.rb:583:in `start'
from C:/Ruby22/lib/ruby/2.2.0/net/http.rb:478:in `get_response'
from C:/Ruby22/lib/ruby/2.2.0/net/http.rb:455:in `get'
from prepare-docs.rb:36:in `<main>'
maybe i should check my ruby version too.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#78 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AB6Us3D3ufX1C4nghkobqqvIvzVs7NQ5ks5t-WbqgaJpZM4Uq9-Q>
.
--
Yannick Schaus <mailto:[email protected]>
|
Still some warnings and errors in the output but basically there was a build and i can view it on localhost. Updated tools, can save lots of time... |
Hi,
Is it possible to add anchors and hashed urls that open the downlad page with a specific tab?
Something like
https://www.openhab.org/download/#linux
orhttps://www.openhab.org/download/#windows_snapshot
orhttps://www.openhab.org/download/#windows_stable
.Which could be set on the corresponding buttons of the download page.
We could then replace links on the docs installation pages with simple and easy maintanable direct links.
Wdyt?
The text was updated successfully, but these errors were encountered: