openhab-docs icon indicating copy to clipboard operation
openhab-docs copied to clipboard

[Proposal] Automatically deploy Tutorials & Examples to the docs

Open kubawolanin opened this issue 6 years ago • 9 comments

I've discovered that Discourse (forum engine that openHAB Community uses) has a great feature that allows you to get raw post's content

Let's take this great on-going tutorial post on advanced HABPanel usage written by @ghys: https://community.openhab.org/t/30755

We could easily deploy this content dynamically by taking the latest content of it from here: https://community.openhab.org/raw/30755

Thoughts? CC: @ThomDietrich

kubawolanin avatar Jul 20 '17 13:07 kubawolanin

Hey @kubawolanin, .... WOW!! I never even considered this to be possible. I always thought it would be amazing to include some tutorials&examples in the openHAB docs while leaving them open for discussion (and improvement) in the community.

Some community articles are already linked here: http://docs.openhab.org/tutorials - they could easily be replaced by article copies. I'd make sure to define a template that mentions the original community author and a link to the community forum.

Including some articles could be part of #62. I wanted to look into this soon and could include one two postings for testing purposes.

The list behind the link above already lists a few nice examples. Is this list in line with what you'd think is a good selection?

ThomDietrich avatar Jul 20 '17 13:07 ThomDietrich

Side note: In case you didn't know, Discourse threads can be configured as "wiki threads" , making the first posting writable by all users. That could be something we could start opening up for some tutorials to allow easy contributions.

ThomDietrich avatar Jul 20 '17 13:07 ThomDietrich

Discourse threads can be configured as "wiki threads"

I think it's a great feature, I've made the post referenced above by @kubawolanin a Wiki thread as I like the idea of it being a "working document" - easily editable when anyone just thought about something to add, spots an error or feels like adding a new chapter.

ghys avatar Jul 20 '17 13:07 ghys

The list behind the link above already lists a few nice examples. Is this list in line with what you'd think is a good selection?

Absolutely! This page is the best place for that kind of content. I'm now thinking of dynamically fetching list of compelling tutorials for it. We could perhaps replace Here are just a selected few of the existing tutorials and examples with a dynamic list generated from here: https://community.openhab.org/c/tutorials-examples.json

(I recommend you a Chrome extension called JSONView that formats the json files for your convenience ;-))

kubawolanin avatar Jul 20 '17 16:07 kubawolanin

That would be a great improvement to the static docs page.

Maybe something like the "Top 10 trending tutorials" or sth like that would be also really nice. So a visitor would be able to see the variety of usescases and solutions.

Confectrician avatar Jul 20 '17 21:07 Confectrician

We could easily deploy this content dynamically

dynamic list generated

I recommend you a Chrome extension called JSONView

Thoughts?

"You da real MVP" ;) Especially with the JSONView suggestion, I didn't know how much I stuggle until I use the right tools for the job!

BClark09 avatar Jul 20 '17 23:07 BClark09

I don't know what the fuzz is all about. Firefox/Palemoon has a JSON viewer builtin 😃

grafik

Back to the topic: I'm not so sure about the "Top 10 trending tutorials". In my opinion the list should be a meaningfully ordered list of selected/promotional tutorials. A dynamic list can be found in the forum... The json and the raw view of a thread will still be useful for that. But before we drift off into detailed discussions: I'll look into a first implementation of this feature, then we can look into additional cleverness 😉 Deal?

ThomDietrich avatar Jul 22 '17 20:07 ThomDietrich

I'm not so sure about the "Top 10 trending tutorials". In my opinion the list should be a meaningfully ordered list of selected/promotional tutorials.

I thought about this as an additional thing, that would be interesting maybe. But you are right, thats not a topic for this issue. :)

Confectrician avatar Jul 23 '17 17:07 Confectrician

Hey @ghys,

from my understanding this issue is already covered through our showcase section. Wdyt? Should we close this one?

Confectrician avatar Apr 27 '19 09:04 Confectrician