From 1bc34f9feede21612f10c9f6e1f0a734c1cf9f21 Mon Sep 17 00:00:00 2001 From: Yannick Schaus Date: Mon, 1 Mar 2021 15:43:39 +0100 Subject: [PATCH] Add props description components (#276) Those component can be used to describe config parameters & groups. The UI component generated docs will use those but they could be useful for describing configuration of e.g. thing types, channels, profiles, rule modules... Minor dark mode style adjustments. Change wording of tip box in install instructions as per @mstormi's request. Signed-off-by: Yannick Schaus --- .vuepress/components/InstallInstructions.vue | 2 +- .vuepress/components/PropBlock.vue | 52 ++++++++++++++++++++ .vuepress/components/PropDescription.vue | 16 ++++++ .vuepress/components/PropGroup.vue | 21 ++++++++ .vuepress/components/PropOption.vue | 16 ++++++ .vuepress/components/PropOptions.vue | 45 +++++++++++++++++ .vuepress/styles/index.styl | 6 +++ docs/.gitignore | 1 + 8 files changed, 158 insertions(+), 1 deletion(-) create mode 100644 .vuepress/components/PropBlock.vue create mode 100644 .vuepress/components/PropDescription.vue create mode 100644 .vuepress/components/PropGroup.vue create mode 100644 .vuepress/components/PropOption.vue create mode 100644 .vuepress/components/PropOptions.vue diff --git a/.vuepress/components/InstallInstructions.vue b/.vuepress/components/InstallInstructions.vue index 5466a5a6..d87b8adc 100644 --- a/.vuepress/components/InstallInstructions.vue +++ b/.vuepress/components/InstallInstructions.vue @@ -74,7 +74,7 @@

{{optionNumber('package')}}Install the APT Packages (Recommended)

TIP

-

On Debian-based systems you can also opt to add our openHABian turn-key solution on top of your existing operating system, follow these instructions instead to check whether your system is eligible and install it.

+

On Debian systems you can also opt to add our openHABian turn-key solution on top of your existing operating system, follow these instructions instead to check whether your system is eligible and install it.

For Raspberry Pi, however, we strongly recommend flashing the complete OS image, see above.

    diff --git a/.vuepress/components/PropBlock.vue b/.vuepress/components/PropBlock.vue new file mode 100644 index 00000000..3423d818 --- /dev/null +++ b/.vuepress/components/PropBlock.vue @@ -0,0 +1,52 @@ + + + + + diff --git a/.vuepress/components/PropDescription.vue b/.vuepress/components/PropDescription.vue new file mode 100644 index 00000000..470f67b2 --- /dev/null +++ b/.vuepress/components/PropDescription.vue @@ -0,0 +1,16 @@ + + + + + diff --git a/.vuepress/components/PropGroup.vue b/.vuepress/components/PropGroup.vue new file mode 100644 index 00000000..1e05a837 --- /dev/null +++ b/.vuepress/components/PropGroup.vue @@ -0,0 +1,21 @@ + + + + + diff --git a/.vuepress/components/PropOption.vue b/.vuepress/components/PropOption.vue new file mode 100644 index 00000000..59ed19e5 --- /dev/null +++ b/.vuepress/components/PropOption.vue @@ -0,0 +1,16 @@ + + + + + diff --git a/.vuepress/components/PropOptions.vue b/.vuepress/components/PropOptions.vue new file mode 100644 index 00000000..76cc9dc1 --- /dev/null +++ b/.vuepress/components/PropOptions.vue @@ -0,0 +1,45 @@ + + + + + diff --git a/.vuepress/styles/index.styl b/.vuepress/styles/index.styl index f132f95c..86860194 100644 --- a/.vuepress/styles/index.styl +++ b/.vuepress/styles/index.styl @@ -288,6 +288,8 @@ a[href*='.openhab.org'] .outbound color rgb(221, 221, 221) .custom-block.tip background-color rgba(13, 25, 35, 0.6) !important + .custom-block.details + background-color rgb(32, 32, 32) !important .os-tab, .distro-tab, .version-tab &:hover @@ -308,6 +310,10 @@ a[href*='.openhab.org'] .outbound .topic-link color rgb(221, 221, 221) !important + kbd + border-color rgb(68, 68, 68) !important + background-color rgb(24, 24, 24) !important + footer background black !important border-top none !important diff --git a/docs/.gitignore b/docs/.gitignore index 4f7a77a0..d03bfd07 100644 --- a/docs/.gitignore +++ b/docs/.gitignore @@ -5,4 +5,5 @@ configuration developer installation tutorial +ui readme.md