Skip to content

Commit

Permalink
feat(landing-page): add UIPSetting docs to landing page
Browse files Browse the repository at this point in the history
  • Loading branch information
Sisha0 committed Oct 22, 2021
1 parent 2a1faa9 commit 0c660f7
Show file tree
Hide file tree
Showing 8 changed files with 18,267 additions and 29 deletions.
18,250 changes: 18,221 additions & 29 deletions package-lock.json

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions pages/views/index.njk
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,15 @@ layout: basic
<li class="uip-demo__list-item">
<a href="{{ plugin.url | url }}">{{ plugin.data.title }}</a>
</li>
{% if plugin.data.title === 'Settings' %}
<ul class="uip-demo__sublist">
{% for setting in collections.setting %}
<li class="uip-demo__list-item">
<a href="{{ setting.url | url }}">{{ setting.data.title }}</a>
</li>
{%- endfor %}
</ul>
{%- endif %}
{%- endfor %}
</ul>

Expand Down
7 changes: 7 additions & 0 deletions pages/views/settings/bool-setting.njk
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
title: Boolean setting
---

{% markdown %}
{% include 'src/plugins/settings/settings/setting/bool-setting/README.md' %}
{% endmarkdown %}
7 changes: 7 additions & 0 deletions pages/views/settings/select-setting.njk
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
title: Select setting
---

{% markdown %}
{% include 'src/plugins/settings/settings/setting/select-setting/README.md' %}
{% endmarkdown %}
7 changes: 7 additions & 0 deletions pages/views/settings/setting.njk
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
title: Setting
---

{% markdown %}
{% include 'src/plugins/settings/settings/setting/README.md' %}
{% endmarkdown %}
4 changes: 4 additions & 0 deletions pages/views/settings/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"layout": "basic.njk",
"tags": "setting"
}
7 changes: 7 additions & 0 deletions pages/views/settings/text-setting.njk
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
title: Text setting
---

{% markdown %}
{% include 'src/plugins/settings/settings/setting/text-setting/README.md' %}
{% endmarkdown %}
5 changes: 5 additions & 0 deletions pages/views/styles/page.less
Original file line number Diff line number Diff line change
Expand Up @@ -88,4 +88,9 @@ body {
}
}
}

&__sublist {
margin-left: 20px;
list-style-type: none;
}
}

0 comments on commit 0c660f7

Please sign in to comment.