-
-
Notifications
You must be signed in to change notification settings - Fork 700
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
[Ready for Review] Reworking Rules docs #1860
Conversation
Signed-off-by: Richard Koshak <[email protected]>
✅ Thanks for your pull request to the openHAB documentation! The result can be previewed at the URL below (this comment and the preview will be updated if you add more commits).
To edit notification comments on pull requests, go to your Netlify site settings. |
This covers 1 and 1a of the table at openhab#1855. Signed-off-by: Florian Hotze <[email protected]>
Signed-off-by: Florian Hotze <[email protected]>
Signed-off-by: Florian Hotze <[email protected]>
Signed-off-by: Florian Hotze <[email protected]>
Add Rules Concepts page
Signed-off-by: Florian Hotze <[email protected]>
Signed-off-by: Florian Hotze <[email protected]>
Signed-off-by: Florian Hotze <[email protected]>
Signed-off-by: Florian Hotze <[email protected]>
Signed-off-by: Florian Hotze <[email protected]>
[Rules concepts] Add triggers & conditions Looks great. Later on when we return to fix the references I might take out the list of cron fields. I'm not sure we need them here since we link to comprehensive docs on cron anyway and they feel a little out of place. But they do add some value so I'm not sure. Beyond that it looks great! Onward to the next steps!
Hey @rkoshak, i know this is a big one and you have many things on your list usually. From my view any refactored documentation is a win for us, even if it isn't 100% and includes all asked points. :) Is a partly change possible or would that have a negetaive effect for your workigns on this? |
We can but even what we have now isn't really ready. If at least like to get the concepts page done before the first merge. Then I think we can treat each page after that as a separate PR. Though if like to continue to track the progress on the same issue if that's ok. |
I agree on @rkoshak ‘s opinion. FYI: I continue to work on the concepts page, but I will probably leave some parts out, e.g. the rule templates as this is clearly a thing @rkoshak is far more experienced in. I read the community thread you linked, a scene rule is definitely something that has to be included in the examples of the concepts page. |
This pull request has been mentioned on openHAB Community. There might be relevant details there: https://community.openhab.org/t/scenes-openhab-vs-home-assistant-in-2022/138782/21 |
Yes of course. :) |
Signed-off-by: Florian Hotze <[email protected]>
Signed-off-by: Florian Hotze <[email protected]>
Signed-off-by: Florian Hotze <[email protected]>
…es sections Signed-off-by: Florian Hotze <[email protected]>
…ippets Signed-off-by: Florian Hotze <[email protected]>
Signed-off-by: Florian Hotze <[email protected]>
Signed-off-by: Florian Hotze <[email protected]>
Signed-off-by: Florian Hotze <[email protected]>
Signed-off-by: Florian Hotze <[email protected]>
Signed-off-by: Florian Hotze <[email protected]>
Signed-off-by: Florian Hotze <[email protected]>
@Confectrician Rkoshak reviewed my contribution of the concepts page, so there shouldn‘t be need for a super detailed review from your side, I think there are just some styling issues (e.g. the ToC) where we need your help regarding Jekyll. |
Finish the rules concepts page
Added the new rules concepts page to the sidebar. Signed-off-by: Rich Koshak <[email protected]>
Signed-off-by: Richard Koshak <[email protected]>
Signed-off-by: Richard Koshak <[email protected]>
Signed-off-by: Richard Koshak <[email protected]>
Signed-off-by: Richard Koshak <[email protected]>
Signed-off-by: Richard Koshak <[email protected]>
Signed-off-by: Richard Koshak <[email protected]>
Signed-off-by: Richard Koshak <[email protected]>
Signed-off-by: Richard Koshak <[email protected]>
Signed-off-by: Richard Koshak <[email protected]>
~~I think I broke it. ~~ ~~I've been trying to fix the premerge checks like linting and such and now it's not running those checks nor is it deploying the preview. I'm not sure what I can do at this point. ~~ Ha! Renaming the PR seems to kicked it off. |
Signed-off-by: Richard Koshak <[email protected]>
Signed-off-by: Richard Koshak <[email protected]>
@Confectrician , this is ready for review. None of the other concepts pages have a TOC but I think it's useful to have it for the rules page. Should we be consistent and remove it (or add one to the other pages) or keep it in even if it's inconsistent? Also, is there a way to set the TOC to only show level 2 headings? I don't think we need to go to level 3 and 4 for this page. I tried changing the levels from 2..4 to just 2 but it's still showing them all. The MD linting errors are not from our changes (and frankly I think they are false positives). @florian-h05, It seems we cannot have a space in the title for the tabs in our examples. So I renamed the tabs to UI, DSL, JRuby, and JS. Also, now that I see it, I wonder if later on we ought to replace the JS examples with rule builder. As it is right now, the JS examples look really wordy compared to even Rules DSL. We can leave it as is for this PR though but I think the JS examples will look more comparable using the builder instead of JSRule. Finally, @Confectrician, the next PR will create a new "Rules" section in the sidebar (similar to the UIs section). Is there anything else I need to modify beyond the .vuepress/config.js file? It seems I remember needing to edit another file too but I can't figure out what. |
🎉
If you refer to the curly braced configuration you can throw it away anyways.
They are correct, but i am already working on #1906 and the should be solved then. I will need some time for review, but would try to get it done over the weekend. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for the delay.
Finally had some time to check this.
Just som minor things i will solve myself.
Signed-off-by: Jerome Luckenbach <[email protected]>
Getting started implementing #1855.
This first commit has some placeholders for the files we'll need but doesn't include any content changes yet.
Signed-off-by: Richard Koshak [email protected]