From 65ffbc358d96d68f0eb9a5e43a507eff07f2b8ff Mon Sep 17 00:00:00 2001 From: Leifer Mendez Date: Thu, 22 Dec 2022 13:49:37 +0100 Subject: [PATCH] docs: :memo: update docs --- packages/docs/src/assets/styles/global.css | 33 +++++++++++++++++++ .../docs/src/components/widgets/ExtraBar.tsx | 27 +++++++++++++++ .../docs/src/components/widgets/Footer.tsx | 23 +++---------- .../docs/src/components/widgets/Header.tsx | 10 ++++-- .../docs/src/components/widgets/NavBar.tsx | 22 +++++++++---- packages/docs/src/routes/docs/index.mdx | 22 +++++++++---- .../docs/src/routes/docs/install/index.mdx | 10 ++++++ packages/docs/src/routes/docs/layout!.tsx | 18 +++++++--- .../docs/src/routes/docs/migration/index.mdx | 10 ++++++ .../docs/src/routes/docs/settings/index.mdx | 10 ++++++ 10 files changed, 145 insertions(+), 40 deletions(-) create mode 100644 packages/docs/src/components/widgets/ExtraBar.tsx create mode 100644 packages/docs/src/routes/docs/install/index.mdx create mode 100644 packages/docs/src/routes/docs/migration/index.mdx create mode 100644 packages/docs/src/routes/docs/settings/index.mdx diff --git a/packages/docs/src/assets/styles/global.css b/packages/docs/src/assets/styles/global.css index da1e370..8d4a039 100644 --- a/packages/docs/src/assets/styles/global.css +++ b/packages/docs/src/assets/styles/global.css @@ -23,6 +23,34 @@ @apply font-semibold bg-primary-600 text-white border-primary-600 hover:bg-primary-800 hover:border-primary-800 hover:text-white dark:text-white dark:bg-primary-700 dark:border-primary-700 dark:hover:border-primary-900 dark:hover:bg-primary-900; } + .slot h1 { + @apply mb-2 font-semibold text-2xl; + } + + .slot h2 { + @apply mb-2 font-semibold text-lg; + } + + .slot h3 { + @apply mb-2 font-semibold text-base; + } + + .slot code { + @apply bg-slate-100 dark:bg-slate-800 p-1 px-2 rounded w-full; + } + + .slot pre { + @apply w-full flex my-2; + } + + .slot a { + @apply text-sky-900 font-medium dark:text-sky-400; + } + + .slot hr { + @apply my-5; + } + [data-aw-toggle-menu] path { @apply transition; } @@ -30,6 +58,11 @@ @apply -rotate-45 translate-y-[15px] translate-x-[-3px]; } + p, + li { + @apply mt-2 text-sm text-slate-700 dark:text-slate-400; + } + [data-aw-toggle-menu].expanded g > path:last-child { @apply rotate-45 translate-y-[-8px] translate-x-[14px]; } diff --git a/packages/docs/src/components/widgets/ExtraBar.tsx b/packages/docs/src/components/widgets/ExtraBar.tsx new file mode 100644 index 0000000..030951f --- /dev/null +++ b/packages/docs/src/components/widgets/ExtraBar.tsx @@ -0,0 +1,27 @@ +import { component$ } from '@builder.io/qwik' +import { useLocation } from '@builder.io/qwik-city' + +/** + * options = [] array con la lista de opciones de la documentacion + */ +export default component$( + ({ + options = [], + }: { + options: { link: string; name: string; class?: string }[] + }) => { + const { pathname } = useLocation() + const editUrl = ` https://github.com/codigoencasa/bot-whatsapp/edit/dev/packages/docs/src/routes${pathname}index.mdx` + return ( +
+ +
+ ) + } +) diff --git a/packages/docs/src/components/widgets/Footer.tsx b/packages/docs/src/components/widgets/Footer.tsx index 62f9fa8..d7c3b8b 100644 --- a/packages/docs/src/components/widgets/Footer.tsx +++ b/packages/docs/src/components/widgets/Footer.tsx @@ -13,11 +13,6 @@ export default component$(() => { items: [ { title: 'Features', href: '#' }, { title: 'Security', href: '#' }, - { title: 'Team', href: '#' }, - { title: 'Enterprise', href: '#' }, - { title: 'Customer stories', href: '#' }, - { title: 'Pricing', href: '#' }, - { title: 'Resources', href: '#' }, ], }, { @@ -25,9 +20,6 @@ export default component$(() => { items: [ { title: 'Developer API', href: '#' }, { title: 'Partners', href: '#' }, - { title: 'Atom', href: '#' }, - { title: 'Electron', href: '#' }, - { title: 'Qwind Desktop', href: '#' }, ], }, { @@ -35,9 +27,6 @@ export default component$(() => { items: [ { title: 'Docs', href: '#' }, { title: 'Community Forum', href: '#' }, - { title: 'Professional Services', href: '#' }, - { title: 'Skills', href: '#' }, - { title: 'Status', href: '#' }, ], }, { @@ -45,11 +34,6 @@ export default component$(() => { items: [ { title: 'About', href: '#' }, { title: 'Blog', href: '#' }, - { title: 'Careers', href: '#' }, - { title: 'Press', href: '#' }, - { title: 'Inclusion', href: '#' }, - { title: 'Social Impact', href: '#' }, - { title: 'Shop', href: '#' }, ], }, ] @@ -79,9 +63,10 @@ export default component$(() => {
- Lorem ipsum dolor sit amet, consectetur adipiscing - elit. Morbi sagittis, quam nec venenatis lobortis, - mi risus tempus nulla + Nos sentimos muy afortunados de poder contribuir a + este proyecto y esperamos poder seguir trabajando + juntos para ayudar a los pequeños comercios a + impulsar sus ventas y fortalecer la economía local.
{links.map(({ title, items }) => ( diff --git a/packages/docs/src/components/widgets/Header.tsx b/packages/docs/src/components/widgets/Header.tsx index ef13e83..73c2714 100644 --- a/packages/docs/src/components/widgets/Header.tsx +++ b/packages/docs/src/components/widgets/Header.tsx @@ -81,16 +81,20 @@ export default component$(() => {
  • Blog
  • Github @@ -100,7 +104,7 @@ export default component$(() => {