diff --git a/.changeset/hot-jars-leave.md b/.changeset/hot-jars-leave.md
new file mode 100644
index 000000000..8b61cd2bf
--- /dev/null
+++ b/.changeset/hot-jars-leave.md
@@ -0,0 +1,43 @@
+---
+'providence-analytics': minor
+'publish-docs': minor
+'remark-extend': minor
+'rocket-preset-extend-lion-docs': minor
+'@lion/accordion': minor
+'@lion/button': minor
+'@lion/calendar': minor
+'@lion/checkbox-group': minor
+'@lion/collapsible': minor
+'@lion/combobox': minor
+'@lion/core': minor
+'@lion/dialog': minor
+'@lion/fieldset': minor
+'@lion/form': minor
+'@lion/form-core': minor
+'@lion/form-integrations': minor
+'@lion/icon': minor
+'@lion/input': minor
+'@lion/input-amount': minor
+'@lion/input-date': minor
+'@lion/input-datepicker': minor
+'@lion/input-email': minor
+'@lion/input-iban': minor
+'@lion/input-range': minor
+'@lion/input-stepper': minor
+'@lion/listbox': minor
+'@lion/localize': minor
+'@lion/overlays': minor
+'@lion/pagination': minor
+'@lion/progress-indicator': minor
+'@lion/radio-group': minor
+'@lion/select': minor
+'@lion/select-rich': minor
+'@lion/steps': minor
+'@lion/switch': minor
+'@lion/tabs': minor
+'@lion/textarea': minor
+'@lion/tooltip': minor
+'@lion/validate-messages': minor
+---
+
+New documentation structure
diff --git a/docs/_assets/style.css b/docs/_assets/style.css
index b64a23804..bf191a047 100644
--- a/docs/_assets/style.css
+++ b/docs/_assets/style.css
@@ -93,3 +93,26 @@ rocket-navigation ul > li.active > ul > li.current a {
rocket-navigation ul > li.active > ul > li.current > ul {
display: none;
}
+
+/* only apply on components list (li > 6) */
+rocket-navigation > ul > li:nth-last-child(n+6) > a,
+rocket-navigation > ul > li:nth-child(n+6) > a {
+ font-size: 16px;
+ text-transform: none;
+ color: var(--primary-text-color);
+}
+
+rocket-navigation > ul > li:nth-last-child(n+6) > a:hover,
+rocket-navigation > ul > li:nth-child(n+6) > a:hover {
+ color: var(--primary-color);
+}
+
+rocket-navigation > ul > li:nth-last-child(n+6) > ul,
+rocket-navigation ul > li:nth-child(n+6) > ul {
+ display: none;
+}
+
+rocket-navigation > ul > li:nth-last-child(n+6).active > ul,
+rocket-navigation ul > li:nth-child(n+6).active > ul {
+ display: block;
+}
diff --git a/docs/blog/extending-lions-website.md b/docs/blog/extending-lions-website.md
index 00a770745..f5732d480 100644
--- a/docs/blog/extending-lions-website.md
+++ b/docs/blog/extending-lions-website.md
@@ -68,7 +68,7 @@ Note: importBlock is a faster way of writing imports for headlines
::import('./path/to/file.md', 'heading[depth=2]:has([value=red])', 'heading[depth=2]:has([value=red]) ~heading[depth=2]')
```
-If you want to know more please look at the documentation for [remark-extend](../docs/node-tools/remark-extend/overview.md).
+If you want to know more please look at the documentation for [remark-extend](../fundamentals/node-tools/remark-extend/overview.md).
## Upgrading Documentation
diff --git a/docs/blog/index.md b/docs/blog/index.md
index 48d22b3e7..28025a723 100644
--- a/docs/blog/index.md
+++ b/docs/blog/index.md
@@ -1,9 +1,10 @@
---
title: Lion Blog
layout: layout-blog-overview
+eleventyExcludeFromCollections: false
eleventyNavigation:
key: Blog
- order: 40
+ order: 50
pagination:
data: collections.blog
size: 10
diff --git a/docs/blog/ing-open-sources-lion.md b/docs/blog/ing-open-sources-lion.md
index 3d4555589..a7432ffc7 100644
--- a/docs/blog/ing-open-sources-lion.md
+++ b/docs/blog/ing-open-sources-lion.md
@@ -210,7 +210,7 @@ Excellent! Lea can now use the tabs component like so:
```
-There we go, Lea's component is already done, so let's write some documentation. See the [live Lea tabs documentation page](../components/content/tabs/examples.md). You can see the full code of `lea-tabs` [on github](https://github.com/ing-bank/lion/tree/master/demo/).
+There we go, Lea's component is already done, so let's write some documentation. See the [live Lea tabs documentation page](../components/tabs/examples.md). You can see the full code of `lea-tabs` [on github](https://github.com/ing-bank/lion/tree/master/demo/).
P.S.: Do note that Lea is now responsible for keeping the documentation of `lea-tabs` up to date herself, and improvements on Lion's documentation will not automatically be reflected on Lea's documentation.
diff --git a/docs/blog/introducing-lions-website.md b/docs/blog/introducing-lions-website.md
index 4765016f7..2f6b68359 100644
--- a/docs/blog/introducing-lions-website.md
+++ b/docs/blog/introducing-lions-website.md
@@ -15,8 +15,8 @@ Right now it's more or less a port for our existing demos from storybook. But we
1. [Guides](../guides/index.md)
A dedicated section where we will teach you about how to get started with lion. This section is completely new and will grow over time.
2. [Components](../components/index.md)
- Here you will find our documentation for each of our components. Each is split into two pages namely Overview and Features. We also plan to add an API page soonish.
-3. [Docs](../docs/index.md)
+ Here you will find our documentation for each of our components. Each is split into two pages namely Overview and Use Cases. We also plan to add an API page soonish.
+3. [Fundamentals](../fundamentals/index.md)
This is the home for general documentation which includes the fundamental systems all our components are build upon and various tools we use in the frontend or backend.
4. [Blog](./index.md)
We now have a dedicated section about all our blog posts. Take a peek and follow our story.
@@ -40,7 +40,7 @@ import { html, css } from '@lion/core';
import './lion-calendar.js';
export default {
- title: 'Others/Calendar',
+ title: 'Others/Calendar',
};
```
@@ -89,7 +89,7 @@ Now you want to make sure it gets published with your accordion package so you r
```
# Accordion
-[=> See Source <=](../../docs/components/content/accordion/overview.md)
+[=> See Source <=](../../docs/components/accordion/overview.md)
```
Now by calling `publish-docs` within the `prepublishOnly` step your Readme file will contain the content of its source.
@@ -100,7 +100,7 @@ The benefits of this approach are
- The published readme contains all the documentation you need
- All links are version safe (e.g. if you look at v0.5 it will link to the GitHub Pages at this time)
-If you want to know more please look at the documentation for [publish-docs](../docs/node-tools/publish-docs/overview.md).
+If you want to know more please look at the documentation for [publish-docs](../fundamentals/node-tools/publish-docs/overview.md).
## Upgrading Extending Documentation
diff --git a/docs/components/icons/icon/index.md b/docs/components/accordion/index.md
similarity index 54%
rename from docs/components/icons/icon/index.md
rename to docs/components/accordion/index.md
index 0642be966..80a5033ed 100644
--- a/docs/components/icons/icon/index.md
+++ b/docs/components/accordion/index.md
@@ -1,3 +1,3 @@
-# Icons >> Icon
+# Accordion
-> go to Overview
diff --git a/docs/components/content/accordion/overview.md b/docs/components/accordion/overview.md
similarity index 68%
rename from docs/components/content/accordion/overview.md
rename to docs/components/accordion/overview.md
index c0ea2e330..e0f1c613e 100644
--- a/docs/components/content/accordion/overview.md
+++ b/docs/components/accordion/overview.md
@@ -1,4 +1,4 @@
-# Content >> Accordion >> Overview ||10
+# Accordion >> Overview ||10
An accordion is a vertically stacked set of interactive headings that each contain a title representing a section of content. It allows users to toggle the display of sections of content.
@@ -74,54 +74,54 @@ export const overview = () => previewHtml`- Orange flesh is 87% water, 12% carbohydrates, 1% protein, and contains negligible fat - (table). In a 100 gram reference amount, orange flesh provides 47 calories, and is a - rich source of vitamin C, providing 64% of the Daily Value. No other micronutrients are - present in significant amounts (table). -
-+ Orange flesh is 87% water, 12% carbohydrates, 1% protein, and contains negligible fat + (table). In a 100 gram reference amount, orange flesh provides 47 calories, and is a rich + source of vitamin C, providing 64% of the Daily Value. No other micronutrients are present + in significant amounts (table). +
+- Orange flesh is 87% water, 12% carbohydrates, 1% protein, and contains negligible fat - (table). In a 100 gram reference amount, orange flesh provides 47 calories, and is a rich - source of vitamin C, providing 64% of the Daily Value. No other micronutrients are present in - significant amounts (table). -
-+ Orange flesh is 87% water, 12% carbohydrates, 1% protein, and contains negligible fat (table). + In a 100 gram reference amount, orange flesh provides 47 calories, and is a rich source of + vitamin C, providing 64% of the Daily Value. No other micronutrients are present in significant + amounts (table). +
+Everything you need to re-use the accordion.
diff --git a/docs/components/content/accordion/use-cases.md b/docs/components/accordion/use-cases.md similarity index 99% rename from docs/components/content/accordion/use-cases.md rename to docs/components/accordion/use-cases.md index 94fd8d1e0..66285741f 100644 --- a/docs/components/content/accordion/use-cases.md +++ b/docs/components/accordion/use-cases.md @@ -1,4 +1,4 @@ -# Content >> Accordion >> Use Cases ||20 +# Accordion >> Use Cases ||20 ```js script import { html as previewHtml } from '@mdjs/mdjs-preview'; diff --git a/docs/components/interaction/button/examples.md b/docs/components/button/examples.md similarity index 94% rename from docs/components/interaction/button/examples.md rename to docs/components/button/examples.md index 1053f7dd7..a22559e42 100644 --- a/docs/components/interaction/button/examples.md +++ b/docs/components/button/examples.md @@ -1,4 +1,4 @@ -# Interaction >> Button >> Examples ||30 +# Button >> Examples ||30 ```js script import { html } from '@mdjs/mdjs-preview'; diff --git a/docs/components/content/tabs/index.md b/docs/components/button/index.md similarity index 51% rename from docs/components/content/tabs/index.md rename to docs/components/button/index.md index 3018ec15e..02c3ebf2c 100644 --- a/docs/components/content/tabs/index.md +++ b/docs/components/button/index.md @@ -1,3 +1,3 @@ -# Content >> Tabs +# Button ||10 -> go to Overview diff --git a/docs/components/interaction/button/overview.md b/docs/components/button/overview.md similarity index 94% rename from docs/components/interaction/button/overview.md rename to docs/components/button/overview.md index ba14493cc..28c071a31 100644 --- a/docs/components/interaction/button/overview.md +++ b/docs/components/button/overview.md @@ -1,4 +1,4 @@ -# Interaction >> Button >> Overview ||10 +# Button >> Overview ||10 A button web component that is easily stylable and accessible. diff --git a/docs/components/interaction/button/src/icon.svg.js b/docs/components/button/src/icon.svg.js similarity index 100% rename from docs/components/interaction/button/src/icon.svg.js rename to docs/components/button/src/icon.svg.js diff --git a/docs/components/interaction/button/features.md b/docs/components/button/use-cases.md similarity index 99% rename from docs/components/interaction/button/features.md rename to docs/components/button/use-cases.md index 2a4657cf5..2aede299d 100644 --- a/docs/components/interaction/button/features.md +++ b/docs/components/button/use-cases.md @@ -1,4 +1,4 @@ -# Interaction >> Button >> Features ||20 +# Button >> Use Cases ||20 ```js script import { html } from '@mdjs/mdjs-preview'; diff --git a/docs/components/calendar/index.md b/docs/components/calendar/index.md new file mode 100644 index 000000000..bc37eb4d7 --- /dev/null +++ b/docs/components/calendar/index.md @@ -0,0 +1,3 @@ +# Calendar ||10 + +-> go to Overview diff --git a/docs/components/inputs/calendar/overview.md b/docs/components/calendar/overview.md similarity index 97% rename from docs/components/inputs/calendar/overview.md rename to docs/components/calendar/overview.md index 028a5657a..c44c68c15 100644 --- a/docs/components/inputs/calendar/overview.md +++ b/docs/components/calendar/overview.md @@ -1,4 +1,4 @@ -# Inputs >> Calendar >> Overview ||10 +# Calendar >> Overview ||10 A reusable and accessible calendar view web component. diff --git a/docs/components/inputs/calendar/features.md b/docs/components/calendar/use-cases.md similarity index 99% rename from docs/components/inputs/calendar/features.md rename to docs/components/calendar/use-cases.md index 30822ee02..e2253e3cb 100644 --- a/docs/components/inputs/calendar/features.md +++ b/docs/components/calendar/use-cases.md @@ -1,4 +1,4 @@ -# Inputs >> Calendar >> Features ||20 +# Calendar >> Use Cases ||20 ```js script import { html, css } from '@mdjs/mdjs-preview'; diff --git a/docs/components/checkbox-group/index.md b/docs/components/checkbox-group/index.md new file mode 100644 index 000000000..f29e51936 --- /dev/null +++ b/docs/components/checkbox-group/index.md @@ -0,0 +1,3 @@ +# Checkbox Group ||10 + +-> go to Overview diff --git a/docs/components/inputs/checkbox-group/overview.md b/docs/components/checkbox-group/overview.md similarity index 96% rename from docs/components/inputs/checkbox-group/overview.md rename to docs/components/checkbox-group/overview.md index b717bcc36..173226212 100644 --- a/docs/components/inputs/checkbox-group/overview.md +++ b/docs/components/checkbox-group/overview.md @@ -1,4 +1,4 @@ -# Inputs >> Checkbox Group >> Overview ||10 +# Checkbox Group >> Overview ||10 A checkbox group enhances the functionality of the native `` element. Its purpose is to provide a way for users to check **multiple** options amongst a set of choices, or to function as a single toggle. diff --git a/docs/components/inputs/checkbox-group/features.md b/docs/components/checkbox-group/use-cases.md similarity index 99% rename from docs/components/inputs/checkbox-group/features.md rename to docs/components/checkbox-group/use-cases.md index ec1383903..6979a379a 100644 --- a/docs/components/inputs/checkbox-group/features.md +++ b/docs/components/checkbox-group/use-cases.md @@ -1,4 +1,4 @@ -# Inputs >> Checkbox Group >> Features ||20 +# Checkbox Group >> Use Cases ||20 ```js script import { html } from '@mdjs/mdjs-preview'; diff --git a/docs/components/content/collapsible/assets/CustomCollapsible.js b/docs/components/collapsible/assets/CustomCollapsible.js similarity index 100% rename from docs/components/content/collapsible/assets/CustomCollapsible.js rename to docs/components/collapsible/assets/CustomCollapsible.js diff --git a/docs/components/content/collapsible/assets/applyDemoCollapsibleStyles.js b/docs/components/collapsible/assets/applyDemoCollapsibleStyles.js similarity index 100% rename from docs/components/content/collapsible/assets/applyDemoCollapsibleStyles.js rename to docs/components/collapsible/assets/applyDemoCollapsibleStyles.js diff --git a/docs/components/content/collapsible/examples.md b/docs/components/collapsible/examples.md similarity index 98% rename from docs/components/content/collapsible/examples.md rename to docs/components/collapsible/examples.md index 9efdc2c63..fb2752557 100644 --- a/docs/components/content/collapsible/examples.md +++ b/docs/components/collapsible/examples.md @@ -1,4 +1,4 @@ -# Content >> Collapsible >> Examples ||30 +# Collapsible >> Examples ||30 ```js script import { html } from '@mdjs/mdjs-preview'; diff --git a/docs/components/collapsible/index.md b/docs/components/collapsible/index.md new file mode 100644 index 000000000..118b374bd --- /dev/null +++ b/docs/components/collapsible/index.md @@ -0,0 +1,3 @@ +# Collapsible ||10 + +-> go to Overview diff --git a/docs/components/content/collapsible/overview.md b/docs/components/collapsible/overview.md similarity index 86% rename from docs/components/content/collapsible/overview.md rename to docs/components/collapsible/overview.md index f739b3ffa..b1e45c141 100644 --- a/docs/components/content/collapsible/overview.md +++ b/docs/components/collapsible/overview.md @@ -1,4 +1,4 @@ -# Content >> Collapsible >> Overview ||10 +# Collapsible >> Overview ||10 A combination of a button (the invoker) and a chunk of 'extra content'. This web component can be extended with an animation to disclose the extra content. There are two slots available respectively; `invoker` to specify the collapsible's invoker and `content` for the extra content of the collapsible. @@ -22,7 +22,7 @@ export const main = () => html` ## Features - Use `opened` attribute or `toggle()` method to render default open. -- `invoker` slot can be custom template e.g. our [button](../../interaction/button/overview.md) or native `button` with custom styling. +- `invoker` slot can be custom template e.g. our [button](../button/overview.md) or native `button` with custom styling. - Observe the state with the help of `@opened-changed` event. - `show()` and `hide()` are helper methods to hide or show the content from outside. diff --git a/docs/components/content/collapsible/features.md b/docs/components/collapsible/use-cases.md similarity index 98% rename from docs/components/content/collapsible/features.md rename to docs/components/collapsible/use-cases.md index fdd454ee9..1f89ceeb0 100644 --- a/docs/components/content/collapsible/features.md +++ b/docs/components/collapsible/use-cases.md @@ -1,4 +1,4 @@ -# Content >> Collapsible >> Features ||20 +# Collapsible >> Use Cases ||20 ```js script import { html } from '@mdjs/mdjs-preview'; diff --git a/docs/components/inputs/combobox/examples.md b/docs/components/combobox/examples.md similarity index 99% rename from docs/components/inputs/combobox/examples.md rename to docs/components/combobox/examples.md index 469a44dd5..0ede4bcfa 100644 --- a/docs/components/inputs/combobox/examples.md +++ b/docs/components/combobox/examples.md @@ -1,4 +1,4 @@ -# Inputs >> Combobox >> Examples ||30 +# Combobox >> Examples ||30 ```js script import { html } from '@mdjs/mdjs-preview'; diff --git a/docs/components/combobox/index.md b/docs/components/combobox/index.md new file mode 100644 index 000000000..ac13b7839 --- /dev/null +++ b/docs/components/combobox/index.md @@ -0,0 +1,3 @@ +# Combobox ||10 + +-> go to Overview diff --git a/docs/components/inputs/combobox/overview.md b/docs/components/combobox/overview.md similarity index 97% rename from docs/components/inputs/combobox/overview.md rename to docs/components/combobox/overview.md index ba81dd955..b641bcba6 100644 --- a/docs/components/inputs/combobox/overview.md +++ b/docs/components/combobox/overview.md @@ -1,4 +1,4 @@ -# Inputs >> Combobox >> Overview ||10 +# Combobox >> Overview ||10 A combobox is a widget made up of the combination of two distinct elements: diff --git a/docs/components/inputs/combobox/src/LinkMixin.js b/docs/components/combobox/src/LinkMixin.js similarity index 100% rename from docs/components/inputs/combobox/src/LinkMixin.js rename to docs/components/combobox/src/LinkMixin.js diff --git a/docs/components/inputs/combobox/src/demo-selection-display.js b/docs/components/combobox/src/demo-selection-display.js similarity index 100% rename from docs/components/inputs/combobox/src/demo-selection-display.js rename to docs/components/combobox/src/demo-selection-display.js diff --git a/docs/components/inputs/combobox/src/gh-combobox/gh-button.js b/docs/components/combobox/src/gh-combobox/gh-button.js similarity index 100% rename from docs/components/inputs/combobox/src/gh-combobox/gh-button.js rename to docs/components/combobox/src/gh-combobox/gh-button.js diff --git a/docs/components/inputs/combobox/src/gh-combobox/gh-combobox.js b/docs/components/combobox/src/gh-combobox/gh-combobox.js similarity index 100% rename from docs/components/inputs/combobox/src/gh-combobox/gh-combobox.js rename to docs/components/combobox/src/gh-combobox/gh-combobox.js diff --git a/docs/components/inputs/combobox/src/google-combobox/assets/google-clear-icon.js b/docs/components/combobox/src/google-combobox/assets/google-clear-icon.js similarity index 100% rename from docs/components/inputs/combobox/src/google-combobox/assets/google-clear-icon.js rename to docs/components/combobox/src/google-combobox/assets/google-clear-icon.js diff --git a/docs/components/inputs/combobox/src/google-combobox/assets/google-search-icon.js b/docs/components/combobox/src/google-combobox/assets/google-search-icon.js similarity index 100% rename from docs/components/inputs/combobox/src/google-combobox/assets/google-search-icon.js rename to docs/components/combobox/src/google-combobox/assets/google-search-icon.js diff --git a/docs/components/inputs/combobox/src/google-combobox/assets/google-voice-search-icon.js b/docs/components/combobox/src/google-combobox/assets/google-voice-search-icon.js similarity index 100% rename from docs/components/inputs/combobox/src/google-combobox/assets/google-voice-search-icon.js rename to docs/components/combobox/src/google-combobox/assets/google-voice-search-icon.js diff --git a/docs/components/inputs/combobox/src/google-combobox/assets/googlelogo_color_272x92dp.png b/docs/components/combobox/src/google-combobox/assets/googlelogo_color_272x92dp.png similarity index 100% rename from docs/components/inputs/combobox/src/google-combobox/assets/googlelogo_color_272x92dp.png rename to docs/components/combobox/src/google-combobox/assets/googlelogo_color_272x92dp.png diff --git a/docs/components/inputs/combobox/src/google-combobox/google-combobox.js b/docs/components/combobox/src/google-combobox/google-combobox.js similarity index 100% rename from docs/components/inputs/combobox/src/google-combobox/google-combobox.js rename to docs/components/combobox/src/google-combobox/google-combobox.js diff --git a/docs/components/inputs/combobox/src/lazyRender.js b/docs/components/combobox/src/lazyRender.js similarity index 100% rename from docs/components/inputs/combobox/src/lazyRender.js rename to docs/components/combobox/src/lazyRender.js diff --git a/docs/components/inputs/combobox/src/levenshtein.js b/docs/components/combobox/src/levenshtein.js similarity index 100% rename from docs/components/inputs/combobox/src/levenshtein.js rename to docs/components/combobox/src/levenshtein.js diff --git a/docs/components/inputs/combobox/src/md-combobox/MdFieldMixin.js b/docs/components/combobox/src/md-combobox/MdFieldMixin.js similarity index 100% rename from docs/components/inputs/combobox/src/md-combobox/MdFieldMixin.js rename to docs/components/combobox/src/md-combobox/MdFieldMixin.js diff --git a/docs/components/inputs/combobox/src/md-combobox/md-combobox.js b/docs/components/combobox/src/md-combobox/md-combobox.js similarity index 100% rename from docs/components/inputs/combobox/src/md-combobox/md-combobox.js rename to docs/components/combobox/src/md-combobox/md-combobox.js diff --git a/docs/components/inputs/combobox/src/md-combobox/md-input.js b/docs/components/combobox/src/md-combobox/md-input.js similarity index 100% rename from docs/components/inputs/combobox/src/md-combobox/md-input.js rename to docs/components/combobox/src/md-combobox/md-input.js diff --git a/docs/components/inputs/combobox/src/md-combobox/style/load-roboto.js b/docs/components/combobox/src/md-combobox/style/load-roboto.js similarity index 100% rename from docs/components/inputs/combobox/src/md-combobox/style/load-roboto.js rename to docs/components/combobox/src/md-combobox/style/load-roboto.js diff --git a/docs/components/inputs/combobox/src/md-combobox/style/md-ripple.js b/docs/components/combobox/src/md-combobox/style/md-ripple.js similarity index 100% rename from docs/components/inputs/combobox/src/md-combobox/style/md-ripple.js rename to docs/components/combobox/src/md-combobox/style/md-ripple.js diff --git a/docs/components/inputs/combobox/src/wa-combobox/wa-combobox.js b/docs/components/combobox/src/wa-combobox/wa-combobox.js similarity index 100% rename from docs/components/inputs/combobox/src/wa-combobox/wa-combobox.js rename to docs/components/combobox/src/wa-combobox/wa-combobox.js diff --git a/docs/components/inputs/combobox/features.md b/docs/components/combobox/use-cases.md similarity index 99% rename from docs/components/inputs/combobox/features.md rename to docs/components/combobox/use-cases.md index fd848e932..3a51bab0c 100644 --- a/docs/components/inputs/combobox/features.md +++ b/docs/components/combobox/use-cases.md @@ -1,4 +1,4 @@ -# Inputs >> Combobox >> Features ||20 +# Combobox >> Use Cases ||20 A combobox is a widget made up of the combination of two distinct elements: diff --git a/docs/components/content/accordion/index.md b/docs/components/content/accordion/index.md deleted file mode 100644 index cf0241b22..000000000 --- a/docs/components/content/accordion/index.md +++ /dev/null @@ -1,3 +0,0 @@ -# Content >> Accordion - --> go to Overview diff --git a/docs/components/content/collapsible/index.md b/docs/components/content/collapsible/index.md deleted file mode 100644 index f15486238..000000000 --- a/docs/components/content/collapsible/index.md +++ /dev/null @@ -1,3 +0,0 @@ -# Content >> Collapsible - --> go to Overview diff --git a/docs/components/content/index.md b/docs/components/content/index.md deleted file mode 100644 index deae6f052..000000000 --- a/docs/components/content/index.md +++ /dev/null @@ -1 +0,0 @@ -# Content ||10 diff --git a/docs/components/content/progress-indicator/index.md b/docs/components/content/progress-indicator/index.md deleted file mode 100644 index 3180953cb..000000000 --- a/docs/components/content/progress-indicator/index.md +++ /dev/null @@ -1,3 +0,0 @@ -# Content >> Progress Indicator - --> go to Overview diff --git a/docs/components/dialog/index.md b/docs/components/dialog/index.md new file mode 100644 index 000000000..a6d4406a9 --- /dev/null +++ b/docs/components/dialog/index.md @@ -0,0 +1,3 @@ +# Dialog ||20 + +-> go to Overview diff --git a/docs/components/interaction/dialog/overview.md b/docs/components/dialog/overview.md similarity index 95% rename from docs/components/interaction/dialog/overview.md rename to docs/components/dialog/overview.md index 46db4f998..7ad20e8c4 100644 --- a/docs/components/interaction/dialog/overview.md +++ b/docs/components/dialog/overview.md @@ -1,4 +1,4 @@ -# Interaction >> Dialog >> Overview ||10 +# Dialog >> Overview ||10 A web component that wraps a modal dialog controller. Its purpose is to make it easy to use our Overlay System declaratively. @@ -58,6 +58,6 @@ import '@lion/dialog/define'; ## Changing the configuration You can use the `config` property on the dialog to change the configuration. -The documentation of the full config object can be found in the `lion/overlay` package or here in [Overlay System - Configuration](../../../docs/systems/overlays/configuration.md). +The documentation of the full config object can be found in the `lion/overlay` package or here in [Overlay System - Configuration](../../fundamentals/systems/overlays/configuration.md). The `config` property uses a setter to merge the passed configuration with the current, so you only **overwrite what you pass** when updating `config`. diff --git a/docs/components/interaction/dialog/src/demo-dialog-style.js b/docs/components/dialog/src/demo-dialog-style.js similarity index 100% rename from docs/components/interaction/dialog/src/demo-dialog-style.js rename to docs/components/dialog/src/demo-dialog-style.js diff --git a/docs/components/interaction/dialog/src/demoStyle.js b/docs/components/dialog/src/demoStyle.js similarity index 100% rename from docs/components/interaction/dialog/src/demoStyle.js rename to docs/components/dialog/src/demoStyle.js diff --git a/docs/components/interaction/dialog/src/slots-dialog-content.js b/docs/components/dialog/src/slots-dialog-content.js similarity index 100% rename from docs/components/interaction/dialog/src/slots-dialog-content.js rename to docs/components/dialog/src/slots-dialog-content.js diff --git a/docs/components/interaction/dialog/src/styled-dialog-content.js b/docs/components/dialog/src/styled-dialog-content.js similarity index 100% rename from docs/components/interaction/dialog/src/styled-dialog-content.js rename to docs/components/dialog/src/styled-dialog-content.js diff --git a/docs/components/interaction/dialog/features.md b/docs/components/dialog/use-cases.md similarity index 99% rename from docs/components/interaction/dialog/features.md rename to docs/components/dialog/use-cases.md index a1af5abb5..71b6b7d86 100644 --- a/docs/components/interaction/dialog/features.md +++ b/docs/components/dialog/use-cases.md @@ -1,4 +1,4 @@ -# Interaction >> Dialog >> Features ||20 +# Dialog >> Use Cases ||20 `lion-dialog` is a component wrapping a modal dialog controller. Its purpose is to make it easy to use our Overlay System declaratively. diff --git a/docs/components/fieldset/index.md b/docs/components/fieldset/index.md new file mode 100644 index 000000000..6a3e4d0e0 --- /dev/null +++ b/docs/components/fieldset/index.md @@ -0,0 +1,3 @@ +# Fieldset ||20 + +-> go to Overview diff --git a/docs/components/inputs/fieldset/overview.md b/docs/components/fieldset/overview.md similarity index 85% rename from docs/components/inputs/fieldset/overview.md rename to docs/components/fieldset/overview.md index 99a14a189..988ae03a4 100644 --- a/docs/components/inputs/fieldset/overview.md +++ b/docs/components/fieldset/overview.md @@ -1,4 +1,4 @@ -# Inputs >> Fieldset >> Overview ||10 +# Fieldset >> Overview ||10 ```js script import { html } from '@mdjs/mdjs-preview'; @@ -31,8 +31,8 @@ Our fieldset instead has a label attribute or you can add a label with a div- or ## Features - Easy retrieval of form data based on field names -- Advanced user interaction scenarios via [interaction states](../../../docs/systems/form/interaction-states.md) -- Can have [validate](../../../docs/systems/form/validate.md) on fieldset level and shows the validation feedback below the fieldset +- Advanced user interaction scenarios via [interaction states](../../fundamentals/systems/form/interaction-states.md) +- Can have [validate](../../fundamentals/systems/form/validate.md) on fieldset level and shows the validation feedback below the fieldset - Can disable input fields on fieldset level - Accessible out of the box diff --git a/docs/components/inputs/fieldset/features.md b/docs/components/fieldset/use-cases.md similarity index 99% rename from docs/components/inputs/fieldset/features.md rename to docs/components/fieldset/use-cases.md index fdb0b8b50..9d2d966e8 100644 --- a/docs/components/inputs/fieldset/features.md +++ b/docs/components/fieldset/use-cases.md @@ -1,4 +1,4 @@ -# Inputs >> Fieldset >> Features ||20 +# Fieldset >> Use Cases ||20 ```js script import { html } from '@mdjs/mdjs-preview'; diff --git a/docs/components/form/index.md b/docs/components/form/index.md new file mode 100644 index 000000000..647de681e --- /dev/null +++ b/docs/components/form/index.md @@ -0,0 +1,3 @@ +# Form ||20 + +-> go to Overview diff --git a/docs/components/inputs/form/overview.md b/docs/components/form/overview.md similarity index 82% rename from docs/components/inputs/form/overview.md rename to docs/components/form/overview.md index 16b0162a4..a3460da8b 100644 --- a/docs/components/inputs/form/overview.md +++ b/docs/components/form/overview.md @@ -1,4 +1,4 @@ -# Inputs >> Form >> Overview ||10 +# Form >> Overview ||10 ```js script import { html } from '@mdjs/mdjs-preview'; @@ -8,7 +8,7 @@ import '@lion/form/define'; ``` A web component that enhances the functionality of the native `form` component. -It is designed to interact with (instances of) the [form controls](../overview.md). +It is designed to interact with (instances of) the [form controls](../../fundamentals/systems/form/overview.md). ```js preview-story export const main = () => html` @@ -26,11 +26,11 @@ export const main = () => html` - Data synchronization with models - Easy retrieval of form data based on field names - Advanced validation possibilities -- Advanced user interaction scenarios via [interaction states](../../../docs/systems/form/interaction-states.md) +- Advanced user interaction scenarios via [interaction states](../../fundamentals/systems/form/interaction-states.md) - Registration mechanism for form controls - Accessible out of the box -For more information about fields that are designed for our `form`, please read [form system](../../../docs/systems/form/overview.md). +For more information about fields that are designed for our `form`, please read [form system](../../fundamentals/systems/form/overview.md). ## Installation diff --git a/docs/components/inputs/form/features.md b/docs/components/form/use-cases.md similarity index 98% rename from docs/components/inputs/form/features.md rename to docs/components/form/use-cases.md index 723efd4a4..246277ec8 100644 --- a/docs/components/inputs/form/features.md +++ b/docs/components/form/use-cases.md @@ -1,4 +1,4 @@ -# Inputs >> Form >> Features ||20 +# Form >> Use Cases ||20 ```js script import { html } from '@mdjs/mdjs-preview'; diff --git a/docs/components/icons/icon/assets/bugs/bug01.svg.js b/docs/components/icon/assets/bugs/bug01.svg.js similarity index 100% rename from docs/components/icons/icon/assets/bugs/bug01.svg.js rename to docs/components/icon/assets/bugs/bug01.svg.js diff --git a/docs/components/icons/icon/assets/bugs/bug02.svg.js b/docs/components/icon/assets/bugs/bug02.svg.js similarity index 100% rename from docs/components/icons/icon/assets/bugs/bug02.svg.js rename to docs/components/icon/assets/bugs/bug02.svg.js diff --git a/docs/components/icons/icon/assets/bugs/bug05.svg.js b/docs/components/icon/assets/bugs/bug05.svg.js similarity index 100% rename from docs/components/icons/icon/assets/bugs/bug05.svg.js rename to docs/components/icon/assets/bugs/bug05.svg.js diff --git a/docs/components/icons/icon/assets/bugs/bug06.svg.js b/docs/components/icon/assets/bugs/bug06.svg.js similarity index 100% rename from docs/components/icons/icon/assets/bugs/bug06.svg.js rename to docs/components/icon/assets/bugs/bug06.svg.js diff --git a/docs/components/icons/icon/assets/bugs/bug08.svg.js b/docs/components/icon/assets/bugs/bug08.svg.js similarity index 100% rename from docs/components/icons/icon/assets/bugs/bug08.svg.js rename to docs/components/icon/assets/bugs/bug08.svg.js diff --git a/docs/components/icons/icon/assets/bugs/bug12.svg.js b/docs/components/icon/assets/bugs/bug12.svg.js similarity index 100% rename from docs/components/icons/icon/assets/bugs/bug12.svg.js rename to docs/components/icon/assets/bugs/bug12.svg.js diff --git a/docs/components/icons/icon/assets/bugs/bug19.svg.js b/docs/components/icon/assets/bugs/bug19.svg.js similarity index 100% rename from docs/components/icons/icon/assets/bugs/bug19.svg.js rename to docs/components/icon/assets/bugs/bug19.svg.js diff --git a/docs/components/icons/icon/assets/bugs/bug23.svg.js b/docs/components/icon/assets/bugs/bug23.svg.js similarity index 100% rename from docs/components/icons/icon/assets/bugs/bug23.svg.js rename to docs/components/icon/assets/bugs/bug23.svg.js diff --git a/docs/components/icons/icon/assets/bugs/bug24.svg.js b/docs/components/icon/assets/bugs/bug24.svg.js similarity index 100% rename from docs/components/icons/icon/assets/bugs/bug24.svg.js rename to docs/components/icon/assets/bugs/bug24.svg.js diff --git a/docs/components/icons/icon/assets/iconset-bugs.js b/docs/components/icon/assets/iconset-bugs.js similarity index 100% rename from docs/components/icons/icon/assets/iconset-bugs.js rename to docs/components/icon/assets/iconset-bugs.js diff --git a/docs/components/icons/icon/assets/iconset-misc.js b/docs/components/icon/assets/iconset-misc.js similarity index 100% rename from docs/components/icons/icon/assets/iconset-misc.js rename to docs/components/icon/assets/iconset-misc.js diff --git a/docs/components/icons/icon/assets/iconset-space.js b/docs/components/icon/assets/iconset-space.js similarity index 100% rename from docs/components/icons/icon/assets/iconset-space.js rename to docs/components/icon/assets/iconset-space.js diff --git a/docs/components/icons/icon/assets/misc/arrowLeft.svg.js b/docs/components/icon/assets/misc/arrowLeft.svg.js similarity index 100% rename from docs/components/icons/icon/assets/misc/arrowLeft.svg.js rename to docs/components/icon/assets/misc/arrowLeft.svg.js diff --git a/docs/components/icons/icon/assets/space/aliens-spaceship.svg.js b/docs/components/icon/assets/space/aliens-spaceship.svg.js similarity index 100% rename from docs/components/icons/icon/assets/space/aliens-spaceship.svg.js rename to docs/components/icon/assets/space/aliens-spaceship.svg.js diff --git a/docs/components/icons/icon/assets/space/meteor.svg.js b/docs/components/icon/assets/space/meteor.svg.js similarity index 100% rename from docs/components/icons/icon/assets/space/meteor.svg.js rename to docs/components/icon/assets/space/meteor.svg.js diff --git a/docs/components/icons/icon/assets/space/moon-flag.svg.js b/docs/components/icon/assets/space/moon-flag.svg.js similarity index 100% rename from docs/components/icons/icon/assets/space/moon-flag.svg.js rename to docs/components/icon/assets/space/moon-flag.svg.js diff --git a/docs/components/icons/icon/assets/space/moon.svg.js b/docs/components/icon/assets/space/moon.svg.js similarity index 100% rename from docs/components/icons/icon/assets/space/moon.svg.js rename to docs/components/icon/assets/space/moon.svg.js diff --git a/docs/components/icons/icon/assets/space/night.svg.js b/docs/components/icon/assets/space/night.svg.js similarity index 100% rename from docs/components/icons/icon/assets/space/night.svg.js rename to docs/components/icon/assets/space/night.svg.js diff --git a/docs/components/icons/icon/assets/space/orbit.svg.js b/docs/components/icon/assets/space/orbit.svg.js similarity index 100% rename from docs/components/icons/icon/assets/space/orbit.svg.js rename to docs/components/icon/assets/space/orbit.svg.js diff --git a/docs/components/icons/icon/assets/space/planet.svg.js b/docs/components/icon/assets/space/planet.svg.js similarity index 100% rename from docs/components/icons/icon/assets/space/planet.svg.js rename to docs/components/icon/assets/space/planet.svg.js diff --git a/docs/components/icons/icon/assets/space/robot.svg.js b/docs/components/icon/assets/space/robot.svg.js similarity index 100% rename from docs/components/icons/icon/assets/space/robot.svg.js rename to docs/components/icon/assets/space/robot.svg.js diff --git a/docs/components/icons/icon/assets/space/rocket.svg.js b/docs/components/icon/assets/space/rocket.svg.js similarity index 100% rename from docs/components/icons/icon/assets/space/rocket.svg.js rename to docs/components/icon/assets/space/rocket.svg.js diff --git a/docs/components/icons/icon/assets/space/satellite.svg.js b/docs/components/icon/assets/space/satellite.svg.js similarity index 100% rename from docs/components/icons/icon/assets/space/satellite.svg.js rename to docs/components/icon/assets/space/satellite.svg.js diff --git a/docs/components/icons/icon/assets/space/signal.svg.js b/docs/components/icon/assets/space/signal.svg.js similarity index 100% rename from docs/components/icons/icon/assets/space/signal.svg.js rename to docs/components/icon/assets/space/signal.svg.js diff --git a/docs/components/icons/icon/assets/space/space-helmet.svg.js b/docs/components/icon/assets/space/space-helmet.svg.js similarity index 100% rename from docs/components/icons/icon/assets/space/space-helmet.svg.js rename to docs/components/icon/assets/space/space-helmet.svg.js diff --git a/docs/components/icons/icon/assets/space/sun.svg.js b/docs/components/icon/assets/space/sun.svg.js similarity index 100% rename from docs/components/icons/icon/assets/space/sun.svg.js rename to docs/components/icon/assets/space/sun.svg.js diff --git a/docs/components/icons/icon/assets/space/telescope.svg.js b/docs/components/icon/assets/space/telescope.svg.js similarity index 100% rename from docs/components/icons/icon/assets/space/telescope.svg.js rename to docs/components/icon/assets/space/telescope.svg.js diff --git a/docs/components/icon/index.md b/docs/components/icon/index.md new file mode 100644 index 000000000..562a6b567 --- /dev/null +++ b/docs/components/icon/index.md @@ -0,0 +1,3 @@ +# Icon ||20 + +-> go to Overview diff --git a/docs/components/icons/icon/overview.md b/docs/components/icon/overview.md similarity index 96% rename from docs/components/icons/icon/overview.md rename to docs/components/icon/overview.md index d1920239a..a0c91e599 100644 --- a/docs/components/icons/icon/overview.md +++ b/docs/components/icon/overview.md @@ -1,4 +1,4 @@ -# Icons >> Icon >> Overview ||10 +# Icon >> Overview ||10 A web component for displaying icons. diff --git a/docs/components/icons/icon/features.md b/docs/components/icon/use-cases.md similarity index 94% rename from docs/components/icons/icon/features.md rename to docs/components/icon/use-cases.md index 694ed8aeb..984562570 100644 --- a/docs/components/icons/icon/features.md +++ b/docs/components/icon/use-cases.md @@ -1,4 +1,4 @@ -# Icons >> Icon >> Features ||20 +# Icon >> Use Cases ||20 ```js script import { html } from '@mdjs/mdjs-preview'; @@ -26,7 +26,7 @@ icons.addIconResolver('lion', (iconset, name) => { ## Icon sets Icons are displayed using icon sets. These are collections of icons, lazily loaded on demand for performance. -See the [system documentation](../../../docs/systems/icon/overview.md) to learn more about icon sets. +See the [system documentation](../../fundamentals/systems/icon/overview.md) to learn more about icon sets. ```js preview-story export const iconSets = () => html` diff --git a/docs/components/icons/index.md b/docs/components/icons/index.md deleted file mode 100644 index 71654445e..000000000 --- a/docs/components/icons/index.md +++ /dev/null @@ -1 +0,0 @@ -# Icons ||30 diff --git a/docs/components/index.md b/docs/components/index.md index e89d06660..cb31eba9a 100644 --- a/docs/components/index.md +++ b/docs/components/index.md @@ -1,16 +1,7 @@ -# Components ||20 +# Components ||40 -We offer many web components for your application needs. For each, you will find an overview page to highlight its capabilities and how to start using it. Additionally, there will be a features page that showcases multiple use cases in action. Some even have a dedicated examples page so you can see a possible styled implementation. +Components are one of the key building blocks of the design system. Their systematic reuse helps to create visual and functional consistency across products. -For organizational purposes, we split them into the following groups. +## Got feedback? -1. [Content](./content/accordion/overview.md)