diff --git a/.starters/default/content/3.components/3.app/search.md b/.starters/default/content/3.components/3.app/_search.md similarity index 100% rename from .starters/default/content/3.components/3.app/search.md rename to .starters/default/content/3.components/3.app/_search.md diff --git a/.starters/default/content/3.components/3.app/text-direction.md b/.starters/default/content/3.components/3.app/_text-direction.md similarity index 85% rename from .starters/default/content/3.components/3.app/text-direction.md rename to .starters/default/content/3.components/3.app/_text-direction.md index ef6952236..1f50dad2d 100644 --- a/.starters/default/content/3.components/3.app/text-direction.md +++ b/.starters/default/content/3.components/3.app/_text-direction.md @@ -5,5 +5,5 @@ Docus and Elements is build using logical properties and values, which means it' ::callout{icon} This component still WIP 🚧 -It's not clear if it's useful to have for English based documentation, it needs an option of setting default text direction with `app.config`, and also saving user choice feature. +It's not clear if it's useful to have for English-based documentation, it needs an option of setting default text direction with `app.config`, and also saving user choice feature. :: \ No newline at end of file diff --git a/.starters/default/content/3.components/4.docs/1.navigation.md b/.starters/default/content/3.components/4.docs/1.navigation.md new file mode 100644 index 000000000..6aa1a83ef --- /dev/null +++ b/.starters/default/content/3.components/4.docs/1.navigation.md @@ -0,0 +1,9 @@ +# Navigation + +Component for rendering `Docs` tree navigation, from `content` folder structure. Could be nested and collapsible, depending on configuration. + +## Design Tokens + +::callout{icon=🚧} +Tokenization is WIP +:: \ No newline at end of file diff --git a/.starters/default/content/3.components/4.docs/2.toc.md b/.starters/default/content/3.components/4.docs/2.toc.md new file mode 100644 index 000000000..ce5a5748c --- /dev/null +++ b/.starters/default/content/3.components/4.docs/2.toc.md @@ -0,0 +1,9 @@ +# Table of Contents + +A component for `Docs` article Table of Contents. + +## Design Tokens + +::callout{icon=🚧} +Tokenization is WIP +:: \ No newline at end of file diff --git a/.starters/default/content/3.components/4.docs/3.toc-links.md b/.starters/default/content/3.components/4.docs/3.toc-links.md new file mode 100644 index 000000000..63c62a1d7 --- /dev/null +++ b/.starters/default/content/3.components/4.docs/3.toc-links.md @@ -0,0 +1,9 @@ +# Table of Contents Links + +Renders `DocsToc` links tree. + +## Design Tokens + +::callout{icon=🚧} +Tokenization is WIP +:: \ No newline at end of file diff --git a/.starters/default/content/3.components/4.docs/aside.md b/.starters/default/content/3.components/4.docs/aside.md deleted file mode 100644 index 599b8ee02..000000000 --- a/.starters/default/content/3.components/4.docs/aside.md +++ /dev/null @@ -1 +0,0 @@ -# Aside \ No newline at end of file diff --git a/.starters/default/content/3.components/4.docs/content-bottom.md b/.starters/default/content/3.components/4.docs/content-bottom.md index e69de29bb..40a12d79a 100644 --- a/.starters/default/content/3.components/4.docs/content-bottom.md +++ b/.starters/default/content/3.components/4.docs/content-bottom.md @@ -0,0 +1,3 @@ +# Content Bottom + +Component for rendering content bottom section. \ No newline at end of file diff --git a/.starters/default/content/3.components/4.docs/edit-on.md b/.starters/default/content/3.components/4.docs/edit-on.md index e69de29bb..2a840b54a 100644 --- a/.starters/default/content/3.components/4.docs/edit-on.md +++ b/.starters/default/content/3.components/4.docs/edit-on.md @@ -0,0 +1,3 @@ +# Edit On + +Component for rendering `EditOn` GitHub link. \ No newline at end of file diff --git a/.starters/default/content/3.components/4.docs/navigation.md b/.starters/default/content/3.components/4.docs/navigation.md deleted file mode 100644 index e69de29bb..000000000 diff --git a/.starters/default/content/3.components/4.docs/prev-next.md b/.starters/default/content/3.components/4.docs/prev-next.md index e69de29bb..6f97ed0dc 100644 --- a/.starters/default/content/3.components/4.docs/prev-next.md +++ b/.starters/default/content/3.components/4.docs/prev-next.md @@ -0,0 +1,64 @@ +# Prev Next + +Component for rendering `PrevNext` navigation links. + +## Design Tokens + +```ts [tokens.config.ts] +import { defineTheme } from 'pinceau' + +export default defineTheme({ + docus: { + docs: { + prevNext: { + gap: '{space.8}', + padding: '{space.6}', + backgroundColor: { + initial: '{color.gray.50}', + dark: '{color.gray.900}' + }, + borderRadius: '{radii.2xs}', + borderWidth: '1px', + borderStyle: 'solid', + borderColor: { + initial: '{color.gray.200}', + dark: '{color.gray.800}' + }, + boxShadow: { + static: { + initial: 'none', + dark: 'inset 0.25px 0.5px 0px hsla(0,0%,100%,.1), inset -0.25px 0px 0px hsla(0,0%,100%,.1), {shadow.xs}' + }, + hover: { + initial: 'none', + dark: 'inset 0.25px 0.5px 0px hsla(0,0%,100%,.1), inset -0.25px 0px 0px hsla(0,0%,100%,.1), {shadow.lg}' + } + }, + title: { + color: { + hover: '{color.primary.500}' + }, + fontWeight: '{fontWeight.medium}', + marginBottom: '{space.2}' + }, + directory: { + marginBottom: '{space.3}', + fontSize: '{text.xs.fontSize}', + lineHeight: '{text.xs.lineHeight}', + fontWeight: '{fontWeight.medium}', + color: '{color.gray.500}' + }, + icon: { + size: '{space.8}', + marginBottom: '{space.4}' + }, + description: { + fontSize: '{text.sm.fontSize}', + lineHeight: '{text.sm.lineHeight}', + color: '{color.gray.500}' + } + } + }, + } +}) +``` \ No newline at end of file diff --git a/.starters/default/content/3.components/4.docs/toc-links.md b/.starters/default/content/3.components/4.docs/toc-links.md deleted file mode 100644 index 623bc8f05..000000000 --- a/.starters/default/content/3.components/4.docs/toc-links.md +++ /dev/null @@ -1 +0,0 @@ -# Table of Contents Links \ No newline at end of file diff --git a/.starters/default/content/3.components/4.docs/toc.md b/.starters/default/content/3.components/4.docs/toc.md deleted file mode 100644 index c39c88a79..000000000 --- a/.starters/default/content/3.components/4.docs/toc.md +++ /dev/null @@ -1 +0,0 @@ -# Table of Contents \ No newline at end of file diff --git a/components/app/AppHeaderDialog.vue b/components/app/AppHeaderDialog.vue deleted file mode 100644 index 771cdc327..000000000 --- a/components/app/AppHeaderDialog.vue +++ /dev/null @@ -1,133 +0,0 @@ - - - - - diff --git a/components/docs/DocsAside.vue b/components/docs/DocsAside.vue deleted file mode 100644 index 2ae68a92f..000000000 --- a/components/docs/DocsAside.vue +++ /dev/null @@ -1,36 +0,0 @@ - - - - - diff --git a/components/docs/DocsContentBottom.vue b/components/docs/DocsContentBottom.vue index dda6d9087..9e6f88e38 100644 --- a/components/docs/DocsContentBottom.vue +++ b/components/docs/DocsContentBottom.vue @@ -13,7 +13,10 @@ const { config } = useDocus() class="edit-link" > - + Edit this page on GitHub diff --git a/components/layout/DocsLayout.vue b/components/layout/DocsLayout.vue index 3313dbd06..3272b8731 100644 --- a/components/layout/DocsLayout.vue +++ b/components/layout/DocsLayout.vue @@ -63,15 +63,28 @@ onBeforeUnmount(() => { }" > -