From ff48d97dec2a829ed52f6be95830ad4280a8dd4c Mon Sep 17 00:00:00 2001 From: zce Date: Mon, 26 Feb 2024 10:11:34 +0800 Subject: [PATCH 1/7] feat: contentlayer -> velite --- .velite/authors.json | 10 + .velite/docs.json | 34 + .velite/guide.json | 20 + .velite/guides.json | 22 + .velite/index.d.ts | 20 + .velite/index.js | 7 + .velite/pages.json | 16 + .velite/posts.json | 54 + app/(docs)/docs/[[...slug]]/page.tsx | 4 +- app/(docs)/guides/[...slug]/page.tsx | 4 +- app/(docs)/guides/page.tsx | 2 +- app/(marketing)/[...slug]/page.tsx | 4 +- app/(marketing)/blog/[...slug]/page.tsx | 4 +- app/(marketing)/blog/page.tsx | 2 +- components/mdx-components.tsx | 18 +- components/pager.tsx | 2 +- next.config.mjs | 23 +- package.json | 21 +- pnpm-lock.yaml | 2892 +++++++++-------------- prisma/schema.prisma | 2 +- tsconfig.json | 4 +- velite.config.ts | 168 ++ 22 files changed, 1474 insertions(+), 1859 deletions(-) create mode 100644 .velite/authors.json create mode 100644 .velite/docs.json create mode 100644 .velite/guide.json create mode 100644 .velite/guides.json create mode 100644 .velite/index.d.ts create mode 100644 .velite/index.js create mode 100644 .velite/pages.json create mode 100644 .velite/posts.json create mode 100644 velite.config.ts diff --git a/.velite/authors.json b/.velite/authors.json new file mode 100644 index 000000000..d9376196b --- /dev/null +++ b/.velite/authors.json @@ -0,0 +1,10 @@ +[ + { + "title": "shadcn", + "avatar": "/images/avatars/shadcn.png", + "twitter": "shadcn", + "body": "const{Fragment:n,jsx:t}=arguments[0];function _createMdxContent(e){return t(n,{})}return{default:function(n={}){const{wrapper:e}=n.components||{};return e?t(e,{...n,children:t(_createMdxContent,{...n})}):_createMdxContent()}};", + "slug": "/D:\\Coding\\forks\\taxonomy\\content\\authors\\shadcn", + "slugAsParams": "" + } +] \ No newline at end of file diff --git a/.velite/docs.json b/.velite/docs.json new file mode 100644 index 000000000..276ea44c6 --- /dev/null +++ b/.velite/docs.json @@ -0,0 +1,34 @@ +[ + { + "title": "Not Implemented", + "description": "This page is in progress.", + "published": true, + "body": "const{jsx:t,jsxs:e}=arguments[0];function _createMdxContent(n){const o={a:\"a\",p:\"p\",...n.components},{Callout:r}=o;return r||function(t,e){throw new Error(\"Expected \"+(e?\"component\":\"object\")+\" `\"+t+\"` to be defined: you likely forgot to import, pass, or provide it.\")}(\"Callout\",!0),t(r,{children:e(o.p,{children:[\"This site is a work in progress. If you see dummy text on a page, it means I'm still working on it. You can follow updates on Twitter \",t(o.a,{href:\"https://twitter.com/shadcn\",children:\"@shadcn\"}),\".\"]})})}return{default:function(e={}){const{wrapper:n}=e.components||{};return n?t(n,{...e,children:t(_createMdxContent,{...e})}):_createMdxContent(e)}};", + "slug": "/D:\\Coding\\forks\\taxonomy\\content\\docs\\in-progress", + "slugAsParams": "" + }, + { + "title": "Documentation", + "description": "Welcome to the Taxonomy documentation.", + "published": true, + "body": "const{Fragment:e,jsx:n,jsxs:i}=arguments[0];function _createMdxContent(a){const t={a:\"a\",h2:\"h2\",h3:\"h3\",p:\"p\",span:\"span\",...a.components},{Callout:o,Card:r}=t;return o||_missingMdxReference(\"Callout\",!0),r||_missingMdxReference(\"Card\",!0),i(e,{children:[n(t.p,{children:\"This is the documentation for the Taxonomy site.\"}),\"\\n\",i(t.p,{children:[\"This is an example of a doc site built using \",n(t.a,{href:\"/docs/documentation/contentlayer\",children:\"ContentLayer\"}),\" and MDX.\"]}),\"\\n\",n(o,{children:i(t.p,{children:[\"This site is a work in progress. If you see dummy text on a page, it means I'm still working on it. You can follow updates on Twitter \",n(t.a,{href:\"https://twitter.com/shadcn\",children:\"@shadcn\"}),\".\"]})}),\"\\n\",i(t.h2,{id:\"features\",children:[n(t.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#features\",children:n(t.span,{className:\"icon icon-link\"})}),\"Features\"]}),\"\\n\",n(t.p,{children:\"Select a feature below to learn more about it.\"}),\"\\n\",i(\"div\",{className:\"grid sm:grid-cols-2 gap-4 mt-6\",children:[i(r,{href:\"/docs/documentation\",children:[i(t.h3,{id:\"documentation\",children:[n(t.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#documentation\",children:n(t.span,{className:\"icon icon-link\"})}),\"Documentation\"]}),n(t.p,{children:\"This documentation site built using Contentlayer.\"})]}),i(r,{href:\"/docs/marketing\",disabled:!0,children:[i(t.h3,{id:\"marketing\",children:[n(t.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#marketing\",children:n(t.span,{className:\"icon icon-link\"})}),\"Marketing\"]}),n(t.p,{children:\"The marketing site with landing pages.\"})]}),i(r,{href:\"/docs/app\",disabled:!0,children:[i(t.h3,{id:\"app\",children:[n(t.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#app\",children:n(t.span,{className:\"icon icon-link\"})}),\"App\"]}),n(t.p,{children:\"The dashboard with auth and subscriptions.\"})]}),i(r,{href:\"/docs/blog\",disabled:!0,children:[i(t.h3,{id:\"blog\",children:[n(t.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#blog\",children:n(t.span,{className:\"icon icon-link\"})}),\"Blog\"]}),n(t.p,{children:\"The blog built using Contentlayer and MDX.\"})]})]})]})}return{default:function(e={}){const{wrapper:i}=e.components||{};return i?n(i,{...e,children:n(_createMdxContent,{...e})}):_createMdxContent(e)}};function _missingMdxReference(e,n){throw new Error(\"Expected \"+(n?\"component\":\"object\")+\" `\"+e+\"` to be defined: you likely forgot to import, pass, or provide it.\")}", + "slug": "/D:\\Coding\\forks\\taxonomy\\content\\docs\\index", + "slugAsParams": "" + }, + { + "title": "Documentation", + "description": "Build your documentation site using Contentlayer and MDX.", + "published": true, + "body": "const{Fragment:n,jsx:e,jsxs:i}=arguments[0];function _createMdxContent(o){const c={a:\"a\",code:\"code\",em:\"em\",h2:\"h2\",h3:\"h3\",li:\"li\",ol:\"ol\",p:\"p\",span:\"span\",...o.components},{Card:t}=c;return t||function(n,e){throw new Error(\"Expected \"+(e?\"component\":\"object\")+\" `\"+n+\"` to be defined: you likely forgot to import, pass, or provide it.\")}(\"Card\",!0),i(n,{children:[i(c.p,{children:[\"Taxonomy includes a documentation site built using \",e(c.a,{href:\"https://contentlayer.dev\",children:\"Contentlayer\"}),\" and \",e(c.a,{href:\"http://mdxjs.com\",children:\"MDX\"}),\".\"]}),\"\\n\",i(c.h2,{id:\"features\",children:[e(c.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#features\",children:e(c.span,{className:\"icon icon-link\"})}),\"Features\"]}),\"\\n\",e(c.p,{children:\"It comes with the following features out of the box:\"}),\"\\n\",i(c.ol,{children:[\"\\n\",e(c.li,{children:\"Write content using MDX.\"}),\"\\n\",e(c.li,{children:\"Transform and validate content using Contentlayer.\"}),\"\\n\",i(c.li,{children:[\"MDX components such as \",e(c.code,{children:\"\"}),\" and \",e(c.code,{children:\"\"}),\".\"]}),\"\\n\",e(c.li,{children:\"Support for table of contents.\"}),\"\\n\",e(c.li,{children:\"Custom navigation with prev and next pager.\"}),\"\\n\",i(c.li,{children:[\"Beautiful code blocks using \",e(c.code,{children:\"rehype-pretty-code\"}),\".\"]}),\"\\n\",i(c.li,{children:[\"Syntax highlighting using \",e(c.code,{children:\"shiki\"}),\".\"]}),\"\\n\",i(c.li,{children:[\"Built-in search (\",e(c.em,{children:\"in progress\"}),\").\"]}),\"\\n\",i(c.li,{children:[\"Dark mode (\",e(c.em,{children:\"in progress\"}),\").\"]}),\"\\n\"]}),\"\\n\",i(c.h2,{id:\"how-is-it-built\",children:[e(c.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#how-is-it-built\",children:e(c.span,{className:\"icon icon-link\"})}),\"How is it built\"]}),\"\\n\",e(c.p,{children:\"Click on a section below to learn how the documentation site built.\"}),\"\\n\",i(\"div\",{className:\"grid gap-4 mt-6\",children:[i(t,{href:\"/docs/documentation\",children:[i(c.h3,{id:\"contentlayer\",children:[e(c.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#contentlayer\",children:e(c.span,{className:\"icon icon-link\"})}),\"Contentlayer\"]}),e(c.p,{children:\"Learn how to use MDX with Contentlayer.\"})]}),i(t,{href:\"/docs/documentation/components\",children:[i(c.h3,{id:\"components\",children:[e(c.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#components\",children:e(c.span,{className:\"icon icon-link\"})}),\"Components\"]}),e(c.p,{children:\"Using React components in Mardown.\"})]}),i(t,{href:\"/docs/documentation/components\",children:[i(c.h3,{id:\"code-blocks\",children:[e(c.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#code-blocks\",children:e(c.span,{className:\"icon icon-link\"})}),\"Code Blocks\"]}),e(c.p,{children:\"Beautiful code blocks with syntax highlighting.\"})]}),i(t,{href:\"/docs/documentation/components\",children:[i(c.h3,{id:\"style-guide\",children:[e(c.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#style-guide\",children:e(c.span,{className:\"icon icon-link\"})}),\"Style Guide\"]}),e(c.p,{children:\"View a sample page with all the styles.\"})]})]})]})}return{default:function(n={}){const{wrapper:i}=n.components||{};return i?e(i,{...n,children:e(_createMdxContent,{...n})}):_createMdxContent(n)}};", + "slug": "/D:\\Coding\\forks\\taxonomy\\content\\docs\\documentation\\index", + "slugAsParams": "" + }, + { + "title": "Style Guide", + "description": "Testing the MDX style guide with Tailwind Typography", + "published": true, + "body": "const{Fragment:e,jsx:n,jsxs:t}=arguments[0];function _createMdxContent(i){const a={a:\"a\",blockquote:\"blockquote\",code:\"code\",em:\"em\",figure:\"figure\",h2:\"h2\",h3:\"h3\",h4:\"h4\",hr:\"hr\",li:\"li\",ol:\"ol\",p:\"p\",pre:\"pre\",span:\"span\",strong:\"strong\",table:\"table\",tbody:\"tbody\",td:\"td\",th:\"th\",thead:\"thead\",tr:\"tr\",ul:\"ul\",...i.components},{Callout:o,Image:l}=a;return o||_missingMdxReference(\"Callout\",!0),l||_missingMdxReference(\"Image\",!0),t(e,{children:[n(o,{children:t(a.ul,{children:[\"\\n\",t(a.li,{children:[\"The text below is from the \",n(a.a,{href:\"https://play.tailwindcss.com/uj1vGACRJA?layout=preview\",children:\"Tailwind CSS\"}),\" docs. I copied it here to test the markdown styles. \",n(a.strong,{children:\"Tailwind is awesome. You should use it.\"})]}),\"\\n\",t(a.li,{children:[\"The CSS is from MDX sites I've built through the years. I copied this from \",n(a.a,{href:\"https://github.com/shuding/nextra\",children:\"Nextra\"}),\" and tweaked it a bit to fit the styles of this site.\"]}),\"\\n\"]})}),\"\\n\",n(a.p,{children:\"Until now, trying to style an article, document, or blog post with Tailwind has been a tedious task that required a keen eye for typography and a lot of complex custom CSS.\"}),\"\\n\",t(a.p,{children:[\"By default, Tailwind removes all of the default browser styling from paragraphs, headings, lists and more. This ends up being really useful for building application UIs because you spend less time undoing user-agent styles, but when you \",n(a.em,{children:\"really are\"}),\" just trying to style some content that came from a rich-text editor in a CMS or a markdown file, it can be surprising and unintuitive.\"]}),\"\\n\",n(a.p,{children:\"We get lots of complaints about it actually, with people regularly asking us things like:\"}),\"\\n\",t(a.blockquote,{children:[\"\\n\",t(a.p,{children:[\"Why is Tailwind removing the default styles on my \",n(a.code,{children:\"h1\"}),\" elements? How do I disable this? What do you mean I lose all the other base styles too?\\nWe hear you, but we're not convinced that simply disabling our base styles is what you really want. You don't want to have to remove annoying margins every time you use a \",n(a.code,{children:\"p\"}),\" element in a piece of your dashboard UI. And I doubt you really want your blog posts to use the user-agent styles either — you want them to look \",n(a.em,{children:\"awesome\"}),\", not awful.\"]}),\"\\n\"]}),\"\\n\",t(a.p,{children:[\"The \",n(a.code,{children:\"@tailwindcss/typography\"}),\" plugin is our attempt to give you what you \",n(a.em,{children:\"actually\"}),\" want, without any of the downsides of doing something stupid like disabling our base styles.\"]}),\"\\n\",t(a.p,{children:[\"It adds a new \",n(a.code,{children:\"prose\"}),\" class that you can slap on any block of vanilla HTML content and turn it into a beautiful, well-formatted document:\"]}),\"\\n\",n(a.figure,{\"data-rehype-pretty-code-figure\":\"\",children:n(a.pre,{style:{backgroundColor:\"#24292e\",color:\"#e1e4e8\"},tabIndex:\"0\",\"data-language\":\"html\",\"data-theme\":\"github-dark\",children:t(a.code,{\"data-language\":\"html\",\"data-theme\":\"github-dark\",style:{display:\"grid\"},children:[t(a.span,{\"data-line\":\"\",children:[n(a.span,{style:{color:\"#E1E4E8\"},children:\"<\"}),n(a.span,{style:{color:\"#85E89D\"},children:\"article\"}),n(a.span,{style:{color:\"#B392F0\"},children:\" class\"}),n(a.span,{style:{color:\"#E1E4E8\"},children:\"=\"}),n(a.span,{style:{color:\"#9ECBFF\"},children:'\"prose\"'}),n(a.span,{style:{color:\"#E1E4E8\"},children:\">\"})]}),\"\\n\",t(a.span,{\"data-line\":\"\",children:[n(a.span,{style:{color:\"#E1E4E8\"},children:\" <\"}),n(a.span,{style:{color:\"#85E89D\"},children:\"h1\"}),n(a.span,{style:{color:\"#E1E4E8\"},children:\">Garlic bread with cheese: What the science tells us\"})]}),\"\\n\",t(a.span,{\"data-line\":\"\",children:[n(a.span,{style:{color:\"#E1E4E8\"},children:\" <\"}),n(a.span,{style:{color:\"#85E89D\"},children:\"p\"}),n(a.span,{style:{color:\"#E1E4E8\"},children:\">\"})]}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" For years parents have espoused the health benefits of eating garlic bread\"})}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" with cheese to their children, with the food earning such an iconic status\"})}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" in our culture that kids will often dress up as warm, cheesy loaf for\"})}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" Halloween.\"})}),\"\\n\",t(a.span,{\"data-line\":\"\",children:[n(a.span,{style:{color:\"#E1E4E8\"},children:\" \"})]}),\"\\n\",t(a.span,{\"data-line\":\"\",children:[n(a.span,{style:{color:\"#E1E4E8\"},children:\" <\"}),n(a.span,{style:{color:\"#85E89D\"},children:\"p\"}),n(a.span,{style:{color:\"#E1E4E8\"},children:\">\"})]}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" But a recent study shows that the celebrated appetizer may be linked to a\"})}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" series of rabies cases springing up around the country.\"})}),\"\\n\",t(a.span,{\"data-line\":\"\",children:[n(a.span,{style:{color:\"#E1E4E8\"},children:\" \"})]}),\"\\n\",t(a.span,{\"data-line\":\"\",children:[n(a.span,{style:{color:\"#E1E4E8\"},children:\"\"})]})]})})}),\"\\n\",t(a.p,{children:[\"For more information about how to use the plugin and the features it includes, \",n(a.a,{href:\"https://github.com/tailwindcss/typography/blob/master/README.md\",children:\"read the documentation\"}),\".\"]}),\"\\n\",n(a.hr,{}),\"\\n\",t(a.h2,{id:\"what-to-expect-from-here-on-out\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#what-to-expect-from-here-on-out\",children:n(a.span,{className:\"icon icon-link\"})}),\"What to expect from here on out\"]}),\"\\n\",t(a.p,{children:[\"What follows from here is just a bunch of absolute nonsense I've written to dogfood the plugin itself. It includes every sensible typographic element I could think of, like \",n(a.strong,{children:\"bold text\"}),\", unordered lists, ordered lists, code blocks, block quotes, \",n(a.em,{children:\"and even italics\"}),\".\"]}),\"\\n\",n(a.p,{children:\"It's important to cover all of these use cases for a few reasons:\"}),\"\\n\",t(a.ol,{children:[\"\\n\",n(a.li,{children:\"We want everything to look good out of the box.\"}),\"\\n\",n(a.li,{children:\"Really just the first reason, that's the whole point of the plugin.\"}),\"\\n\",n(a.li,{children:\"Here's a third pretend reason though a list with three items looks more realistic than a list with two items.\"}),\"\\n\"]}),\"\\n\",n(a.p,{children:\"Now we're going to try out another header style.\"}),\"\\n\",t(a.h3,{id:\"typography-should-be-easy\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#typography-should-be-easy\",children:n(a.span,{className:\"icon icon-link\"})}),\"Typography should be easy\"]}),\"\\n\",n(a.p,{children:\"So that's a header for you — with any luck if we've done our job correctly that will look pretty reasonable.\"}),\"\\n\",n(a.p,{children:\"Something a wise person once told me about typography is:\"}),\"\\n\",t(a.blockquote,{children:[\"\\n\",n(a.p,{children:\"Typography is pretty important if you don't want your stuff to look like trash. Make it good then it won't be bad.\"}),\"\\n\"]}),\"\\n\",n(a.p,{children:\"It's probably important that images look okay here by default as well:\"}),\"\\n\",n(l,{src:\"/images/blog/blog-post-4.jpg\",width:\"718\",height:\"404\",alt:\"Image\"}),\"\\n\",n(a.p,{children:\"Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old.\"}),\"\\n\",n(a.p,{children:\"Now I'm going to show you an example of an unordered list to make sure that looks good, too:\"}),\"\\n\",t(a.ul,{children:[\"\\n\",n(a.li,{children:\"So here is the first item in this list.\"}),\"\\n\",n(a.li,{children:\"In this example we're keeping the items short.\"}),\"\\n\",n(a.li,{children:\"Later, we'll use longer, more complex list items.\"}),\"\\n\"]}),\"\\n\",n(a.p,{children:\"And that's the end of this section.\"}),\"\\n\",t(a.h2,{id:\"what-if-we-stack-headings\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#what-if-we-stack-headings\",children:n(a.span,{className:\"icon icon-link\"})}),\"What if we stack headings?\"]}),\"\\n\",t(a.h3,{id:\"we-should-make-sure-that-looks-good-too\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#we-should-make-sure-that-looks-good-too\",children:n(a.span,{className:\"icon icon-link\"})}),\"We should make sure that looks good, too.\"]}),\"\\n\",n(a.p,{children:\"Sometimes you have headings directly underneath each other. In those cases you often have to undo the top margin on the second heading because it usually looks better for the headings to be closer together than a paragraph followed by a heading should be.\"}),\"\\n\",t(a.h3,{id:\"when-a-heading-comes-after-a-paragraph-\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#when-a-heading-comes-after-a-paragraph-\",children:n(a.span,{className:\"icon icon-link\"})}),\"When a heading comes after a paragraph …\"]}),\"\\n\",n(a.p,{children:\"When a heading comes after a paragraph, we need a bit more space, like I already mentioned above. Now let's see what a more complex list would look like.\"}),\"\\n\",t(a.ul,{children:[\"\\n\",t(a.li,{children:[\"\\n\",n(a.p,{children:n(a.strong,{children:\"I often do this thing where list items have headings.\"})}),\"\\n\",n(a.p,{children:\"For some reason I think this looks cool which is unfortunate because it's pretty annoying to get the styles right.\"}),\"\\n\",n(a.p,{children:\"I often have two or three paragraphs in these list items, too, so the hard part is getting the spacing between the paragraphs, list item heading, and separate list items to all make sense. Pretty tough honestly, you could make a strong argument that you just shouldn't write this way.\"}),\"\\n\"]}),\"\\n\",t(a.li,{children:[\"\\n\",n(a.p,{children:n(a.strong,{children:\"Since this is a list, I need at least two items.\"})}),\"\\n\",n(a.p,{children:\"I explained what I'm doing already in the previous list item, but a list wouldn't be a list if it only had one item, and we really want this to look realistic. That's why I've added this second list item so I actually have something to look at when writing the styles.\"}),\"\\n\"]}),\"\\n\",t(a.li,{children:[\"\\n\",n(a.p,{children:n(a.strong,{children:\"It's not a bad idea to add a third item either.\"})}),\"\\n\",n(a.p,{children:\"I think it probably would've been fine to just use two items but three is definitely not worse, and since I seem to be having no trouble making up arbitrary things to type, I might as well include it.\"}),\"\\n\"]}),\"\\n\"]}),\"\\n\",n(a.p,{children:\"After this sort of list I usually have a closing statement or paragraph, because it kinda looks weird jumping right to a heading.\"}),\"\\n\",t(a.h2,{id:\"code-should-look-okay-by-default\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#code-should-look-okay-by-default\",children:n(a.span,{className:\"icon icon-link\"})}),\"Code should look okay by default.\"]}),\"\\n\",t(a.p,{children:[\"I think most people are going to use \",n(a.a,{href:\"https://highlightjs.org/\",children:\"highlight.js\"}),\" or \",n(a.a,{href:\"https://prismjs.com/\",children:\"Prism\"}),\" or something if they want to style their code blocks but it wouldn't hurt to make them look \",n(a.em,{children:\"okay\"}),\" out of the box, even with no syntax highlighting.\"]}),\"\\n\",t(a.p,{children:[\"Here's what a default \",n(a.code,{children:\"tailwind.config.js\"}),\" file looks like at the time of writing:\"]}),\"\\n\",n(a.figure,{\"data-rehype-pretty-code-figure\":\"\",children:n(a.pre,{style:{backgroundColor:\"#24292e\",color:\"#e1e4e8\"},tabIndex:\"0\",\"data-language\":\"js\",\"data-theme\":\"github-dark\",children:t(a.code,{\"data-language\":\"js\",\"data-theme\":\"github-dark\",style:{display:\"grid\"},children:[t(a.span,{\"data-line\":\"\",children:[n(a.span,{style:{color:\"#79B8FF\"},children:\"module\"}),n(a.span,{style:{color:\"#E1E4E8\"},children:\".\"}),n(a.span,{style:{color:\"#79B8FF\"},children:\"exports\"}),n(a.span,{style:{color:\"#F97583\"},children:\" =\"}),n(a.span,{style:{color:\"#E1E4E8\"},children:\" {\"})]}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" purge: [],\"})}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" theme: {\"})}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" extend: {},\"})}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" },\"})}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" variants: {},\"})}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" plugins: [],\"})}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\"}\"})})]})})}),\"\\n\",n(a.p,{children:\"Hopefully that looks good enough to you.\"}),\"\\n\",t(a.h3,{id:\"what-about-nested-lists\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#what-about-nested-lists\",children:n(a.span,{className:\"icon icon-link\"})}),\"What about nested lists?\"]}),\"\\n\",n(a.p,{children:\"Nested lists basically always look bad which is why editors like Medium don't even let you do it, but I guess since some of you goofballs are going to do it we have to carry the burden of at least making it work.\"}),\"\\n\",t(a.ol,{children:[\"\\n\",t(a.li,{children:[n(a.strong,{children:\"Nested lists are rarely a good idea.\"}),\"\\n\",t(a.ul,{children:[\"\\n\",n(a.li,{children:'You might feel like you are being really \"organized\" or something but you are just creating a gross shape on the screen that is hard to read.'}),\"\\n\",n(a.li,{children:\"Nested navigation in UIs is a bad idea too, keep things as flat as possible.\"}),\"\\n\",n(a.li,{children:\"Nesting tons of folders in your source code is also not helpful.\"}),\"\\n\"]}),\"\\n\"]}),\"\\n\",t(a.li,{children:[n(a.strong,{children:\"Since we need to have more items, here's another one.\"}),\"\\n\",t(a.ul,{children:[\"\\n\",n(a.li,{children:\"I'm not sure if we'll bother styling more than two levels deep.\"}),\"\\n\",n(a.li,{children:\"Two is already too much, three is guaranteed to be a bad idea.\"}),\"\\n\",n(a.li,{children:\"If you nest four levels deep you belong in prison.\"}),\"\\n\"]}),\"\\n\"]}),\"\\n\",t(a.li,{children:[n(a.strong,{children:\"Two items isn't really a list, three is good though.\"}),\"\\n\",t(a.ul,{children:[\"\\n\",n(a.li,{children:\"Again please don't nest lists if you want people to actually read your content.\"}),\"\\n\",n(a.li,{children:\"Nobody wants to look at this.\"}),\"\\n\",n(a.li,{children:\"I'm upset that we even have to bother styling this.\"}),\"\\n\"]}),\"\\n\"]}),\"\\n\"]}),\"\\n\",t(a.p,{children:[\"The most annoying thing about lists in Markdown is that \",n(a.code,{children:\"
  • \"}),\" elements aren't given a child \",n(a.code,{children:\"

    \"}),\" tag unless there are multiple paragraphs in the list item. That means I have to worry about styling that annoying situation too.\"]}),\"\\n\",t(a.ul,{children:[\"\\n\",t(a.li,{children:[\"\\n\",n(a.p,{children:n(a.strong,{children:\"For example, here's another nested list.\"})}),\"\\n\",n(a.p,{children:\"But this time with a second paragraph.\"}),\"\\n\",t(a.ul,{children:[\"\\n\",t(a.li,{children:[\"These list items won't have \",n(a.code,{children:\"

    \"}),\" tags\"]}),\"\\n\",n(a.li,{children:\"Because they are only one line each\"}),\"\\n\"]}),\"\\n\"]}),\"\\n\",t(a.li,{children:[\"\\n\",n(a.p,{children:n(a.strong,{children:\"But in this second top-level list item, they will.\"})}),\"\\n\",n(a.p,{children:\"This is especially annoying because of the spacing on this paragraph.\"}),\"\\n\",t(a.ul,{children:[\"\\n\",t(a.li,{children:[\"\\n\",t(a.p,{children:[\"As you can see here, because I've added a second line, this list item now has a \",n(a.code,{children:\"

    \"}),\" tag.\"]}),\"\\n\",n(a.p,{children:\"This is the second line I'm talking about by the way.\"}),\"\\n\"]}),\"\\n\",t(a.li,{children:[\"\\n\",n(a.p,{children:\"Finally here's another list item so it's more like a list.\"}),\"\\n\"]}),\"\\n\"]}),\"\\n\"]}),\"\\n\",t(a.li,{children:[\"\\n\",n(a.p,{children:\"A closing list item, but with no nested list, because why not?\"}),\"\\n\"]}),\"\\n\"]}),\"\\n\",n(a.p,{children:\"And finally a sentence to close off this section.\"}),\"\\n\",t(a.h2,{id:\"there-are-other-elements-we-need-to-style\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#there-are-other-elements-we-need-to-style\",children:n(a.span,{className:\"icon icon-link\"})}),\"There are other elements we need to style\"]}),\"\\n\",t(a.p,{children:[\"I almost forgot to mention links, like \",n(a.a,{href:\"https://tailwindcss.com\",children:\"this link to the Tailwind CSS website\"}),\". We almost made them blue but that's so yesterday, so we went with dark gray, feels edgier.\"]}),\"\\n\",n(a.p,{children:\"We even included table styles, check it out:\"}),\"\\n\",t(a.table,{children:[n(a.thead,{children:t(a.tr,{children:[n(a.th,{children:\"Wrestler\"}),n(a.th,{children:\"Origin\"}),n(a.th,{children:\"Finisher\"})]})}),t(a.tbody,{children:[t(a.tr,{children:[n(a.td,{children:'Bret \"The Hitman\" Hart'}),n(a.td,{children:\"Calgary, AB\"}),n(a.td,{children:\"Sharpshooter\"})]}),t(a.tr,{children:[n(a.td,{children:\"Stone Cold Steve Austin\"}),n(a.td,{children:\"Austin, TX\"}),n(a.td,{children:\"Stone Cold Stunner\"})]}),t(a.tr,{children:[n(a.td,{children:\"Randy Savage\"}),n(a.td,{children:\"Sarasota, FL\"}),n(a.td,{children:\"Elbow Drop\"})]}),t(a.tr,{children:[n(a.td,{children:\"Vader\"}),n(a.td,{children:\"Boulder, CO\"}),n(a.td,{children:\"Vader Bomb\"})]}),t(a.tr,{children:[n(a.td,{children:\"Razor Ramon\"}),n(a.td,{children:\"Chuluota, FL\"}),n(a.td,{children:\"Razor's Edge\"})]})]})]}),\"\\n\",t(a.p,{children:[\"We also need to make sure inline code looks good, like if I wanted to talk about \",n(a.code,{children:\"\"}),\" elements or tell you the good news about \",n(a.code,{children:\"@tailwindcss/typography\"}),\".\"]}),\"\\n\",t(a.h3,{id:\"sometimes-i-even-use-code-in-headings\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#sometimes-i-even-use-code-in-headings\",children:n(a.span,{className:\"icon icon-link\"})}),\"Sometimes I even use \",n(a.code,{children:\"code\"}),\" in headings\"]}),\"\\n\",t(a.p,{children:[\"Even though it's probably a bad idea, and historically I've had a hard time making it look good. This \",n(a.em,{children:'\"wrap the code blocks in backticks\"'}),\" trick works pretty well though really.\"]}),\"\\n\",t(a.p,{children:[\"Another thing I've done in the past is put a \",n(a.code,{children:\"code\"}),\" tag inside of a link, like if I wanted to tell you about the \",n(a.a,{href:\"https://github.com/tailwindcss/docs\",children:n(a.code,{children:\"tailwindcss/docs\"})}),\" repository. I don't love that there is an underline below the backticks but it is absolutely not worth the madness it would require to avoid it.\"]}),\"\\n\",t(a.h4,{id:\"we-havent-used-an-h4-yet\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#we-havent-used-an-h4-yet\",children:n(a.span,{className:\"icon icon-link\"})}),\"We haven't used an \",n(a.code,{children:\"h4\"}),\" yet\"]}),\"\\n\",t(a.p,{children:[\"But now we have. Please don't use \",n(a.code,{children:\"h5\"}),\" or \",n(a.code,{children:\"h6\"}),\" in your content, Medium only supports two heading levels for a reason, you animals. I honestly considered using a \",n(a.code,{children:\"before\"}),\" pseudo-element to scream at you if you use an \",n(a.code,{children:\"h5\"}),\" or \",n(a.code,{children:\"h6\"}),\".\"]}),\"\\n\",t(a.p,{children:[\"We don't style them at all out of the box because \",n(a.code,{children:\"h4\"}),\" elements are already so small that they are the same size as the body copy. What are we supposed to do with an \",n(a.code,{children:\"h5\"}),\", make it \",n(a.em,{children:\"smaller\"}),\" than the body copy? No thanks.\"]}),\"\\n\",t(a.h3,{id:\"we-still-need-to-think-about-stacked-headings-though\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#we-still-need-to-think-about-stacked-headings-though\",children:n(a.span,{className:\"icon icon-link\"})}),\"We still need to think about stacked headings though.\"]}),\"\\n\",t(a.h4,{id:\"lets-make-sure-we-dont-screw-that-up-with-h4-elements-either\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#lets-make-sure-we-dont-screw-that-up-with-h4-elements-either\",children:n(a.span,{className:\"icon icon-link\"})}),\"Let's make sure we don't screw that up with \",n(a.code,{children:\"h4\"}),\" elements, either.\"]}),\"\\n\",n(a.p,{children:\"Phew, with any luck we have styled the headings above this text and they look pretty good.\"}),\"\\n\",n(a.p,{children:\"Let's add a closing paragraph here so things end with a decently sized block of text. I can't explain why I want things to end that way but I have to assume it's because I think things will look weird or unbalanced if there is a heading too close to the end of the document.\"}),\"\\n\",n(a.p,{children:\"What I've written here is probably long enough, but adding this final sentence can't hurt.\"}),\"\\n\",t(a.h2,{id:\"github-flavored-markdown\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#github-flavored-markdown\",children:n(a.span,{className:\"icon icon-link\"})}),\"GitHub Flavored Markdown\"]}),\"\\n\",t(a.p,{children:[\"I've also added support for GitHub Flavored Mardown using \",n(a.code,{children:\"remark-gfm\"}),\".\"]}),\"\\n\",t(a.p,{children:[\"With \",n(a.code,{children:\"remark-gfm\"}),\", we get a few extra features in our markdown. Example: autolink literals.\"]}),\"\\n\",t(a.p,{children:[\"A link like \",n(a.a,{href:\"http://www.example.com\",children:\"www.example.com\"}),\" or \",n(a.a,{href:\"https://example.com\",children:\"https://example.com\"}),\" would automatically be converted into an \",n(a.code,{children:\"a\"}),\" tag.\"]}),\"\\n\",t(a.p,{children:[\"This works for email links too: \",n(a.a,{href:\"mailto:contact@example.com\",children:\"contact@example.com\"}),\".\"]})]})}return{default:function(e={}){const{wrapper:t}=e.components||{};return t?n(t,{...e,children:n(_createMdxContent,{...e})}):_createMdxContent(e)}};function _missingMdxReference(e,n){throw new Error(\"Expected \"+(n?\"component\":\"object\")+\" `\"+e+\"` to be defined: you likely forgot to import, pass, or provide it.\")}", + "slug": "/D:\\Coding\\forks\\taxonomy\\content\\docs\\documentation\\style-guide", + "slugAsParams": "" + } +] \ No newline at end of file diff --git a/.velite/guide.json b/.velite/guide.json new file mode 100644 index 000000000..eee6d60c2 --- /dev/null +++ b/.velite/guide.json @@ -0,0 +1,20 @@ +[ + { + "title": "Build a blog using ContentLayer and MDX.", + "description": "Learn how to use ContentLayer to build a blog with Next.js", + "date": "2022-11-18T00:00:00.000Z", + "published": true, + "featured": false, + "slug": "/D:\\Coding\\forks\\taxonomy\\content\\guides\\build-blog-using-contentlayer-mdx", + "slugAsParams": "" + }, + { + "title": "Using NextAuth.js with Next.13", + "description": "How to use NextAuth.js in server components.", + "date": "2022-11-23T00:00:00.000Z", + "published": true, + "featured": false, + "slug": "/D:\\Coding\\forks\\taxonomy\\content\\guides\\using-next-auth-next-13", + "slugAsParams": "" + } +] \ No newline at end of file diff --git a/.velite/guides.json b/.velite/guides.json new file mode 100644 index 000000000..18718f68b --- /dev/null +++ b/.velite/guides.json @@ -0,0 +1,22 @@ +[ + { + "title": "Build a blog using ContentLayer and MDX.", + "description": "Learn how to use ContentLayer to build a blog with Next.js", + "date": "2022-11-18T00:00:00.000Z", + "published": true, + "featured": false, + "body": "const{Fragment:e,jsx:n,jsxs:t}=arguments[0];function _createMdxContent(i){const a={a:\"a\",blockquote:\"blockquote\",code:\"code\",em:\"em\",figure:\"figure\",h2:\"h2\",h3:\"h3\",h4:\"h4\",hr:\"hr\",li:\"li\",ol:\"ol\",p:\"p\",pre:\"pre\",span:\"span\",strong:\"strong\",table:\"table\",tbody:\"tbody\",td:\"td\",th:\"th\",thead:\"thead\",tr:\"tr\",ul:\"ul\",...i.components},{Callout:o,Image:l}=a;return o||_missingMdxReference(\"Callout\",!0),l||_missingMdxReference(\"Image\",!0),t(e,{children:[n(o,{children:t(a.p,{children:[\"This site is a work in progress. If you see dummy text on a page, it means I'm still working on it. You can follow updates on Twitter \",n(a.a,{href:\"https://twitter.com/shadcn\",children:\"@shadcn\"}),\".\"]})}),\"\\n\",n(o,{children:t(a.p,{children:[\"The text below is from the \",n(a.a,{href:\"https://play.tailwindcss.com/uj1vGACRJA?layout=preview\",children:\"Tailwind\\nCSS\"}),\" docs. I copied it\\nhere to test the markdown styles. \",n(a.strong,{children:\"Tailwind is awesome. You should use it.\"})]})}),\"\\n\",n(a.p,{children:\"Until now, trying to style an article, document, or blog post with Tailwind has been a tedious task that required a keen eye for typography and a lot of complex custom CSS.\"}),\"\\n\",t(a.p,{children:[\"By default, Tailwind removes all of the default browser styling from paragraphs, headings, lists and more. This ends up being really useful for building application UIs because you spend less time undoing user-agent styles, but when you \",n(a.em,{children:\"really are\"}),\" just trying to style some content that came from a rich-text editor in a CMS or a markdown file, it can be surprising and unintuitive.\"]}),\"\\n\",n(a.p,{children:\"We get lots of complaints about it actually, with people regularly asking us things like:\"}),\"\\n\",t(a.blockquote,{children:[\"\\n\",t(a.p,{children:[\"Why is Tailwind removing the default styles on my \",n(a.code,{children:\"h1\"}),\" elements? How do I disable this? What do you mean I lose all the other base styles too?\\nWe hear you, but we're not convinced that simply disabling our base styles is what you really want. You don't want to have to remove annoying margins every time you use a \",n(a.code,{children:\"p\"}),\" element in a piece of your dashboard UI. And I doubt you really want your blog posts to use the user-agent styles either — you want them to look \",n(a.em,{children:\"awesome\"}),\", not awful.\"]}),\"\\n\"]}),\"\\n\",t(a.p,{children:[\"The \",n(a.code,{children:\"@tailwindcss/typography\"}),\" plugin is our attempt to give you what you \",n(a.em,{children:\"actually\"}),\" want, without any of the downsides of doing something stupid like disabling our base styles.\"]}),\"\\n\",t(a.p,{children:[\"It adds a new \",n(a.code,{children:\"prose\"}),\" class that you can slap on any block of vanilla HTML content and turn it into a beautiful, well-formatted document:\"]}),\"\\n\",n(a.figure,{\"data-rehype-pretty-code-figure\":\"\",children:n(a.pre,{style:{backgroundColor:\"#24292e\",color:\"#e1e4e8\"},tabIndex:\"0\",\"data-language\":\"html\",\"data-theme\":\"github-dark\",children:t(a.code,{\"data-language\":\"html\",\"data-theme\":\"github-dark\",style:{display:\"grid\"},children:[t(a.span,{\"data-line\":\"\",children:[n(a.span,{style:{color:\"#E1E4E8\"},children:\"<\"}),n(a.span,{style:{color:\"#85E89D\"},children:\"article\"}),n(a.span,{style:{color:\"#B392F0\"},children:\" class\"}),n(a.span,{style:{color:\"#E1E4E8\"},children:\"=\"}),n(a.span,{style:{color:\"#9ECBFF\"},children:'\"prose\"'}),n(a.span,{style:{color:\"#E1E4E8\"},children:\">\"})]}),\"\\n\",t(a.span,{\"data-line\":\"\",children:[n(a.span,{style:{color:\"#E1E4E8\"},children:\" <\"}),n(a.span,{style:{color:\"#85E89D\"},children:\"h1\"}),n(a.span,{style:{color:\"#E1E4E8\"},children:\">Garlic bread with cheese: What the science tells us\"})]}),\"\\n\",t(a.span,{\"data-line\":\"\",children:[n(a.span,{style:{color:\"#E1E4E8\"},children:\" <\"}),n(a.span,{style:{color:\"#85E89D\"},children:\"p\"}),n(a.span,{style:{color:\"#E1E4E8\"},children:\">\"})]}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" For years parents have espoused the health benefits of eating garlic bread\"})}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" with cheese to their children, with the food earning such an iconic status\"})}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" in our culture that kids will often dress up as warm, cheesy loaf for\"})}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" Halloween.\"})}),\"\\n\",t(a.span,{\"data-line\":\"\",children:[n(a.span,{style:{color:\"#E1E4E8\"},children:\" \"})]}),\"\\n\",t(a.span,{\"data-line\":\"\",children:[n(a.span,{style:{color:\"#E1E4E8\"},children:\" <\"}),n(a.span,{style:{color:\"#85E89D\"},children:\"p\"}),n(a.span,{style:{color:\"#E1E4E8\"},children:\">\"})]}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" But a recent study shows that the celebrated appetizer may be linked to a\"})}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" series of rabies cases springing up around the country.\"})}),\"\\n\",t(a.span,{\"data-line\":\"\",children:[n(a.span,{style:{color:\"#E1E4E8\"},children:\" \"})]}),\"\\n\",t(a.span,{\"data-line\":\"\",children:[n(a.span,{style:{color:\"#E1E4E8\"},children:\"\"})]})]})})}),\"\\n\",t(a.p,{children:[\"For more information about how to use the plugin and the features it includes, \",n(a.a,{href:\"https://github.com/tailwindcss/typography/blob/master/README.md\",children:\"read the documentation\"}),\".\"]}),\"\\n\",n(a.hr,{}),\"\\n\",t(a.h2,{id:\"what-to-expect-from-here-on-out\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#what-to-expect-from-here-on-out\",children:n(a.span,{className:\"icon icon-link\"})}),\"What to expect from here on out\"]}),\"\\n\",t(a.p,{children:[\"What follows from here is just a bunch of absolute nonsense I've written to dogfood the plugin itself. It includes every sensible typographic element I could think of, like \",n(a.strong,{children:\"bold text\"}),\", unordered lists, ordered lists, code blocks, block quotes, \",n(a.em,{children:\"and even italics\"}),\".\"]}),\"\\n\",n(a.p,{children:\"It's important to cover all of these use cases for a few reasons:\"}),\"\\n\",t(a.ol,{children:[\"\\n\",n(a.li,{children:\"We want everything to look good out of the box.\"}),\"\\n\",n(a.li,{children:\"Really just the first reason, that's the whole point of the plugin.\"}),\"\\n\",n(a.li,{children:\"Here's a third pretend reason though a list with three items looks more realistic than a list with two items.\"}),\"\\n\"]}),\"\\n\",n(a.p,{children:\"Now we're going to try out another header style.\"}),\"\\n\",t(a.h3,{id:\"typography-should-be-easy\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#typography-should-be-easy\",children:n(a.span,{className:\"icon icon-link\"})}),\"Typography should be easy\"]}),\"\\n\",n(a.p,{children:\"So that's a header for you — with any luck if we've done our job correctly that will look pretty reasonable.\"}),\"\\n\",n(a.p,{children:\"Something a wise person once told me about typography is:\"}),\"\\n\",t(a.blockquote,{children:[\"\\n\",n(a.p,{children:\"Typography is pretty important if you don't want your stuff to look like trash. Make it good then it won't be bad.\"}),\"\\n\"]}),\"\\n\",n(a.p,{children:\"It's probably important that images look okay here by default as well:\"}),\"\\n\",n(l,{src:\"/images/blog/blog-post-4.jpg\",width:\"718\",height:\"404\",alt:\"Image\"}),\"\\n\",n(a.p,{children:\"Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old.\"}),\"\\n\",n(a.p,{children:\"Now I'm going to show you an example of an unordered list to make sure that looks good, too:\"}),\"\\n\",t(a.ul,{children:[\"\\n\",n(a.li,{children:\"So here is the first item in this list.\"}),\"\\n\",n(a.li,{children:\"In this example we're keeping the items short.\"}),\"\\n\",n(a.li,{children:\"Later, we'll use longer, more complex list items.\"}),\"\\n\"]}),\"\\n\",n(a.p,{children:\"And that's the end of this section.\"}),\"\\n\",t(a.h2,{id:\"what-if-we-stack-headings\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#what-if-we-stack-headings\",children:n(a.span,{className:\"icon icon-link\"})}),\"What if we stack headings?\"]}),\"\\n\",t(a.h3,{id:\"we-should-make-sure-that-looks-good-too\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#we-should-make-sure-that-looks-good-too\",children:n(a.span,{className:\"icon icon-link\"})}),\"We should make sure that looks good, too.\"]}),\"\\n\",n(a.p,{children:\"Sometimes you have headings directly underneath each other. In those cases you often have to undo the top margin on the second heading because it usually looks better for the headings to be closer together than a paragraph followed by a heading should be.\"}),\"\\n\",t(a.h3,{id:\"when-a-heading-comes-after-a-paragraph-\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#when-a-heading-comes-after-a-paragraph-\",children:n(a.span,{className:\"icon icon-link\"})}),\"When a heading comes after a paragraph …\"]}),\"\\n\",n(a.p,{children:\"When a heading comes after a paragraph, we need a bit more space, like I already mentioned above. Now let's see what a more complex list would look like.\"}),\"\\n\",t(a.ul,{children:[\"\\n\",t(a.li,{children:[\"\\n\",n(a.p,{children:n(a.strong,{children:\"I often do this thing where list items have headings.\"})}),\"\\n\",n(a.p,{children:\"For some reason I think this looks cool which is unfortunate because it's pretty annoying to get the styles right.\"}),\"\\n\",n(a.p,{children:\"I often have two or three paragraphs in these list items, too, so the hard part is getting the spacing between the paragraphs, list item heading, and separate list items to all make sense. Pretty tough honestly, you could make a strong argument that you just shouldn't write this way.\"}),\"\\n\"]}),\"\\n\",t(a.li,{children:[\"\\n\",n(a.p,{children:n(a.strong,{children:\"Since this is a list, I need at least two items.\"})}),\"\\n\",n(a.p,{children:\"I explained what I'm doing already in the previous list item, but a list wouldn't be a list if it only had one item, and we really want this to look realistic. That's why I've added this second list item so I actually have something to look at when writing the styles.\"}),\"\\n\"]}),\"\\n\",t(a.li,{children:[\"\\n\",n(a.p,{children:n(a.strong,{children:\"It's not a bad idea to add a third item either.\"})}),\"\\n\",n(a.p,{children:\"I think it probably would've been fine to just use two items but three is definitely not worse, and since I seem to be having no trouble making up arbitrary things to type, I might as well include it.\"}),\"\\n\"]}),\"\\n\"]}),\"\\n\",n(a.p,{children:\"After this sort of list I usually have a closing statement or paragraph, because it kinda looks weird jumping right to a heading.\"}),\"\\n\",t(a.h2,{id:\"code-should-look-okay-by-default\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#code-should-look-okay-by-default\",children:n(a.span,{className:\"icon icon-link\"})}),\"Code should look okay by default.\"]}),\"\\n\",t(a.p,{children:[\"I think most people are going to use \",n(a.a,{href:\"https://highlightjs.org/\",children:\"highlight.js\"}),\" or \",n(a.a,{href:\"https://prismjs.com/\",children:\"Prism\"}),\" or something if they want to style their code blocks but it wouldn't hurt to make them look \",n(a.em,{children:\"okay\"}),\" out of the box, even with no syntax highlighting.\"]}),\"\\n\",t(a.p,{children:[\"Here's what a default \",n(a.code,{children:\"tailwind.config.js\"}),\" file looks like at the time of writing:\"]}),\"\\n\",n(a.figure,{\"data-rehype-pretty-code-figure\":\"\",children:n(a.pre,{style:{backgroundColor:\"#24292e\",color:\"#e1e4e8\"},tabIndex:\"0\",\"data-language\":\"js\",\"data-theme\":\"github-dark\",children:t(a.code,{\"data-language\":\"js\",\"data-theme\":\"github-dark\",style:{display:\"grid\"},children:[t(a.span,{\"data-line\":\"\",children:[n(a.span,{style:{color:\"#79B8FF\"},children:\"module\"}),n(a.span,{style:{color:\"#E1E4E8\"},children:\".\"}),n(a.span,{style:{color:\"#79B8FF\"},children:\"exports\"}),n(a.span,{style:{color:\"#F97583\"},children:\" =\"}),n(a.span,{style:{color:\"#E1E4E8\"},children:\" {\"})]}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" purge: [],\"})}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" theme: {\"})}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" extend: {},\"})}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" },\"})}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" variants: {},\"})}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" plugins: [],\"})}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\"}\"})})]})})}),\"\\n\",n(a.p,{children:\"Hopefully that looks good enough to you.\"}),\"\\n\",t(a.h3,{id:\"what-about-nested-lists\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#what-about-nested-lists\",children:n(a.span,{className:\"icon icon-link\"})}),\"What about nested lists?\"]}),\"\\n\",n(a.p,{children:\"Nested lists basically always look bad which is why editors like Medium don't even let you do it, but I guess since some of you goofballs are going to do it we have to carry the burden of at least making it work.\"}),\"\\n\",t(a.ol,{children:[\"\\n\",t(a.li,{children:[n(a.strong,{children:\"Nested lists are rarely a good idea.\"}),\"\\n\",t(a.ul,{children:[\"\\n\",n(a.li,{children:'You might feel like you are being really \"organized\" or something but you are just creating a gross shape on the screen that is hard to read.'}),\"\\n\",n(a.li,{children:\"Nested navigation in UIs is a bad idea too, keep things as flat as possible.\"}),\"\\n\",n(a.li,{children:\"Nesting tons of folders in your source code is also not helpful.\"}),\"\\n\"]}),\"\\n\"]}),\"\\n\",t(a.li,{children:[n(a.strong,{children:\"Since we need to have more items, here's another one.\"}),\"\\n\",t(a.ul,{children:[\"\\n\",n(a.li,{children:\"I'm not sure if we'll bother styling more than two levels deep.\"}),\"\\n\",n(a.li,{children:\"Two is already too much, three is guaranteed to be a bad idea.\"}),\"\\n\",n(a.li,{children:\"If you nest four levels deep you belong in prison.\"}),\"\\n\"]}),\"\\n\"]}),\"\\n\",t(a.li,{children:[n(a.strong,{children:\"Two items isn't really a list, three is good though.\"}),\"\\n\",t(a.ul,{children:[\"\\n\",n(a.li,{children:\"Again please don't nest lists if you want people to actually read your content.\"}),\"\\n\",n(a.li,{children:\"Nobody wants to look at this.\"}),\"\\n\",n(a.li,{children:\"I'm upset that we even have to bother styling this.\"}),\"\\n\"]}),\"\\n\"]}),\"\\n\"]}),\"\\n\",t(a.p,{children:[\"The most annoying thing about lists in Markdown is that \",n(a.code,{children:\"

  • \"}),\" elements aren't given a child \",n(a.code,{children:\"

    \"}),\" tag unless there are multiple paragraphs in the list item. That means I have to worry about styling that annoying situation too.\"]}),\"\\n\",t(a.ul,{children:[\"\\n\",t(a.li,{children:[\"\\n\",n(a.p,{children:n(a.strong,{children:\"For example, here's another nested list.\"})}),\"\\n\",n(a.p,{children:\"But this time with a second paragraph.\"}),\"\\n\",t(a.ul,{children:[\"\\n\",t(a.li,{children:[\"These list items won't have \",n(a.code,{children:\"

    \"}),\" tags\"]}),\"\\n\",n(a.li,{children:\"Because they are only one line each\"}),\"\\n\"]}),\"\\n\"]}),\"\\n\",t(a.li,{children:[\"\\n\",n(a.p,{children:n(a.strong,{children:\"But in this second top-level list item, they will.\"})}),\"\\n\",n(a.p,{children:\"This is especially annoying because of the spacing on this paragraph.\"}),\"\\n\",t(a.ul,{children:[\"\\n\",t(a.li,{children:[\"\\n\",t(a.p,{children:[\"As you can see here, because I've added a second line, this list item now has a \",n(a.code,{children:\"

    \"}),\" tag.\"]}),\"\\n\",n(a.p,{children:\"This is the second line I'm talking about by the way.\"}),\"\\n\"]}),\"\\n\",t(a.li,{children:[\"\\n\",n(a.p,{children:\"Finally here's another list item so it's more like a list.\"}),\"\\n\"]}),\"\\n\"]}),\"\\n\"]}),\"\\n\",t(a.li,{children:[\"\\n\",n(a.p,{children:\"A closing list item, but with no nested list, because why not?\"}),\"\\n\"]}),\"\\n\"]}),\"\\n\",n(a.p,{children:\"And finally a sentence to close off this section.\"}),\"\\n\",t(a.h2,{id:\"there-are-other-elements-we-need-to-style\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#there-are-other-elements-we-need-to-style\",children:n(a.span,{className:\"icon icon-link\"})}),\"There are other elements we need to style\"]}),\"\\n\",t(a.p,{children:[\"I almost forgot to mention links, like \",n(a.a,{href:\"https://tailwindcss.com\",children:\"this link to the Tailwind CSS website\"}),\". We almost made them blue but that's so yesterday, so we went with dark gray, feels edgier.\"]}),\"\\n\",n(a.p,{children:\"We even included table styles, check it out:\"}),\"\\n\",t(a.table,{children:[n(a.thead,{children:t(a.tr,{children:[n(a.th,{children:\"Wrestler\"}),n(a.th,{children:\"Origin\"}),n(a.th,{children:\"Finisher\"})]})}),t(a.tbody,{children:[t(a.tr,{children:[n(a.td,{children:'Bret \"The Hitman\" Hart'}),n(a.td,{children:\"Calgary, AB\"}),n(a.td,{children:\"Sharpshooter\"})]}),t(a.tr,{children:[n(a.td,{children:\"Stone Cold Steve Austin\"}),n(a.td,{children:\"Austin, TX\"}),n(a.td,{children:\"Stone Cold Stunner\"})]}),t(a.tr,{children:[n(a.td,{children:\"Randy Savage\"}),n(a.td,{children:\"Sarasota, FL\"}),n(a.td,{children:\"Elbow Drop\"})]}),t(a.tr,{children:[n(a.td,{children:\"Vader\"}),n(a.td,{children:\"Boulder, CO\"}),n(a.td,{children:\"Vader Bomb\"})]}),t(a.tr,{children:[n(a.td,{children:\"Razor Ramon\"}),n(a.td,{children:\"Chuluota, FL\"}),n(a.td,{children:\"Razor's Edge\"})]})]})]}),\"\\n\",t(a.p,{children:[\"We also need to make sure inline code looks good, like if I wanted to talk about \",n(a.code,{children:\"\"}),\" elements or tell you the good news about \",n(a.code,{children:\"@tailwindcss/typography\"}),\".\"]}),\"\\n\",t(a.h3,{id:\"sometimes-i-even-use-code-in-headings\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#sometimes-i-even-use-code-in-headings\",children:n(a.span,{className:\"icon icon-link\"})}),\"Sometimes I even use \",n(a.code,{children:\"code\"}),\" in headings\"]}),\"\\n\",t(a.p,{children:[\"Even though it's probably a bad idea, and historically I've had a hard time making it look good. This \",n(a.em,{children:'\"wrap the code blocks in backticks\"'}),\" trick works pretty well though really.\"]}),\"\\n\",t(a.p,{children:[\"Another thing I've done in the past is put a \",n(a.code,{children:\"code\"}),\" tag inside of a link, like if I wanted to tell you about the \",n(a.a,{href:\"https://github.com/tailwindcss/docs\",children:n(a.code,{children:\"tailwindcss/docs\"})}),\" repository. I don't love that there is an underline below the backticks but it is absolutely not worth the madness it would require to avoid it.\"]}),\"\\n\",t(a.h4,{id:\"we-havent-used-an-h4-yet\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#we-havent-used-an-h4-yet\",children:n(a.span,{className:\"icon icon-link\"})}),\"We haven't used an \",n(a.code,{children:\"h4\"}),\" yet\"]}),\"\\n\",t(a.p,{children:[\"But now we have. Please don't use \",n(a.code,{children:\"h5\"}),\" or \",n(a.code,{children:\"h6\"}),\" in your content, Medium only supports two heading levels for a reason, you animals. I honestly considered using a \",n(a.code,{children:\"before\"}),\" pseudo-element to scream at you if you use an \",n(a.code,{children:\"h5\"}),\" or \",n(a.code,{children:\"h6\"}),\".\"]}),\"\\n\",t(a.p,{children:[\"We don't style them at all out of the box because \",n(a.code,{children:\"h4\"}),\" elements are already so small that they are the same size as the body copy. What are we supposed to do with an \",n(a.code,{children:\"h5\"}),\", make it \",n(a.em,{children:\"smaller\"}),\" than the body copy? No thanks.\"]}),\"\\n\",t(a.h3,{id:\"we-still-need-to-think-about-stacked-headings-though\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#we-still-need-to-think-about-stacked-headings-though\",children:n(a.span,{className:\"icon icon-link\"})}),\"We still need to think about stacked headings though.\"]}),\"\\n\",t(a.h4,{id:\"lets-make-sure-we-dont-screw-that-up-with-h4-elements-either\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#lets-make-sure-we-dont-screw-that-up-with-h4-elements-either\",children:n(a.span,{className:\"icon icon-link\"})}),\"Let's make sure we don't screw that up with \",n(a.code,{children:\"h4\"}),\" elements, either.\"]}),\"\\n\",n(a.p,{children:\"Phew, with any luck we have styled the headings above this text and they look pretty good.\"}),\"\\n\",n(a.p,{children:\"Let's add a closing paragraph here so things end with a decently sized block of text. I can't explain why I want things to end that way but I have to assume it's because I think things will look weird or unbalanced if there is a heading too close to the end of the document.\"}),\"\\n\",n(a.p,{children:\"What I've written here is probably long enough, but adding this final sentence can't hurt.\"}),\"\\n\",t(a.h2,{id:\"github-flavored-markdown\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#github-flavored-markdown\",children:n(a.span,{className:\"icon icon-link\"})}),\"GitHub Flavored Markdown\"]}),\"\\n\",t(a.p,{children:[\"I've also added support for GitHub Flavored Mardown using \",n(a.code,{children:\"remark-gfm\"}),\".\"]}),\"\\n\",t(a.p,{children:[\"With \",n(a.code,{children:\"remark-gfm\"}),\", we get a few extra features in our markdown. Example: autolink literals.\"]}),\"\\n\",t(a.p,{children:[\"A link like \",n(a.a,{href:\"http://www.example.com\",children:\"www.example.com\"}),\" or \",n(a.a,{href:\"https://example.com\",children:\"https://example.com\"}),\" would automatically be converted into an \",n(a.code,{children:\"a\"}),\" tag.\"]}),\"\\n\",t(a.p,{children:[\"This works for email links too: \",n(a.a,{href:\"mailto:contact@example.com\",children:\"contact@example.com\"}),\".\"]})]})}return{default:function(e={}){const{wrapper:t}=e.components||{};return t?n(t,{...e,children:n(_createMdxContent,{...e})}):_createMdxContent(e)}};function _missingMdxReference(e,n){throw new Error(\"Expected \"+(n?\"component\":\"object\")+\" `\"+e+\"` to be defined: you likely forgot to import, pass, or provide it.\")}", + "slug": "/D:\\Coding\\forks\\taxonomy\\content\\guides\\build-blog-using-contentlayer-mdx", + "slugAsParams": "" + }, + { + "title": "Using NextAuth.js with Next.13", + "description": "How to use NextAuth.js in server components.", + "date": "2022-11-23T00:00:00.000Z", + "published": true, + "featured": false, + "body": "const{Fragment:e,jsx:n,jsxs:t}=arguments[0];function _createMdxContent(i){const a={a:\"a\",blockquote:\"blockquote\",code:\"code\",em:\"em\",figure:\"figure\",h2:\"h2\",h3:\"h3\",h4:\"h4\",hr:\"hr\",li:\"li\",ol:\"ol\",p:\"p\",pre:\"pre\",span:\"span\",strong:\"strong\",table:\"table\",tbody:\"tbody\",td:\"td\",th:\"th\",thead:\"thead\",tr:\"tr\",ul:\"ul\",...i.components},{Callout:o,Image:l}=a;return o||_missingMdxReference(\"Callout\",!0),l||_missingMdxReference(\"Image\",!0),t(e,{children:[n(o,{children:t(a.p,{children:[\"This site is a work in progress. If you see dummy text on a page, it means I'm still working on it. You can follow updates on Twitter \",n(a.a,{href:\"https://twitter.com/shadcn\",children:\"@shadcn\"}),\".\"]})}),\"\\n\",n(o,{children:t(a.p,{children:[\"The text below is from the \",n(a.a,{href:\"https://play.tailwindcss.com/uj1vGACRJA?layout=preview\",children:\"Tailwind\\nCSS\"}),\" docs. I copied it\\nhere to test the markdown styles. \",n(a.strong,{children:\"Tailwind is awesome. You should use it.\"})]})}),\"\\n\",n(a.p,{children:\"Until now, trying to style an article, document, or blog post with Tailwind has been a tedious task that required a keen eye for typography and a lot of complex custom CSS.\"}),\"\\n\",t(a.p,{children:[\"By default, Tailwind removes all of the default browser styling from paragraphs, headings, lists and more. This ends up being really useful for building application UIs because you spend less time undoing user-agent styles, but when you \",n(a.em,{children:\"really are\"}),\" just trying to style some content that came from a rich-text editor in a CMS or a markdown file, it can be surprising and unintuitive.\"]}),\"\\n\",n(a.p,{children:\"We get lots of complaints about it actually, with people regularly asking us things like:\"}),\"\\n\",t(a.blockquote,{children:[\"\\n\",t(a.p,{children:[\"Why is Tailwind removing the default styles on my \",n(a.code,{children:\"h1\"}),\" elements? How do I disable this? What do you mean I lose all the other base styles too?\\nWe hear you, but we're not convinced that simply disabling our base styles is what you really want. You don't want to have to remove annoying margins every time you use a \",n(a.code,{children:\"p\"}),\" element in a piece of your dashboard UI. And I doubt you really want your blog posts to use the user-agent styles either — you want them to look \",n(a.em,{children:\"awesome\"}),\", not awful.\"]}),\"\\n\"]}),\"\\n\",t(a.p,{children:[\"The \",n(a.code,{children:\"@tailwindcss/typography\"}),\" plugin is our attempt to give you what you \",n(a.em,{children:\"actually\"}),\" want, without any of the downsides of doing something stupid like disabling our base styles.\"]}),\"\\n\",t(a.p,{children:[\"It adds a new \",n(a.code,{children:\"prose\"}),\" class that you can slap on any block of vanilla HTML content and turn it into a beautiful, well-formatted document:\"]}),\"\\n\",n(a.figure,{\"data-rehype-pretty-code-figure\":\"\",children:n(a.pre,{style:{backgroundColor:\"#24292e\",color:\"#e1e4e8\"},tabIndex:\"0\",\"data-language\":\"html\",\"data-theme\":\"github-dark\",children:t(a.code,{\"data-language\":\"html\",\"data-theme\":\"github-dark\",style:{display:\"grid\"},children:[t(a.span,{\"data-line\":\"\",children:[n(a.span,{style:{color:\"#E1E4E8\"},children:\"<\"}),n(a.span,{style:{color:\"#85E89D\"},children:\"article\"}),n(a.span,{style:{color:\"#B392F0\"},children:\" class\"}),n(a.span,{style:{color:\"#E1E4E8\"},children:\"=\"}),n(a.span,{style:{color:\"#9ECBFF\"},children:'\"prose\"'}),n(a.span,{style:{color:\"#E1E4E8\"},children:\">\"})]}),\"\\n\",t(a.span,{\"data-line\":\"\",children:[n(a.span,{style:{color:\"#E1E4E8\"},children:\" <\"}),n(a.span,{style:{color:\"#85E89D\"},children:\"h1\"}),n(a.span,{style:{color:\"#E1E4E8\"},children:\">Garlic bread with cheese: What the science tells us\"})]}),\"\\n\",t(a.span,{\"data-line\":\"\",children:[n(a.span,{style:{color:\"#E1E4E8\"},children:\" <\"}),n(a.span,{style:{color:\"#85E89D\"},children:\"p\"}),n(a.span,{style:{color:\"#E1E4E8\"},children:\">\"})]}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" For years parents have espoused the health benefits of eating garlic bread\"})}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" with cheese to their children, with the food earning such an iconic status\"})}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" in our culture that kids will often dress up as warm, cheesy loaf for\"})}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" Halloween.\"})}),\"\\n\",t(a.span,{\"data-line\":\"\",children:[n(a.span,{style:{color:\"#E1E4E8\"},children:\" \"})]}),\"\\n\",t(a.span,{\"data-line\":\"\",children:[n(a.span,{style:{color:\"#E1E4E8\"},children:\" <\"}),n(a.span,{style:{color:\"#85E89D\"},children:\"p\"}),n(a.span,{style:{color:\"#E1E4E8\"},children:\">\"})]}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" But a recent study shows that the celebrated appetizer may be linked to a\"})}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" series of rabies cases springing up around the country.\"})}),\"\\n\",t(a.span,{\"data-line\":\"\",children:[n(a.span,{style:{color:\"#E1E4E8\"},children:\" \"})]}),\"\\n\",t(a.span,{\"data-line\":\"\",children:[n(a.span,{style:{color:\"#E1E4E8\"},children:\"\"})]})]})})}),\"\\n\",t(a.p,{children:[\"For more information about how to use the plugin and the features it includes, \",n(a.a,{href:\"https://github.com/tailwindcss/typography/blob/master/README.md\",children:\"read the documentation\"}),\".\"]}),\"\\n\",n(a.hr,{}),\"\\n\",t(a.h2,{id:\"what-to-expect-from-here-on-out\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#what-to-expect-from-here-on-out\",children:n(a.span,{className:\"icon icon-link\"})}),\"What to expect from here on out\"]}),\"\\n\",t(a.p,{children:[\"What follows from here is just a bunch of absolute nonsense I've written to dogfood the plugin itself. It includes every sensible typographic element I could think of, like \",n(a.strong,{children:\"bold text\"}),\", unordered lists, ordered lists, code blocks, block quotes, \",n(a.em,{children:\"and even italics\"}),\".\"]}),\"\\n\",n(a.p,{children:\"It's important to cover all of these use cases for a few reasons:\"}),\"\\n\",t(a.ol,{children:[\"\\n\",n(a.li,{children:\"We want everything to look good out of the box.\"}),\"\\n\",n(a.li,{children:\"Really just the first reason, that's the whole point of the plugin.\"}),\"\\n\",n(a.li,{children:\"Here's a third pretend reason though a list with three items looks more realistic than a list with two items.\"}),\"\\n\"]}),\"\\n\",n(a.p,{children:\"Now we're going to try out another header style.\"}),\"\\n\",t(a.h3,{id:\"typography-should-be-easy\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#typography-should-be-easy\",children:n(a.span,{className:\"icon icon-link\"})}),\"Typography should be easy\"]}),\"\\n\",n(a.p,{children:\"So that's a header for you — with any luck if we've done our job correctly that will look pretty reasonable.\"}),\"\\n\",n(a.p,{children:\"Something a wise person once told me about typography is:\"}),\"\\n\",t(a.blockquote,{children:[\"\\n\",n(a.p,{children:\"Typography is pretty important if you don't want your stuff to look like trash. Make it good then it won't be bad.\"}),\"\\n\"]}),\"\\n\",n(a.p,{children:\"It's probably important that images look okay here by default as well:\"}),\"\\n\",n(l,{src:\"/images/blog/blog-post-4.jpg\",width:\"718\",height:\"404\",alt:\"Image\"}),\"\\n\",n(a.p,{children:\"Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old.\"}),\"\\n\",n(a.p,{children:\"Now I'm going to show you an example of an unordered list to make sure that looks good, too:\"}),\"\\n\",t(a.ul,{children:[\"\\n\",n(a.li,{children:\"So here is the first item in this list.\"}),\"\\n\",n(a.li,{children:\"In this example we're keeping the items short.\"}),\"\\n\",n(a.li,{children:\"Later, we'll use longer, more complex list items.\"}),\"\\n\"]}),\"\\n\",n(a.p,{children:\"And that's the end of this section.\"}),\"\\n\",t(a.h2,{id:\"what-if-we-stack-headings\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#what-if-we-stack-headings\",children:n(a.span,{className:\"icon icon-link\"})}),\"What if we stack headings?\"]}),\"\\n\",t(a.h3,{id:\"we-should-make-sure-that-looks-good-too\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#we-should-make-sure-that-looks-good-too\",children:n(a.span,{className:\"icon icon-link\"})}),\"We should make sure that looks good, too.\"]}),\"\\n\",n(a.p,{children:\"Sometimes you have headings directly underneath each other. In those cases you often have to undo the top margin on the second heading because it usually looks better for the headings to be closer together than a paragraph followed by a heading should be.\"}),\"\\n\",t(a.h3,{id:\"when-a-heading-comes-after-a-paragraph-\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#when-a-heading-comes-after-a-paragraph-\",children:n(a.span,{className:\"icon icon-link\"})}),\"When a heading comes after a paragraph …\"]}),\"\\n\",n(a.p,{children:\"When a heading comes after a paragraph, we need a bit more space, like I already mentioned above. Now let's see what a more complex list would look like.\"}),\"\\n\",t(a.ul,{children:[\"\\n\",t(a.li,{children:[\"\\n\",n(a.p,{children:n(a.strong,{children:\"I often do this thing where list items have headings.\"})}),\"\\n\",n(a.p,{children:\"For some reason I think this looks cool which is unfortunate because it's pretty annoying to get the styles right.\"}),\"\\n\",n(a.p,{children:\"I often have two or three paragraphs in these list items, too, so the hard part is getting the spacing between the paragraphs, list item heading, and separate list items to all make sense. Pretty tough honestly, you could make a strong argument that you just shouldn't write this way.\"}),\"\\n\"]}),\"\\n\",t(a.li,{children:[\"\\n\",n(a.p,{children:n(a.strong,{children:\"Since this is a list, I need at least two items.\"})}),\"\\n\",n(a.p,{children:\"I explained what I'm doing already in the previous list item, but a list wouldn't be a list if it only had one item, and we really want this to look realistic. That's why I've added this second list item so I actually have something to look at when writing the styles.\"}),\"\\n\"]}),\"\\n\",t(a.li,{children:[\"\\n\",n(a.p,{children:n(a.strong,{children:\"It's not a bad idea to add a third item either.\"})}),\"\\n\",n(a.p,{children:\"I think it probably would've been fine to just use two items but three is definitely not worse, and since I seem to be having no trouble making up arbitrary things to type, I might as well include it.\"}),\"\\n\"]}),\"\\n\"]}),\"\\n\",n(a.p,{children:\"After this sort of list I usually have a closing statement or paragraph, because it kinda looks weird jumping right to a heading.\"}),\"\\n\",t(a.h2,{id:\"code-should-look-okay-by-default\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#code-should-look-okay-by-default\",children:n(a.span,{className:\"icon icon-link\"})}),\"Code should look okay by default.\"]}),\"\\n\",t(a.p,{children:[\"I think most people are going to use \",n(a.a,{href:\"https://highlightjs.org/\",children:\"highlight.js\"}),\" or \",n(a.a,{href:\"https://prismjs.com/\",children:\"Prism\"}),\" or something if they want to style their code blocks but it wouldn't hurt to make them look \",n(a.em,{children:\"okay\"}),\" out of the box, even with no syntax highlighting.\"]}),\"\\n\",t(a.p,{children:[\"Here's what a default \",n(a.code,{children:\"tailwind.config.js\"}),\" file looks like at the time of writing:\"]}),\"\\n\",n(a.figure,{\"data-rehype-pretty-code-figure\":\"\",children:n(a.pre,{style:{backgroundColor:\"#24292e\",color:\"#e1e4e8\"},tabIndex:\"0\",\"data-language\":\"js\",\"data-theme\":\"github-dark\",children:t(a.code,{\"data-language\":\"js\",\"data-theme\":\"github-dark\",style:{display:\"grid\"},children:[t(a.span,{\"data-line\":\"\",children:[n(a.span,{style:{color:\"#79B8FF\"},children:\"module\"}),n(a.span,{style:{color:\"#E1E4E8\"},children:\".\"}),n(a.span,{style:{color:\"#79B8FF\"},children:\"exports\"}),n(a.span,{style:{color:\"#F97583\"},children:\" =\"}),n(a.span,{style:{color:\"#E1E4E8\"},children:\" {\"})]}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" purge: [],\"})}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" theme: {\"})}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" extend: {},\"})}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" },\"})}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" variants: {},\"})}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" plugins: [],\"})}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\"}\"})})]})})}),\"\\n\",n(a.p,{children:\"Hopefully that looks good enough to you.\"}),\"\\n\",t(a.h3,{id:\"what-about-nested-lists\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#what-about-nested-lists\",children:n(a.span,{className:\"icon icon-link\"})}),\"What about nested lists?\"]}),\"\\n\",n(a.p,{children:\"Nested lists basically always look bad which is why editors like Medium don't even let you do it, but I guess since some of you goofballs are going to do it we have to carry the burden of at least making it work.\"}),\"\\n\",t(a.ol,{children:[\"\\n\",t(a.li,{children:[n(a.strong,{children:\"Nested lists are rarely a good idea.\"}),\"\\n\",t(a.ul,{children:[\"\\n\",n(a.li,{children:'You might feel like you are being really \"organized\" or something but you are just creating a gross shape on the screen that is hard to read.'}),\"\\n\",n(a.li,{children:\"Nested navigation in UIs is a bad idea too, keep things as flat as possible.\"}),\"\\n\",n(a.li,{children:\"Nesting tons of folders in your source code is also not helpful.\"}),\"\\n\"]}),\"\\n\"]}),\"\\n\",t(a.li,{children:[n(a.strong,{children:\"Since we need to have more items, here's another one.\"}),\"\\n\",t(a.ul,{children:[\"\\n\",n(a.li,{children:\"I'm not sure if we'll bother styling more than two levels deep.\"}),\"\\n\",n(a.li,{children:\"Two is already too much, three is guaranteed to be a bad idea.\"}),\"\\n\",n(a.li,{children:\"If you nest four levels deep you belong in prison.\"}),\"\\n\"]}),\"\\n\"]}),\"\\n\",t(a.li,{children:[n(a.strong,{children:\"Two items isn't really a list, three is good though.\"}),\"\\n\",t(a.ul,{children:[\"\\n\",n(a.li,{children:\"Again please don't nest lists if you want people to actually read your content.\"}),\"\\n\",n(a.li,{children:\"Nobody wants to look at this.\"}),\"\\n\",n(a.li,{children:\"I'm upset that we even have to bother styling this.\"}),\"\\n\"]}),\"\\n\"]}),\"\\n\"]}),\"\\n\",t(a.p,{children:[\"The most annoying thing about lists in Markdown is that \",n(a.code,{children:\"

  • \"}),\" elements aren't given a child \",n(a.code,{children:\"

    \"}),\" tag unless there are multiple paragraphs in the list item. That means I have to worry about styling that annoying situation too.\"]}),\"\\n\",t(a.ul,{children:[\"\\n\",t(a.li,{children:[\"\\n\",n(a.p,{children:n(a.strong,{children:\"For example, here's another nested list.\"})}),\"\\n\",n(a.p,{children:\"But this time with a second paragraph.\"}),\"\\n\",t(a.ul,{children:[\"\\n\",t(a.li,{children:[\"These list items won't have \",n(a.code,{children:\"

    \"}),\" tags\"]}),\"\\n\",n(a.li,{children:\"Because they are only one line each\"}),\"\\n\"]}),\"\\n\"]}),\"\\n\",t(a.li,{children:[\"\\n\",n(a.p,{children:n(a.strong,{children:\"But in this second top-level list item, they will.\"})}),\"\\n\",n(a.p,{children:\"This is especially annoying because of the spacing on this paragraph.\"}),\"\\n\",t(a.ul,{children:[\"\\n\",t(a.li,{children:[\"\\n\",t(a.p,{children:[\"As you can see here, because I've added a second line, this list item now has a \",n(a.code,{children:\"

    \"}),\" tag.\"]}),\"\\n\",n(a.p,{children:\"This is the second line I'm talking about by the way.\"}),\"\\n\"]}),\"\\n\",t(a.li,{children:[\"\\n\",n(a.p,{children:\"Finally here's another list item so it's more like a list.\"}),\"\\n\"]}),\"\\n\"]}),\"\\n\"]}),\"\\n\",t(a.li,{children:[\"\\n\",n(a.p,{children:\"A closing list item, but with no nested list, because why not?\"}),\"\\n\"]}),\"\\n\"]}),\"\\n\",n(a.p,{children:\"And finally a sentence to close off this section.\"}),\"\\n\",t(a.h2,{id:\"there-are-other-elements-we-need-to-style\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#there-are-other-elements-we-need-to-style\",children:n(a.span,{className:\"icon icon-link\"})}),\"There are other elements we need to style\"]}),\"\\n\",t(a.p,{children:[\"I almost forgot to mention links, like \",n(a.a,{href:\"https://tailwindcss.com\",children:\"this link to the Tailwind CSS website\"}),\". We almost made them blue but that's so yesterday, so we went with dark gray, feels edgier.\"]}),\"\\n\",n(a.p,{children:\"We even included table styles, check it out:\"}),\"\\n\",t(a.table,{children:[n(a.thead,{children:t(a.tr,{children:[n(a.th,{children:\"Wrestler\"}),n(a.th,{children:\"Origin\"}),n(a.th,{children:\"Finisher\"})]})}),t(a.tbody,{children:[t(a.tr,{children:[n(a.td,{children:'Bret \"The Hitman\" Hart'}),n(a.td,{children:\"Calgary, AB\"}),n(a.td,{children:\"Sharpshooter\"})]}),t(a.tr,{children:[n(a.td,{children:\"Stone Cold Steve Austin\"}),n(a.td,{children:\"Austin, TX\"}),n(a.td,{children:\"Stone Cold Stunner\"})]}),t(a.tr,{children:[n(a.td,{children:\"Randy Savage\"}),n(a.td,{children:\"Sarasota, FL\"}),n(a.td,{children:\"Elbow Drop\"})]}),t(a.tr,{children:[n(a.td,{children:\"Vader\"}),n(a.td,{children:\"Boulder, CO\"}),n(a.td,{children:\"Vader Bomb\"})]}),t(a.tr,{children:[n(a.td,{children:\"Razor Ramon\"}),n(a.td,{children:\"Chuluota, FL\"}),n(a.td,{children:\"Razor's Edge\"})]})]})]}),\"\\n\",t(a.p,{children:[\"We also need to make sure inline code looks good, like if I wanted to talk about \",n(a.code,{children:\"\"}),\" elements or tell you the good news about \",n(a.code,{children:\"@tailwindcss/typography\"}),\".\"]}),\"\\n\",t(a.h3,{id:\"sometimes-i-even-use-code-in-headings\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#sometimes-i-even-use-code-in-headings\",children:n(a.span,{className:\"icon icon-link\"})}),\"Sometimes I even use \",n(a.code,{children:\"code\"}),\" in headings\"]}),\"\\n\",t(a.p,{children:[\"Even though it's probably a bad idea, and historically I've had a hard time making it look good. This \",n(a.em,{children:'\"wrap the code blocks in backticks\"'}),\" trick works pretty well though really.\"]}),\"\\n\",t(a.p,{children:[\"Another thing I've done in the past is put a \",n(a.code,{children:\"code\"}),\" tag inside of a link, like if I wanted to tell you about the \",n(a.a,{href:\"https://github.com/tailwindcss/docs\",children:n(a.code,{children:\"tailwindcss/docs\"})}),\" repository. I don't love that there is an underline below the backticks but it is absolutely not worth the madness it would require to avoid it.\"]}),\"\\n\",t(a.h4,{id:\"we-havent-used-an-h4-yet\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#we-havent-used-an-h4-yet\",children:n(a.span,{className:\"icon icon-link\"})}),\"We haven't used an \",n(a.code,{children:\"h4\"}),\" yet\"]}),\"\\n\",t(a.p,{children:[\"But now we have. Please don't use \",n(a.code,{children:\"h5\"}),\" or \",n(a.code,{children:\"h6\"}),\" in your content, Medium only supports two heading levels for a reason, you animals. I honestly considered using a \",n(a.code,{children:\"before\"}),\" pseudo-element to scream at you if you use an \",n(a.code,{children:\"h5\"}),\" or \",n(a.code,{children:\"h6\"}),\".\"]}),\"\\n\",t(a.p,{children:[\"We don't style them at all out of the box because \",n(a.code,{children:\"h4\"}),\" elements are already so small that they are the same size as the body copy. What are we supposed to do with an \",n(a.code,{children:\"h5\"}),\", make it \",n(a.em,{children:\"smaller\"}),\" than the body copy? No thanks.\"]}),\"\\n\",t(a.h3,{id:\"we-still-need-to-think-about-stacked-headings-though\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#we-still-need-to-think-about-stacked-headings-though\",children:n(a.span,{className:\"icon icon-link\"})}),\"We still need to think about stacked headings though.\"]}),\"\\n\",t(a.h4,{id:\"lets-make-sure-we-dont-screw-that-up-with-h4-elements-either\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#lets-make-sure-we-dont-screw-that-up-with-h4-elements-either\",children:n(a.span,{className:\"icon icon-link\"})}),\"Let's make sure we don't screw that up with \",n(a.code,{children:\"h4\"}),\" elements, either.\"]}),\"\\n\",n(a.p,{children:\"Phew, with any luck we have styled the headings above this text and they look pretty good.\"}),\"\\n\",n(a.p,{children:\"Let's add a closing paragraph here so things end with a decently sized block of text. I can't explain why I want things to end that way but I have to assume it's because I think things will look weird or unbalanced if there is a heading too close to the end of the document.\"}),\"\\n\",n(a.p,{children:\"What I've written here is probably long enough, but adding this final sentence can't hurt.\"}),\"\\n\",t(a.h2,{id:\"github-flavored-markdown\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#github-flavored-markdown\",children:n(a.span,{className:\"icon icon-link\"})}),\"GitHub Flavored Markdown\"]}),\"\\n\",t(a.p,{children:[\"I've also added support for GitHub Flavored Mardown using \",n(a.code,{children:\"remark-gfm\"}),\".\"]}),\"\\n\",t(a.p,{children:[\"With \",n(a.code,{children:\"remark-gfm\"}),\", we get a few extra features in our markdown. Example: autolink literals.\"]}),\"\\n\",t(a.p,{children:[\"A link like \",n(a.a,{href:\"http://www.example.com\",children:\"www.example.com\"}),\" or \",n(a.a,{href:\"https://example.com\",children:\"https://example.com\"}),\" would automatically be converted into an \",n(a.code,{children:\"a\"}),\" tag.\"]}),\"\\n\",t(a.p,{children:[\"This works for email links too: \",n(a.a,{href:\"mailto:contact@example.com\",children:\"contact@example.com\"}),\".\"]})]})}return{default:function(e={}){const{wrapper:t}=e.components||{};return t?n(t,{...e,children:n(_createMdxContent,{...e})}):_createMdxContent(e)}};function _missingMdxReference(e,n){throw new Error(\"Expected \"+(n?\"component\":\"object\")+\" `\"+e+\"` to be defined: you likely forgot to import, pass, or provide it.\")}", + "slug": "/D:\\Coding\\forks\\taxonomy\\content\\guides\\using-next-auth-next-13", + "slugAsParams": "" + } +] \ No newline at end of file diff --git a/.velite/index.d.ts b/.velite/index.d.ts new file mode 100644 index 000000000..f0610d25e --- /dev/null +++ b/.velite/index.d.ts @@ -0,0 +1,20 @@ +// This file is generated by Velite + +import config from '../velite.config' + +type Collections = typeof config.collections + +export type Page = Collections['pages']['schema']['_output'] +export declare const pages: Page[] + +export type Author = Collections['authors']['schema']['_output'] +export declare const authors: Author[] + +export type Post = Collections['posts']['schema']['_output'] +export declare const posts: Post[] + +export type Guide = Collections['guides']['schema']['_output'] +export declare const guides: Guide[] + +export type Doc = Collections['docs']['schema']['_output'] +export declare const docs: Doc[] diff --git a/.velite/index.js b/.velite/index.js new file mode 100644 index 000000000..02301a271 --- /dev/null +++ b/.velite/index.js @@ -0,0 +1,7 @@ +// This file is generated by Velite + +export { default as pages } from './pages.json' +export { default as authors } from './authors.json' +export { default as posts } from './posts.json' +export { default as guides } from './guides.json' +export { default as docs } from './docs.json' \ No newline at end of file diff --git a/.velite/pages.json b/.velite/pages.json new file mode 100644 index 000000000..4415849ff --- /dev/null +++ b/.velite/pages.json @@ -0,0 +1,16 @@ +[ + { + "title": "Privacy", + "description": "The Privacy Policy for Taxonomy App.", + "body": "const{Fragment:e,jsx:i,jsxs:n}=arguments[0];function _createMdxContent(a){const t={a:\"a\",h2:\"h2\",p:\"p\",span:\"span\",...a.components};return n(e,{children:[i(t.p,{children:\"Blandit libero volutpat sed cras ornare arcu. Cursus sit amet dictum sit amet. Nunc vel risus commodo viverra maecenas accumsan. Libero id faucibus nisl tincidunt eget nullam non nisi est. Varius quam quisque id diam vel quam. Id donec ultrices tincidunt arcu non.\"}),\"\\n\",n(t.h2,{id:\"consent\",children:[i(t.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#consent\",children:i(t.span,{className:\"icon icon-link\"})}),\"Consent\"]}),\"\\n\",i(t.p,{children:\"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Volutpat sed cras ornare arcu. Nibh ipsum consequat nisl vel pretium lectus quam id leo. A arcu cursus vitae congue. Amet justo donec enim diam. Vel pharetra vel turpis nunc eget lorem. Gravida quis blandit turpis cursus in. Semper auctor neque vitae tempus. Elementum facilisis leo vel fringilla est ullamcorper eget nulla. Imperdiet nulla malesuada pellentesque elit eget.\"}),\"\\n\",i(t.p,{children:\"Felis donec et odio pellentesque diam volutpat commodo sed.\"}),\"\\n\",i(t.p,{children:\"Tortor consequat id porta nibh. Fames ac turpis egestas maecenas pharetra convallis posuere morbi leo. Scelerisque fermentum dui faucibus in. Tortor posuere ac ut consequat semper viverra.\"}),\"\\n\",n(t.h2,{id:\"information-we-collect\",children:[i(t.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#information-we-collect\",children:i(t.span,{className:\"icon icon-link\"})}),\"Information we collect\"]}),\"\\n\",i(t.p,{children:\"Amet justo donec enim diam. In hendrerit gravida rutrum quisque non. Hac habitasse platea dictumst quisque sagittis purus sit.\"}),\"\\n\",n(t.h2,{id:\"how-we-use-your-information\",children:[i(t.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#how-we-use-your-information\",children:i(t.span,{className:\"icon icon-link\"})}),\"How we use your Information\"]}),\"\\n\",i(t.p,{children:\"Ut sem nulla pharetra diam sit amet nisl suscipit adipiscing. Consectetur adipiscing elit pellentesque habitant. Ut tristique et egestas quis ipsum suspendisse ultrices gravida.\"})]})}return{default:function(e={}){const{wrapper:n}=e.components||{};return n?i(n,{...e,children:i(_createMdxContent,{...e})}):_createMdxContent(e)}};", + "slug": "/D:\\Coding\\forks\\taxonomy\\content\\pages\\privacy", + "slugAsParams": "" + }, + { + "title": "Terms & Conditions", + "description": "Read our terms and conditions.", + "body": "const{Fragment:e,jsx:i,jsxs:a}=arguments[0];function _createMdxContent(s){const n={a:\"a\",h2:\"h2\",p:\"p\",span:\"span\",...s.components};return a(e,{children:[i(n.p,{children:\"Lorem ipsumMagna fermentum iaculis eu non diam. Vitae purus faucibus ornare suspendisse sed nisi lacus sed. In nibh mauris cursus mattis molestie a iaculis at. Enim sit amet venenatis urna. Eget sit amet tellus cras adipiscing.\"}),\"\\n\",a(n.h2,{id:\"legal-notices\",children:[i(n.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#legal-notices\",children:i(n.span,{className:\"icon icon-link\"})}),\"Legal Notices\"]}),\"\\n\",i(n.p,{children:\"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Volutpat sed cras ornare arcu. Nibh ipsum consequat nisl vel pretium lectus quam id leo. A arcu cursus vitae congue. Amet justo donec enim diam. Vel pharetra vel turpis nunc eget lorem. Gravida quis blandit turpis cursus in. Semper auctor neque vitae tempus. Elementum facilisis leo vel fringilla est ullamcorper eget nulla. Imperdiet nulla malesuada pellentesque elit eget.\"}),\"\\n\",i(n.p,{children:\"Felis donec et odio pellentesque diam volutpat commodo sed.\"}),\"\\n\",i(n.p,{children:\"Tortor consequat id porta nibh. Fames ac turpis egestas maecenas pharetra convallis posuere morbi leo. Scelerisque fermentum dui faucibus in. Tortor posuere ac ut consequat semper viverra.\"}),\"\\n\",a(n.h2,{id:\"warranty-disclaimer\",children:[i(n.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#warranty-disclaimer\",children:i(n.span,{className:\"icon icon-link\"})}),\"Warranty Disclaimer\"]}),\"\\n\",i(n.p,{children:\"Tellus in hac habitasse platea dictumst vestibulum. Faucibus in ornare quam viverra. Viverra aliquet eget sit amet tellus cras adipiscing. Erat nam at lectus urna duis convallis convallis tellus. Bibendum est ultricies integer quis auctor elit sed vulputate.\"}),\"\\n\",i(n.p,{children:\"Nisl condimentum id venenatis a condimentum vitae. Ac auctor augue mauris augue neque gravida in fermentum. Arcu felis bibendum ut tristique. Tempor commodo ullamcorper a lacus vestibulum sed arcu non.\"}),\"\\n\",a(n.h2,{id:\"general\",children:[i(n.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#general\",children:i(n.span,{className:\"icon icon-link\"})}),\"General\"]}),\"\\n\",i(n.p,{children:\"Magna fermentum iaculis eu non diam. Vitae purus faucibus ornare suspendisse sed nisi lacus sed. In nibh mauris cursus mattis molestie a iaculis at. Enim sit amet venenatis urna. Eget sit amet tellus cras adipiscing.\"}),\"\\n\",i(n.p,{children:\"Sed lectus vestibulum mattis ullamcorper velit. Id diam vel quam elementum pulvinar. In iaculis nunc sed augue lacus viverra. In hendrerit gravida rutrum quisque non tellus. Nisl purus in mollis nunc.\"}),\"\\n\",a(n.h2,{id:\"disclaimer\",children:[i(n.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#disclaimer\",children:i(n.span,{className:\"icon icon-link\"})}),\"Disclaimer\"]}),\"\\n\",i(n.p,{children:\"Amet justo donec enim diam. In hendrerit gravida rutrum quisque non. Hac habitasse platea dictumst quisque sagittis purus sit. Faucibus ornare suspendisse sed nisi lacus. Nulla porttitor massa id neque aliquam vestibulum. Ante in nibh mauris cursus mattis molestie a. Mi tempus imperdiet nulla malesuada.\"})]})}return{default:function(e={}){const{wrapper:a}=e.components||{};return a?i(a,{...e,children:i(_createMdxContent,{...e})}):_createMdxContent(e)}};", + "slug": "/D:\\Coding\\forks\\taxonomy\\content\\pages\\terms", + "slugAsParams": "" + } +] \ No newline at end of file diff --git a/.velite/posts.json b/.velite/posts.json new file mode 100644 index 000000000..a0a16aaf3 --- /dev/null +++ b/.velite/posts.json @@ -0,0 +1,54 @@ +[ + { + "title": "Deploying Next.js Apps", + "description": "How to deploy your Next.js apps on Vercel.", + "date": "2023-01-02T00:00:00.000Z", + "published": true, + "image": "/images/blog/blog-post-3.jpg", + "authors": [ + "shadcn" + ], + "body": "const{Fragment:e,jsx:n,jsxs:t}=arguments[0];function _createMdxContent(i){const a={a:\"a\",blockquote:\"blockquote\",code:\"code\",em:\"em\",figure:\"figure\",h2:\"h2\",h3:\"h3\",h4:\"h4\",hr:\"hr\",li:\"li\",ol:\"ol\",p:\"p\",pre:\"pre\",span:\"span\",strong:\"strong\",table:\"table\",tbody:\"tbody\",td:\"td\",th:\"th\",thead:\"thead\",tr:\"tr\",ul:\"ul\",...i.components},{Callout:o,Image:l}=a;return o||_missingMdxReference(\"Callout\",!0),l||_missingMdxReference(\"Image\",!0),t(e,{children:[n(o,{children:t(a.p,{children:[\"The text below is from the \",n(a.a,{href:\"https://play.tailwindcss.com/uj1vGACRJA?layout=preview\",children:\"Tailwind\\nCSS\"}),\" docs. I copied it\\nhere to test the markdown styles. \",n(a.strong,{children:\"Tailwind is awesome. You should use it.\"})]})}),\"\\n\",n(a.p,{children:\"Until now, trying to style an article, document, or blog post with Tailwind has been a tedious task that required a keen eye for typography and a lot of complex custom CSS.\"}),\"\\n\",t(a.p,{children:[\"By default, Tailwind removes all of the default browser styling from paragraphs, headings, lists and more. This ends up being really useful for building application UIs because you spend less time undoing user-agent styles, but when you \",n(a.em,{children:\"really are\"}),\" just trying to style some content that came from a rich-text editor in a CMS or a markdown file, it can be surprising and unintuitive.\"]}),\"\\n\",n(a.p,{children:\"We get lots of complaints about it actually, with people regularly asking us things like:\"}),\"\\n\",t(a.blockquote,{children:[\"\\n\",t(a.p,{children:[\"Why is Tailwind removing the default styles on my \",n(a.code,{children:\"h1\"}),\" elements? How do I disable this? What do you mean I lose all the other base styles too?\\nWe hear you, but we're not convinced that simply disabling our base styles is what you really want. You don't want to have to remove annoying margins every time you use a \",n(a.code,{children:\"p\"}),\" element in a piece of your dashboard UI. And I doubt you really want your blog posts to use the user-agent styles either — you want them to look \",n(a.em,{children:\"awesome\"}),\", not awful.\"]}),\"\\n\"]}),\"\\n\",t(a.p,{children:[\"The \",n(a.code,{children:\"@tailwindcss/typography\"}),\" plugin is our attempt to give you what you \",n(a.em,{children:\"actually\"}),\" want, without any of the downsides of doing something stupid like disabling our base styles.\"]}),\"\\n\",t(a.p,{children:[\"It adds a new \",n(a.code,{children:\"prose\"}),\" class that you can slap on any block of vanilla HTML content and turn it into a beautiful, well-formatted document:\"]}),\"\\n\",n(a.figure,{\"data-rehype-pretty-code-figure\":\"\",children:n(a.pre,{style:{backgroundColor:\"#24292e\",color:\"#e1e4e8\"},tabIndex:\"0\",\"data-language\":\"html\",\"data-theme\":\"github-dark\",children:t(a.code,{\"data-language\":\"html\",\"data-theme\":\"github-dark\",style:{display:\"grid\"},children:[t(a.span,{\"data-line\":\"\",children:[n(a.span,{style:{color:\"#E1E4E8\"},children:\"<\"}),n(a.span,{style:{color:\"#85E89D\"},children:\"article\"}),n(a.span,{style:{color:\"#B392F0\"},children:\" class\"}),n(a.span,{style:{color:\"#E1E4E8\"},children:\"=\"}),n(a.span,{style:{color:\"#9ECBFF\"},children:'\"prose\"'}),n(a.span,{style:{color:\"#E1E4E8\"},children:\">\"})]}),\"\\n\",t(a.span,{\"data-line\":\"\",children:[n(a.span,{style:{color:\"#E1E4E8\"},children:\" <\"}),n(a.span,{style:{color:\"#85E89D\"},children:\"h1\"}),n(a.span,{style:{color:\"#E1E4E8\"},children:\">Garlic bread with cheese: What the science tells us\"})]}),\"\\n\",t(a.span,{\"data-line\":\"\",children:[n(a.span,{style:{color:\"#E1E4E8\"},children:\" <\"}),n(a.span,{style:{color:\"#85E89D\"},children:\"p\"}),n(a.span,{style:{color:\"#E1E4E8\"},children:\">\"})]}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" For years parents have espoused the health benefits of eating garlic bread\"})}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" with cheese to their children, with the food earning such an iconic status\"})}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" in our culture that kids will often dress up as warm, cheesy loaf for\"})}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" Halloween.\"})}),\"\\n\",t(a.span,{\"data-line\":\"\",children:[n(a.span,{style:{color:\"#E1E4E8\"},children:\" \"})]}),\"\\n\",t(a.span,{\"data-line\":\"\",children:[n(a.span,{style:{color:\"#E1E4E8\"},children:\" <\"}),n(a.span,{style:{color:\"#85E89D\"},children:\"p\"}),n(a.span,{style:{color:\"#E1E4E8\"},children:\">\"})]}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" But a recent study shows that the celebrated appetizer may be linked to a\"})}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" series of rabies cases springing up around the country.\"})}),\"\\n\",t(a.span,{\"data-line\":\"\",children:[n(a.span,{style:{color:\"#E1E4E8\"},children:\" \"})]}),\"\\n\",t(a.span,{\"data-line\":\"\",children:[n(a.span,{style:{color:\"#E1E4E8\"},children:\"\"})]})]})})}),\"\\n\",t(a.p,{children:[\"For more information about how to use the plugin and the features it includes, \",n(a.a,{href:\"https://github.com/tailwindcss/typography/blob/master/README.md\",children:\"read the documentation\"}),\".\"]}),\"\\n\",n(a.hr,{}),\"\\n\",t(a.h2,{id:\"what-to-expect-from-here-on-out\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#what-to-expect-from-here-on-out\",children:n(a.span,{className:\"icon icon-link\"})}),\"What to expect from here on out\"]}),\"\\n\",t(a.p,{children:[\"What follows from here is just a bunch of absolute nonsense I've written to dogfood the plugin itself. It includes every sensible typographic element I could think of, like \",n(a.strong,{children:\"bold text\"}),\", unordered lists, ordered lists, code blocks, block quotes, \",n(a.em,{children:\"and even italics\"}),\".\"]}),\"\\n\",n(a.p,{children:\"It's important to cover all of these use cases for a few reasons:\"}),\"\\n\",t(a.ol,{children:[\"\\n\",n(a.li,{children:\"We want everything to look good out of the box.\"}),\"\\n\",n(a.li,{children:\"Really just the first reason, that's the whole point of the plugin.\"}),\"\\n\",n(a.li,{children:\"Here's a third pretend reason though a list with three items looks more realistic than a list with two items.\"}),\"\\n\"]}),\"\\n\",n(a.p,{children:\"Now we're going to try out another header style.\"}),\"\\n\",t(a.h3,{id:\"typography-should-be-easy\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#typography-should-be-easy\",children:n(a.span,{className:\"icon icon-link\"})}),\"Typography should be easy\"]}),\"\\n\",n(a.p,{children:\"So that's a header for you — with any luck if we've done our job correctly that will look pretty reasonable.\"}),\"\\n\",n(a.p,{children:\"Something a wise person once told me about typography is:\"}),\"\\n\",t(a.blockquote,{children:[\"\\n\",n(a.p,{children:\"Typography is pretty important if you don't want your stuff to look like trash. Make it good then it won't be bad.\"}),\"\\n\"]}),\"\\n\",n(a.p,{children:\"It's probably important that images look okay here by default as well:\"}),\"\\n\",n(l,{src:\"/images/blog/blog-post-4.jpg\",width:\"718\",height:\"404\",alt:\"Image\"}),\"\\n\",n(a.p,{children:\"Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old.\"}),\"\\n\",n(a.p,{children:\"Now I'm going to show you an example of an unordered list to make sure that looks good, too:\"}),\"\\n\",t(a.ul,{children:[\"\\n\",n(a.li,{children:\"So here is the first item in this list.\"}),\"\\n\",n(a.li,{children:\"In this example we're keeping the items short.\"}),\"\\n\",n(a.li,{children:\"Later, we'll use longer, more complex list items.\"}),\"\\n\"]}),\"\\n\",n(a.p,{children:\"And that's the end of this section.\"}),\"\\n\",t(a.h2,{id:\"what-if-we-stack-headings\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#what-if-we-stack-headings\",children:n(a.span,{className:\"icon icon-link\"})}),\"What if we stack headings?\"]}),\"\\n\",t(a.h3,{id:\"we-should-make-sure-that-looks-good-too\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#we-should-make-sure-that-looks-good-too\",children:n(a.span,{className:\"icon icon-link\"})}),\"We should make sure that looks good, too.\"]}),\"\\n\",n(a.p,{children:\"Sometimes you have headings directly underneath each other. In those cases you often have to undo the top margin on the second heading because it usually looks better for the headings to be closer together than a paragraph followed by a heading should be.\"}),\"\\n\",t(a.h3,{id:\"when-a-heading-comes-after-a-paragraph-\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#when-a-heading-comes-after-a-paragraph-\",children:n(a.span,{className:\"icon icon-link\"})}),\"When a heading comes after a paragraph …\"]}),\"\\n\",n(a.p,{children:\"When a heading comes after a paragraph, we need a bit more space, like I already mentioned above. Now let's see what a more complex list would look like.\"}),\"\\n\",t(a.ul,{children:[\"\\n\",t(a.li,{children:[\"\\n\",n(a.p,{children:n(a.strong,{children:\"I often do this thing where list items have headings.\"})}),\"\\n\",n(a.p,{children:\"For some reason I think this looks cool which is unfortunate because it's pretty annoying to get the styles right.\"}),\"\\n\",n(a.p,{children:\"I often have two or three paragraphs in these list items, too, so the hard part is getting the spacing between the paragraphs, list item heading, and separate list items to all make sense. Pretty tough honestly, you could make a strong argument that you just shouldn't write this way.\"}),\"\\n\"]}),\"\\n\",t(a.li,{children:[\"\\n\",n(a.p,{children:n(a.strong,{children:\"Since this is a list, I need at least two items.\"})}),\"\\n\",n(a.p,{children:\"I explained what I'm doing already in the previous list item, but a list wouldn't be a list if it only had one item, and we really want this to look realistic. That's why I've added this second list item so I actually have something to look at when writing the styles.\"}),\"\\n\"]}),\"\\n\",t(a.li,{children:[\"\\n\",n(a.p,{children:n(a.strong,{children:\"It's not a bad idea to add a third item either.\"})}),\"\\n\",n(a.p,{children:\"I think it probably would've been fine to just use two items but three is definitely not worse, and since I seem to be having no trouble making up arbitrary things to type, I might as well include it.\"}),\"\\n\"]}),\"\\n\"]}),\"\\n\",n(a.p,{children:\"After this sort of list I usually have a closing statement or paragraph, because it kinda looks weird jumping right to a heading.\"}),\"\\n\",t(a.h2,{id:\"code-should-look-okay-by-default\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#code-should-look-okay-by-default\",children:n(a.span,{className:\"icon icon-link\"})}),\"Code should look okay by default.\"]}),\"\\n\",t(a.p,{children:[\"I think most people are going to use \",n(a.a,{href:\"https://highlightjs.org/\",children:\"highlight.js\"}),\" or \",n(a.a,{href:\"https://prismjs.com/\",children:\"Prism\"}),\" or something if they want to style their code blocks but it wouldn't hurt to make them look \",n(a.em,{children:\"okay\"}),\" out of the box, even with no syntax highlighting.\"]}),\"\\n\",t(a.p,{children:[\"Here's what a default \",n(a.code,{children:\"tailwind.config.js\"}),\" file looks like at the time of writing:\"]}),\"\\n\",n(a.figure,{\"data-rehype-pretty-code-figure\":\"\",children:n(a.pre,{style:{backgroundColor:\"#24292e\",color:\"#e1e4e8\"},tabIndex:\"0\",\"data-language\":\"js\",\"data-theme\":\"github-dark\",children:t(a.code,{\"data-language\":\"js\",\"data-theme\":\"github-dark\",style:{display:\"grid\"},children:[t(a.span,{\"data-line\":\"\",children:[n(a.span,{style:{color:\"#79B8FF\"},children:\"module\"}),n(a.span,{style:{color:\"#E1E4E8\"},children:\".\"}),n(a.span,{style:{color:\"#79B8FF\"},children:\"exports\"}),n(a.span,{style:{color:\"#F97583\"},children:\" =\"}),n(a.span,{style:{color:\"#E1E4E8\"},children:\" {\"})]}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" purge: [],\"})}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" theme: {\"})}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" extend: {},\"})}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" },\"})}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" variants: {},\"})}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" plugins: [],\"})}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\"}\"})})]})})}),\"\\n\",n(a.p,{children:\"Hopefully that looks good enough to you.\"}),\"\\n\",t(a.h3,{id:\"what-about-nested-lists\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#what-about-nested-lists\",children:n(a.span,{className:\"icon icon-link\"})}),\"What about nested lists?\"]}),\"\\n\",n(a.p,{children:\"Nested lists basically always look bad which is why editors like Medium don't even let you do it, but I guess since some of you goofballs are going to do it we have to carry the burden of at least making it work.\"}),\"\\n\",t(a.ol,{children:[\"\\n\",t(a.li,{children:[n(a.strong,{children:\"Nested lists are rarely a good idea.\"}),\"\\n\",t(a.ul,{children:[\"\\n\",n(a.li,{children:'You might feel like you are being really \"organized\" or something but you are just creating a gross shape on the screen that is hard to read.'}),\"\\n\",n(a.li,{children:\"Nested navigation in UIs is a bad idea too, keep things as flat as possible.\"}),\"\\n\",n(a.li,{children:\"Nesting tons of folders in your source code is also not helpful.\"}),\"\\n\"]}),\"\\n\"]}),\"\\n\",t(a.li,{children:[n(a.strong,{children:\"Since we need to have more items, here's another one.\"}),\"\\n\",t(a.ul,{children:[\"\\n\",n(a.li,{children:\"I'm not sure if we'll bother styling more than two levels deep.\"}),\"\\n\",n(a.li,{children:\"Two is already too much, three is guaranteed to be a bad idea.\"}),\"\\n\",n(a.li,{children:\"If you nest four levels deep you belong in prison.\"}),\"\\n\"]}),\"\\n\"]}),\"\\n\",t(a.li,{children:[n(a.strong,{children:\"Two items isn't really a list, three is good though.\"}),\"\\n\",t(a.ul,{children:[\"\\n\",n(a.li,{children:\"Again please don't nest lists if you want people to actually read your content.\"}),\"\\n\",n(a.li,{children:\"Nobody wants to look at this.\"}),\"\\n\",n(a.li,{children:\"I'm upset that we even have to bother styling this.\"}),\"\\n\"]}),\"\\n\"]}),\"\\n\"]}),\"\\n\",t(a.p,{children:[\"The most annoying thing about lists in Markdown is that \",n(a.code,{children:\"

  • \"}),\" elements aren't given a child \",n(a.code,{children:\"

    \"}),\" tag unless there are multiple paragraphs in the list item. That means I have to worry about styling that annoying situation too.\"]}),\"\\n\",t(a.ul,{children:[\"\\n\",t(a.li,{children:[\"\\n\",n(a.p,{children:n(a.strong,{children:\"For example, here's another nested list.\"})}),\"\\n\",n(a.p,{children:\"But this time with a second paragraph.\"}),\"\\n\",t(a.ul,{children:[\"\\n\",t(a.li,{children:[\"These list items won't have \",n(a.code,{children:\"

    \"}),\" tags\"]}),\"\\n\",n(a.li,{children:\"Because they are only one line each\"}),\"\\n\"]}),\"\\n\"]}),\"\\n\",t(a.li,{children:[\"\\n\",n(a.p,{children:n(a.strong,{children:\"But in this second top-level list item, they will.\"})}),\"\\n\",n(a.p,{children:\"This is especially annoying because of the spacing on this paragraph.\"}),\"\\n\",t(a.ul,{children:[\"\\n\",t(a.li,{children:[\"\\n\",t(a.p,{children:[\"As you can see here, because I've added a second line, this list item now has a \",n(a.code,{children:\"

    \"}),\" tag.\"]}),\"\\n\",n(a.p,{children:\"This is the second line I'm talking about by the way.\"}),\"\\n\"]}),\"\\n\",t(a.li,{children:[\"\\n\",n(a.p,{children:\"Finally here's another list item so it's more like a list.\"}),\"\\n\"]}),\"\\n\"]}),\"\\n\"]}),\"\\n\",t(a.li,{children:[\"\\n\",n(a.p,{children:\"A closing list item, but with no nested list, because why not?\"}),\"\\n\"]}),\"\\n\"]}),\"\\n\",n(a.p,{children:\"And finally a sentence to close off this section.\"}),\"\\n\",t(a.h2,{id:\"there-are-other-elements-we-need-to-style\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#there-are-other-elements-we-need-to-style\",children:n(a.span,{className:\"icon icon-link\"})}),\"There are other elements we need to style\"]}),\"\\n\",t(a.p,{children:[\"I almost forgot to mention links, like \",n(a.a,{href:\"https://tailwindcss.com\",children:\"this link to the Tailwind CSS website\"}),\". We almost made them blue but that's so yesterday, so we went with dark gray, feels edgier.\"]}),\"\\n\",n(a.p,{children:\"We even included table styles, check it out:\"}),\"\\n\",t(a.table,{children:[n(a.thead,{children:t(a.tr,{children:[n(a.th,{children:\"Wrestler\"}),n(a.th,{children:\"Origin\"}),n(a.th,{children:\"Finisher\"})]})}),t(a.tbody,{children:[t(a.tr,{children:[n(a.td,{children:'Bret \"The Hitman\" Hart'}),n(a.td,{children:\"Calgary, AB\"}),n(a.td,{children:\"Sharpshooter\"})]}),t(a.tr,{children:[n(a.td,{children:\"Stone Cold Steve Austin\"}),n(a.td,{children:\"Austin, TX\"}),n(a.td,{children:\"Stone Cold Stunner\"})]}),t(a.tr,{children:[n(a.td,{children:\"Randy Savage\"}),n(a.td,{children:\"Sarasota, FL\"}),n(a.td,{children:\"Elbow Drop\"})]}),t(a.tr,{children:[n(a.td,{children:\"Vader\"}),n(a.td,{children:\"Boulder, CO\"}),n(a.td,{children:\"Vader Bomb\"})]}),t(a.tr,{children:[n(a.td,{children:\"Razor Ramon\"}),n(a.td,{children:\"Chuluota, FL\"}),n(a.td,{children:\"Razor's Edge\"})]})]})]}),\"\\n\",t(a.p,{children:[\"We also need to make sure inline code looks good, like if I wanted to talk about \",n(a.code,{children:\"\"}),\" elements or tell you the good news about \",n(a.code,{children:\"@tailwindcss/typography\"}),\".\"]}),\"\\n\",t(a.h3,{id:\"sometimes-i-even-use-code-in-headings\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#sometimes-i-even-use-code-in-headings\",children:n(a.span,{className:\"icon icon-link\"})}),\"Sometimes I even use \",n(a.code,{children:\"code\"}),\" in headings\"]}),\"\\n\",t(a.p,{children:[\"Even though it's probably a bad idea, and historically I've had a hard time making it look good. This \",n(a.em,{children:'\"wrap the code blocks in backticks\"'}),\" trick works pretty well though really.\"]}),\"\\n\",t(a.p,{children:[\"Another thing I've done in the past is put a \",n(a.code,{children:\"code\"}),\" tag inside of a link, like if I wanted to tell you about the \",n(a.a,{href:\"https://github.com/tailwindcss/docs\",children:n(a.code,{children:\"tailwindcss/docs\"})}),\" repository. I don't love that there is an underline below the backticks but it is absolutely not worth the madness it would require to avoid it.\"]}),\"\\n\",t(a.h4,{id:\"we-havent-used-an-h4-yet\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#we-havent-used-an-h4-yet\",children:n(a.span,{className:\"icon icon-link\"})}),\"We haven't used an \",n(a.code,{children:\"h4\"}),\" yet\"]}),\"\\n\",t(a.p,{children:[\"But now we have. Please don't use \",n(a.code,{children:\"h5\"}),\" or \",n(a.code,{children:\"h6\"}),\" in your content, Medium only supports two heading levels for a reason, you animals. I honestly considered using a \",n(a.code,{children:\"before\"}),\" pseudo-element to scream at you if you use an \",n(a.code,{children:\"h5\"}),\" or \",n(a.code,{children:\"h6\"}),\".\"]}),\"\\n\",t(a.p,{children:[\"We don't style them at all out of the box because \",n(a.code,{children:\"h4\"}),\" elements are already so small that they are the same size as the body copy. What are we supposed to do with an \",n(a.code,{children:\"h5\"}),\", make it \",n(a.em,{children:\"smaller\"}),\" than the body copy? No thanks.\"]}),\"\\n\",t(a.h3,{id:\"we-still-need-to-think-about-stacked-headings-though\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#we-still-need-to-think-about-stacked-headings-though\",children:n(a.span,{className:\"icon icon-link\"})}),\"We still need to think about stacked headings though.\"]}),\"\\n\",t(a.h4,{id:\"lets-make-sure-we-dont-screw-that-up-with-h4-elements-either\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#lets-make-sure-we-dont-screw-that-up-with-h4-elements-either\",children:n(a.span,{className:\"icon icon-link\"})}),\"Let's make sure we don't screw that up with \",n(a.code,{children:\"h4\"}),\" elements, either.\"]}),\"\\n\",n(a.p,{children:\"Phew, with any luck we have styled the headings above this text and they look pretty good.\"}),\"\\n\",n(a.p,{children:\"Let's add a closing paragraph here so things end with a decently sized block of text. I can't explain why I want things to end that way but I have to assume it's because I think things will look weird or unbalanced if there is a heading too close to the end of the document.\"}),\"\\n\",n(a.p,{children:\"What I've written here is probably long enough, but adding this final sentence can't hurt.\"}),\"\\n\",t(a.h2,{id:\"github-flavored-markdown\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#github-flavored-markdown\",children:n(a.span,{className:\"icon icon-link\"})}),\"GitHub Flavored Markdown\"]}),\"\\n\",t(a.p,{children:[\"I've also added support for GitHub Flavored Mardown using \",n(a.code,{children:\"remark-gfm\"}),\".\"]}),\"\\n\",t(a.p,{children:[\"With \",n(a.code,{children:\"remark-gfm\"}),\", we get a few extra features in our markdown. Example: autolink literals.\"]}),\"\\n\",t(a.p,{children:[\"A link like \",n(a.a,{href:\"http://www.example.com\",children:\"www.example.com\"}),\" or \",n(a.a,{href:\"https://example.com\",children:\"https://example.com\"}),\" would automatically be converted into an \",n(a.code,{children:\"a\"}),\" tag.\"]}),\"\\n\",t(a.p,{children:[\"This works for email links too: \",n(a.a,{href:\"mailto:contact@example.com\",children:\"contact@example.com\"}),\".\"]})]})}return{default:function(e={}){const{wrapper:t}=e.components||{};return t?n(t,{...e,children:n(_createMdxContent,{...e})}):_createMdxContent(e)}};function _missingMdxReference(e,n){throw new Error(\"Expected \"+(n?\"component\":\"object\")+\" `\"+e+\"` to be defined: you likely forgot to import, pass, or provide it.\")}", + "slug": "/D:\\Coding\\forks\\taxonomy\\content\\blog\\deploying-next-apps", + "slugAsParams": "" + }, + { + "title": "Dynamic Routing and Static Regeneration", + "description": "How to use incremental static regeneration using dynamic routes.", + "date": "2023-03-04T00:00:00.000Z", + "published": true, + "image": "/images/blog/blog-post-2.jpg", + "authors": [ + "shadcn" + ], + "body": "const{Fragment:e,jsx:n,jsxs:t}=arguments[0];function _createMdxContent(i){const a={a:\"a\",blockquote:\"blockquote\",code:\"code\",em:\"em\",figure:\"figure\",h2:\"h2\",h3:\"h3\",h4:\"h4\",hr:\"hr\",li:\"li\",ol:\"ol\",p:\"p\",pre:\"pre\",span:\"span\",strong:\"strong\",table:\"table\",tbody:\"tbody\",td:\"td\",th:\"th\",thead:\"thead\",tr:\"tr\",ul:\"ul\",...i.components},{Callout:o,Image:l}=a;return o||_missingMdxReference(\"Callout\",!0),l||_missingMdxReference(\"Image\",!0),t(e,{children:[n(o,{children:t(a.p,{children:[\"The text below is from the \",n(a.a,{href:\"https://play.tailwindcss.com/uj1vGACRJA?layout=preview\",children:\"Tailwind\\nCSS\"}),\" docs. I copied it\\nhere to test the markdown styles. \",n(a.strong,{children:\"Tailwind is awesome. You should use it.\"})]})}),\"\\n\",n(a.p,{children:\"Until now, trying to style an article, document, or blog post with Tailwind has been a tedious task that required a keen eye for typography and a lot of complex custom CSS.\"}),\"\\n\",t(a.p,{children:[\"By default, Tailwind removes all of the default browser styling from paragraphs, headings, lists and more. This ends up being really useful for building application UIs because you spend less time undoing user-agent styles, but when you \",n(a.em,{children:\"really are\"}),\" just trying to style some content that came from a rich-text editor in a CMS or a markdown file, it can be surprising and unintuitive.\"]}),\"\\n\",n(a.p,{children:\"We get lots of complaints about it actually, with people regularly asking us things like:\"}),\"\\n\",t(a.blockquote,{children:[\"\\n\",t(a.p,{children:[\"Why is Tailwind removing the default styles on my \",n(a.code,{children:\"h1\"}),\" elements? How do I disable this? What do you mean I lose all the other base styles too?\\nWe hear you, but we're not convinced that simply disabling our base styles is what you really want. You don't want to have to remove annoying margins every time you use a \",n(a.code,{children:\"p\"}),\" element in a piece of your dashboard UI. And I doubt you really want your blog posts to use the user-agent styles either — you want them to look \",n(a.em,{children:\"awesome\"}),\", not awful.\"]}),\"\\n\"]}),\"\\n\",t(a.p,{children:[\"The \",n(a.code,{children:\"@tailwindcss/typography\"}),\" plugin is our attempt to give you what you \",n(a.em,{children:\"actually\"}),\" want, without any of the downsides of doing something stupid like disabling our base styles.\"]}),\"\\n\",t(a.p,{children:[\"It adds a new \",n(a.code,{children:\"prose\"}),\" class that you can slap on any block of vanilla HTML content and turn it into a beautiful, well-formatted document:\"]}),\"\\n\",n(a.figure,{\"data-rehype-pretty-code-figure\":\"\",children:n(a.pre,{style:{backgroundColor:\"#24292e\",color:\"#e1e4e8\"},tabIndex:\"0\",\"data-language\":\"html\",\"data-theme\":\"github-dark\",children:t(a.code,{\"data-language\":\"html\",\"data-theme\":\"github-dark\",style:{display:\"grid\"},children:[t(a.span,{\"data-line\":\"\",children:[n(a.span,{style:{color:\"#E1E4E8\"},children:\"<\"}),n(a.span,{style:{color:\"#85E89D\"},children:\"article\"}),n(a.span,{style:{color:\"#B392F0\"},children:\" class\"}),n(a.span,{style:{color:\"#E1E4E8\"},children:\"=\"}),n(a.span,{style:{color:\"#9ECBFF\"},children:'\"prose\"'}),n(a.span,{style:{color:\"#E1E4E8\"},children:\">\"})]}),\"\\n\",t(a.span,{\"data-line\":\"\",children:[n(a.span,{style:{color:\"#E1E4E8\"},children:\" <\"}),n(a.span,{style:{color:\"#85E89D\"},children:\"h1\"}),n(a.span,{style:{color:\"#E1E4E8\"},children:\">Garlic bread with cheese: What the science tells us\"})]}),\"\\n\",t(a.span,{\"data-line\":\"\",children:[n(a.span,{style:{color:\"#E1E4E8\"},children:\" <\"}),n(a.span,{style:{color:\"#85E89D\"},children:\"p\"}),n(a.span,{style:{color:\"#E1E4E8\"},children:\">\"})]}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" For years parents have espoused the health benefits of eating garlic bread\"})}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" with cheese to their children, with the food earning such an iconic status\"})}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" in our culture that kids will often dress up as warm, cheesy loaf for\"})}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" Halloween.\"})}),\"\\n\",t(a.span,{\"data-line\":\"\",children:[n(a.span,{style:{color:\"#E1E4E8\"},children:\" \"})]}),\"\\n\",t(a.span,{\"data-line\":\"\",children:[n(a.span,{style:{color:\"#E1E4E8\"},children:\" <\"}),n(a.span,{style:{color:\"#85E89D\"},children:\"p\"}),n(a.span,{style:{color:\"#E1E4E8\"},children:\">\"})]}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" But a recent study shows that the celebrated appetizer may be linked to a\"})}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" series of rabies cases springing up around the country.\"})}),\"\\n\",t(a.span,{\"data-line\":\"\",children:[n(a.span,{style:{color:\"#E1E4E8\"},children:\" \"})]}),\"\\n\",t(a.span,{\"data-line\":\"\",children:[n(a.span,{style:{color:\"#E1E4E8\"},children:\"\"})]})]})})}),\"\\n\",t(a.p,{children:[\"For more information about how to use the plugin and the features it includes, \",n(a.a,{href:\"https://github.com/tailwindcss/typography/blob/master/README.md\",children:\"read the documentation\"}),\".\"]}),\"\\n\",n(a.hr,{}),\"\\n\",t(a.h2,{id:\"what-to-expect-from-here-on-out\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#what-to-expect-from-here-on-out\",children:n(a.span,{className:\"icon icon-link\"})}),\"What to expect from here on out\"]}),\"\\n\",t(a.p,{children:[\"What follows from here is just a bunch of absolute nonsense I've written to dogfood the plugin itself. It includes every sensible typographic element I could think of, like \",n(a.strong,{children:\"bold text\"}),\", unordered lists, ordered lists, code blocks, block quotes, \",n(a.em,{children:\"and even italics\"}),\".\"]}),\"\\n\",n(a.p,{children:\"It's important to cover all of these use cases for a few reasons:\"}),\"\\n\",t(a.ol,{children:[\"\\n\",n(a.li,{children:\"We want everything to look good out of the box.\"}),\"\\n\",n(a.li,{children:\"Really just the first reason, that's the whole point of the plugin.\"}),\"\\n\",n(a.li,{children:\"Here's a third pretend reason though a list with three items looks more realistic than a list with two items.\"}),\"\\n\"]}),\"\\n\",n(a.p,{children:\"Now we're going to try out another header style.\"}),\"\\n\",t(a.h3,{id:\"typography-should-be-easy\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#typography-should-be-easy\",children:n(a.span,{className:\"icon icon-link\"})}),\"Typography should be easy\"]}),\"\\n\",n(a.p,{children:\"So that's a header for you — with any luck if we've done our job correctly that will look pretty reasonable.\"}),\"\\n\",n(a.p,{children:\"Something a wise person once told me about typography is:\"}),\"\\n\",t(a.blockquote,{children:[\"\\n\",n(a.p,{children:\"Typography is pretty important if you don't want your stuff to look like trash. Make it good then it won't be bad.\"}),\"\\n\"]}),\"\\n\",n(a.p,{children:\"It's probably important that images look okay here by default as well:\"}),\"\\n\",n(l,{src:\"/images/blog/blog-post-4.jpg\",width:\"718\",height:\"404\",alt:\"Image\"}),\"\\n\",n(a.p,{children:\"Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old.\"}),\"\\n\",n(a.p,{children:\"Now I'm going to show you an example of an unordered list to make sure that looks good, too:\"}),\"\\n\",t(a.ul,{children:[\"\\n\",n(a.li,{children:\"So here is the first item in this list.\"}),\"\\n\",n(a.li,{children:\"In this example we're keeping the items short.\"}),\"\\n\",n(a.li,{children:\"Later, we'll use longer, more complex list items.\"}),\"\\n\"]}),\"\\n\",n(a.p,{children:\"And that's the end of this section.\"}),\"\\n\",t(a.h2,{id:\"what-if-we-stack-headings\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#what-if-we-stack-headings\",children:n(a.span,{className:\"icon icon-link\"})}),\"What if we stack headings?\"]}),\"\\n\",t(a.h3,{id:\"we-should-make-sure-that-looks-good-too\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#we-should-make-sure-that-looks-good-too\",children:n(a.span,{className:\"icon icon-link\"})}),\"We should make sure that looks good, too.\"]}),\"\\n\",n(a.p,{children:\"Sometimes you have headings directly underneath each other. In those cases you often have to undo the top margin on the second heading because it usually looks better for the headings to be closer together than a paragraph followed by a heading should be.\"}),\"\\n\",t(a.h3,{id:\"when-a-heading-comes-after-a-paragraph-\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#when-a-heading-comes-after-a-paragraph-\",children:n(a.span,{className:\"icon icon-link\"})}),\"When a heading comes after a paragraph …\"]}),\"\\n\",n(a.p,{children:\"When a heading comes after a paragraph, we need a bit more space, like I already mentioned above. Now let's see what a more complex list would look like.\"}),\"\\n\",t(a.ul,{children:[\"\\n\",t(a.li,{children:[\"\\n\",n(a.p,{children:n(a.strong,{children:\"I often do this thing where list items have headings.\"})}),\"\\n\",n(a.p,{children:\"For some reason I think this looks cool which is unfortunate because it's pretty annoying to get the styles right.\"}),\"\\n\",n(a.p,{children:\"I often have two or three paragraphs in these list items, too, so the hard part is getting the spacing between the paragraphs, list item heading, and separate list items to all make sense. Pretty tough honestly, you could make a strong argument that you just shouldn't write this way.\"}),\"\\n\"]}),\"\\n\",t(a.li,{children:[\"\\n\",n(a.p,{children:n(a.strong,{children:\"Since this is a list, I need at least two items.\"})}),\"\\n\",n(a.p,{children:\"I explained what I'm doing already in the previous list item, but a list wouldn't be a list if it only had one item, and we really want this to look realistic. That's why I've added this second list item so I actually have something to look at when writing the styles.\"}),\"\\n\"]}),\"\\n\",t(a.li,{children:[\"\\n\",n(a.p,{children:n(a.strong,{children:\"It's not a bad idea to add a third item either.\"})}),\"\\n\",n(a.p,{children:\"I think it probably would've been fine to just use two items but three is definitely not worse, and since I seem to be having no trouble making up arbitrary things to type, I might as well include it.\"}),\"\\n\"]}),\"\\n\"]}),\"\\n\",n(a.p,{children:\"After this sort of list I usually have a closing statement or paragraph, because it kinda looks weird jumping right to a heading.\"}),\"\\n\",t(a.h2,{id:\"code-should-look-okay-by-default\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#code-should-look-okay-by-default\",children:n(a.span,{className:\"icon icon-link\"})}),\"Code should look okay by default.\"]}),\"\\n\",t(a.p,{children:[\"I think most people are going to use \",n(a.a,{href:\"https://highlightjs.org/\",children:\"highlight.js\"}),\" or \",n(a.a,{href:\"https://prismjs.com/\",children:\"Prism\"}),\" or something if they want to style their code blocks but it wouldn't hurt to make them look \",n(a.em,{children:\"okay\"}),\" out of the box, even with no syntax highlighting.\"]}),\"\\n\",t(a.p,{children:[\"Here's what a default \",n(a.code,{children:\"tailwind.config.js\"}),\" file looks like at the time of writing:\"]}),\"\\n\",n(a.figure,{\"data-rehype-pretty-code-figure\":\"\",children:n(a.pre,{style:{backgroundColor:\"#24292e\",color:\"#e1e4e8\"},tabIndex:\"0\",\"data-language\":\"js\",\"data-theme\":\"github-dark\",children:t(a.code,{\"data-language\":\"js\",\"data-theme\":\"github-dark\",style:{display:\"grid\"},children:[t(a.span,{\"data-line\":\"\",children:[n(a.span,{style:{color:\"#79B8FF\"},children:\"module\"}),n(a.span,{style:{color:\"#E1E4E8\"},children:\".\"}),n(a.span,{style:{color:\"#79B8FF\"},children:\"exports\"}),n(a.span,{style:{color:\"#F97583\"},children:\" =\"}),n(a.span,{style:{color:\"#E1E4E8\"},children:\" {\"})]}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" purge: [],\"})}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" theme: {\"})}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" extend: {},\"})}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" },\"})}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" variants: {},\"})}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" plugins: [],\"})}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\"}\"})})]})})}),\"\\n\",n(a.p,{children:\"Hopefully that looks good enough to you.\"}),\"\\n\",t(a.h3,{id:\"what-about-nested-lists\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#what-about-nested-lists\",children:n(a.span,{className:\"icon icon-link\"})}),\"What about nested lists?\"]}),\"\\n\",n(a.p,{children:\"Nested lists basically always look bad which is why editors like Medium don't even let you do it, but I guess since some of you goofballs are going to do it we have to carry the burden of at least making it work.\"}),\"\\n\",t(a.ol,{children:[\"\\n\",t(a.li,{children:[n(a.strong,{children:\"Nested lists are rarely a good idea.\"}),\"\\n\",t(a.ul,{children:[\"\\n\",n(a.li,{children:'You might feel like you are being really \"organized\" or something but you are just creating a gross shape on the screen that is hard to read.'}),\"\\n\",n(a.li,{children:\"Nested navigation in UIs is a bad idea too, keep things as flat as possible.\"}),\"\\n\",n(a.li,{children:\"Nesting tons of folders in your source code is also not helpful.\"}),\"\\n\"]}),\"\\n\"]}),\"\\n\",t(a.li,{children:[n(a.strong,{children:\"Since we need to have more items, here's another one.\"}),\"\\n\",t(a.ul,{children:[\"\\n\",n(a.li,{children:\"I'm not sure if we'll bother styling more than two levels deep.\"}),\"\\n\",n(a.li,{children:\"Two is already too much, three is guaranteed to be a bad idea.\"}),\"\\n\",n(a.li,{children:\"If you nest four levels deep you belong in prison.\"}),\"\\n\"]}),\"\\n\"]}),\"\\n\",t(a.li,{children:[n(a.strong,{children:\"Two items isn't really a list, three is good though.\"}),\"\\n\",t(a.ul,{children:[\"\\n\",n(a.li,{children:\"Again please don't nest lists if you want people to actually read your content.\"}),\"\\n\",n(a.li,{children:\"Nobody wants to look at this.\"}),\"\\n\",n(a.li,{children:\"I'm upset that we even have to bother styling this.\"}),\"\\n\"]}),\"\\n\"]}),\"\\n\"]}),\"\\n\",t(a.p,{children:[\"The most annoying thing about lists in Markdown is that \",n(a.code,{children:\"

  • \"}),\" elements aren't given a child \",n(a.code,{children:\"

    \"}),\" tag unless there are multiple paragraphs in the list item. That means I have to worry about styling that annoying situation too.\"]}),\"\\n\",t(a.ul,{children:[\"\\n\",t(a.li,{children:[\"\\n\",n(a.p,{children:n(a.strong,{children:\"For example, here's another nested list.\"})}),\"\\n\",n(a.p,{children:\"But this time with a second paragraph.\"}),\"\\n\",t(a.ul,{children:[\"\\n\",t(a.li,{children:[\"These list items won't have \",n(a.code,{children:\"

    \"}),\" tags\"]}),\"\\n\",n(a.li,{children:\"Because they are only one line each\"}),\"\\n\"]}),\"\\n\"]}),\"\\n\",t(a.li,{children:[\"\\n\",n(a.p,{children:n(a.strong,{children:\"But in this second top-level list item, they will.\"})}),\"\\n\",n(a.p,{children:\"This is especially annoying because of the spacing on this paragraph.\"}),\"\\n\",t(a.ul,{children:[\"\\n\",t(a.li,{children:[\"\\n\",t(a.p,{children:[\"As you can see here, because I've added a second line, this list item now has a \",n(a.code,{children:\"

    \"}),\" tag.\"]}),\"\\n\",n(a.p,{children:\"This is the second line I'm talking about by the way.\"}),\"\\n\"]}),\"\\n\",t(a.li,{children:[\"\\n\",n(a.p,{children:\"Finally here's another list item so it's more like a list.\"}),\"\\n\"]}),\"\\n\"]}),\"\\n\"]}),\"\\n\",t(a.li,{children:[\"\\n\",n(a.p,{children:\"A closing list item, but with no nested list, because why not?\"}),\"\\n\"]}),\"\\n\"]}),\"\\n\",n(a.p,{children:\"And finally a sentence to close off this section.\"}),\"\\n\",t(a.h2,{id:\"there-are-other-elements-we-need-to-style\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#there-are-other-elements-we-need-to-style\",children:n(a.span,{className:\"icon icon-link\"})}),\"There are other elements we need to style\"]}),\"\\n\",t(a.p,{children:[\"I almost forgot to mention links, like \",n(a.a,{href:\"https://tailwindcss.com\",children:\"this link to the Tailwind CSS website\"}),\". We almost made them blue but that's so yesterday, so we went with dark gray, feels edgier.\"]}),\"\\n\",n(a.p,{children:\"We even included table styles, check it out:\"}),\"\\n\",t(a.table,{children:[n(a.thead,{children:t(a.tr,{children:[n(a.th,{children:\"Wrestler\"}),n(a.th,{children:\"Origin\"}),n(a.th,{children:\"Finisher\"})]})}),t(a.tbody,{children:[t(a.tr,{children:[n(a.td,{children:'Bret \"The Hitman\" Hart'}),n(a.td,{children:\"Calgary, AB\"}),n(a.td,{children:\"Sharpshooter\"})]}),t(a.tr,{children:[n(a.td,{children:\"Stone Cold Steve Austin\"}),n(a.td,{children:\"Austin, TX\"}),n(a.td,{children:\"Stone Cold Stunner\"})]}),t(a.tr,{children:[n(a.td,{children:\"Randy Savage\"}),n(a.td,{children:\"Sarasota, FL\"}),n(a.td,{children:\"Elbow Drop\"})]}),t(a.tr,{children:[n(a.td,{children:\"Vader\"}),n(a.td,{children:\"Boulder, CO\"}),n(a.td,{children:\"Vader Bomb\"})]}),t(a.tr,{children:[n(a.td,{children:\"Razor Ramon\"}),n(a.td,{children:\"Chuluota, FL\"}),n(a.td,{children:\"Razor's Edge\"})]})]})]}),\"\\n\",t(a.p,{children:[\"We also need to make sure inline code looks good, like if I wanted to talk about \",n(a.code,{children:\"\"}),\" elements or tell you the good news about \",n(a.code,{children:\"@tailwindcss/typography\"}),\".\"]}),\"\\n\",t(a.h3,{id:\"sometimes-i-even-use-code-in-headings\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#sometimes-i-even-use-code-in-headings\",children:n(a.span,{className:\"icon icon-link\"})}),\"Sometimes I even use \",n(a.code,{children:\"code\"}),\" in headings\"]}),\"\\n\",t(a.p,{children:[\"Even though it's probably a bad idea, and historically I've had a hard time making it look good. This \",n(a.em,{children:'\"wrap the code blocks in backticks\"'}),\" trick works pretty well though really.\"]}),\"\\n\",t(a.p,{children:[\"Another thing I've done in the past is put a \",n(a.code,{children:\"code\"}),\" tag inside of a link, like if I wanted to tell you about the \",n(a.a,{href:\"https://github.com/tailwindcss/docs\",children:n(a.code,{children:\"tailwindcss/docs\"})}),\" repository. I don't love that there is an underline below the backticks but it is absolutely not worth the madness it would require to avoid it.\"]}),\"\\n\",t(a.h4,{id:\"we-havent-used-an-h4-yet\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#we-havent-used-an-h4-yet\",children:n(a.span,{className:\"icon icon-link\"})}),\"We haven't used an \",n(a.code,{children:\"h4\"}),\" yet\"]}),\"\\n\",t(a.p,{children:[\"But now we have. Please don't use \",n(a.code,{children:\"h5\"}),\" or \",n(a.code,{children:\"h6\"}),\" in your content, Medium only supports two heading levels for a reason, you animals. I honestly considered using a \",n(a.code,{children:\"before\"}),\" pseudo-element to scream at you if you use an \",n(a.code,{children:\"h5\"}),\" or \",n(a.code,{children:\"h6\"}),\".\"]}),\"\\n\",t(a.p,{children:[\"We don't style them at all out of the box because \",n(a.code,{children:\"h4\"}),\" elements are already so small that they are the same size as the body copy. What are we supposed to do with an \",n(a.code,{children:\"h5\"}),\", make it \",n(a.em,{children:\"smaller\"}),\" than the body copy? No thanks.\"]}),\"\\n\",t(a.h3,{id:\"we-still-need-to-think-about-stacked-headings-though\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#we-still-need-to-think-about-stacked-headings-though\",children:n(a.span,{className:\"icon icon-link\"})}),\"We still need to think about stacked headings though.\"]}),\"\\n\",t(a.h4,{id:\"lets-make-sure-we-dont-screw-that-up-with-h4-elements-either\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#lets-make-sure-we-dont-screw-that-up-with-h4-elements-either\",children:n(a.span,{className:\"icon icon-link\"})}),\"Let's make sure we don't screw that up with \",n(a.code,{children:\"h4\"}),\" elements, either.\"]}),\"\\n\",n(a.p,{children:\"Phew, with any luck we have styled the headings above this text and they look pretty good.\"}),\"\\n\",n(a.p,{children:\"Let's add a closing paragraph here so things end with a decently sized block of text. I can't explain why I want things to end that way but I have to assume it's because I think things will look weird or unbalanced if there is a heading too close to the end of the document.\"}),\"\\n\",n(a.p,{children:\"What I've written here is probably long enough, but adding this final sentence can't hurt.\"}),\"\\n\",t(a.h2,{id:\"github-flavored-markdown\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#github-flavored-markdown\",children:n(a.span,{className:\"icon icon-link\"})}),\"GitHub Flavored Markdown\"]}),\"\\n\",t(a.p,{children:[\"I've also added support for GitHub Flavored Mardown using \",n(a.code,{children:\"remark-gfm\"}),\".\"]}),\"\\n\",t(a.p,{children:[\"With \",n(a.code,{children:\"remark-gfm\"}),\", we get a few extra features in our markdown. Example: autolink literals.\"]}),\"\\n\",t(a.p,{children:[\"A link like \",n(a.a,{href:\"http://www.example.com\",children:\"www.example.com\"}),\" or \",n(a.a,{href:\"https://example.com\",children:\"https://example.com\"}),\" would automatically be converted into an \",n(a.code,{children:\"a\"}),\" tag.\"]}),\"\\n\",t(a.p,{children:[\"This works for email links too: \",n(a.a,{href:\"mailto:contact@example.com\",children:\"contact@example.com\"}),\".\"]})]})}return{default:function(e={}){const{wrapper:t}=e.components||{};return t?n(t,{...e,children:n(_createMdxContent,{...e})}):_createMdxContent(e)}};function _missingMdxReference(e,n){throw new Error(\"Expected \"+(n?\"component\":\"object\")+\" `\"+e+\"` to be defined: you likely forgot to import, pass, or provide it.\")}", + "slug": "/D:\\Coding\\forks\\taxonomy\\content\\blog\\dynamic-routing-static-regeneration", + "slugAsParams": "" + }, + { + "title": "Preview Mode for Headless CMS", + "description": "How to implement preview mode in your headless CMS.", + "date": "2023-04-09T00:00:00.000Z", + "published": true, + "image": "/images/blog/blog-post-1.jpg", + "authors": [ + "shadcn" + ], + "body": "const{Fragment:e,jsx:n,jsxs:t}=arguments[0];function _createMdxContent(i){const a={a:\"a\",blockquote:\"blockquote\",code:\"code\",em:\"em\",figure:\"figure\",h2:\"h2\",h3:\"h3\",h4:\"h4\",hr:\"hr\",li:\"li\",ol:\"ol\",p:\"p\",pre:\"pre\",span:\"span\",strong:\"strong\",table:\"table\",tbody:\"tbody\",td:\"td\",th:\"th\",thead:\"thead\",tr:\"tr\",ul:\"ul\",...i.components},{Callout:o,Image:l}=a;return o||_missingMdxReference(\"Callout\",!0),l||_missingMdxReference(\"Image\",!0),t(e,{children:[n(o,{children:t(a.p,{children:[\"The text below is from the \",n(a.a,{href:\"https://play.tailwindcss.com/uj1vGACRJA?layout=preview\",children:\"Tailwind\\nCSS\"}),\" docs. I copied it\\nhere to test the markdown styles. \",n(a.strong,{children:\"Tailwind is awesome. You should use it.\"})]})}),\"\\n\",n(a.p,{children:\"Until now, trying to style an article, document, or blog post with Tailwind has been a tedious task that required a keen eye for typography and a lot of complex custom CSS.\"}),\"\\n\",t(a.p,{children:[\"By default, Tailwind removes all of the default browser styling from paragraphs, headings, lists and more. This ends up being really useful for building application UIs because you spend less time undoing user-agent styles, but when you \",n(a.em,{children:\"really are\"}),\" just trying to style some content that came from a rich-text editor in a CMS or a markdown file, it can be surprising and unintuitive.\"]}),\"\\n\",n(a.p,{children:\"We get lots of complaints about it actually, with people regularly asking us things like:\"}),\"\\n\",t(a.blockquote,{children:[\"\\n\",t(a.p,{children:[\"Why is Tailwind removing the default styles on my \",n(a.code,{children:\"h1\"}),\" elements? How do I disable this? What do you mean I lose all the other base styles too?\\nWe hear you, but we're not convinced that simply disabling our base styles is what you really want. You don't want to have to remove annoying margins every time you use a \",n(a.code,{children:\"p\"}),\" element in a piece of your dashboard UI. And I doubt you really want your blog posts to use the user-agent styles either — you want them to look \",n(a.em,{children:\"awesome\"}),\", not awful.\"]}),\"\\n\"]}),\"\\n\",t(a.p,{children:[\"The \",n(a.code,{children:\"@tailwindcss/typography\"}),\" plugin is our attempt to give you what you \",n(a.em,{children:\"actually\"}),\" want, without any of the downsides of doing something stupid like disabling our base styles.\"]}),\"\\n\",t(a.p,{children:[\"It adds a new \",n(a.code,{children:\"prose\"}),\" class that you can slap on any block of vanilla HTML content and turn it into a beautiful, well-formatted document:\"]}),\"\\n\",n(a.figure,{\"data-rehype-pretty-code-figure\":\"\",children:n(a.pre,{style:{backgroundColor:\"#24292e\",color:\"#e1e4e8\"},tabIndex:\"0\",\"data-language\":\"html\",\"data-theme\":\"github-dark\",children:t(a.code,{\"data-language\":\"html\",\"data-theme\":\"github-dark\",style:{display:\"grid\"},children:[t(a.span,{\"data-line\":\"\",children:[n(a.span,{style:{color:\"#E1E4E8\"},children:\"<\"}),n(a.span,{style:{color:\"#85E89D\"},children:\"article\"}),n(a.span,{style:{color:\"#B392F0\"},children:\" class\"}),n(a.span,{style:{color:\"#E1E4E8\"},children:\"=\"}),n(a.span,{style:{color:\"#9ECBFF\"},children:'\"prose\"'}),n(a.span,{style:{color:\"#E1E4E8\"},children:\">\"})]}),\"\\n\",t(a.span,{\"data-line\":\"\",children:[n(a.span,{style:{color:\"#E1E4E8\"},children:\" <\"}),n(a.span,{style:{color:\"#85E89D\"},children:\"h1\"}),n(a.span,{style:{color:\"#E1E4E8\"},children:\">Garlic bread with cheese: What the science tells us\"})]}),\"\\n\",t(a.span,{\"data-line\":\"\",children:[n(a.span,{style:{color:\"#E1E4E8\"},children:\" <\"}),n(a.span,{style:{color:\"#85E89D\"},children:\"p\"}),n(a.span,{style:{color:\"#E1E4E8\"},children:\">\"})]}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" For years parents have espoused the health benefits of eating garlic bread\"})}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" with cheese to their children, with the food earning such an iconic status\"})}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" in our culture that kids will often dress up as warm, cheesy loaf for\"})}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" Halloween.\"})}),\"\\n\",t(a.span,{\"data-line\":\"\",children:[n(a.span,{style:{color:\"#E1E4E8\"},children:\" \"})]}),\"\\n\",t(a.span,{\"data-line\":\"\",children:[n(a.span,{style:{color:\"#E1E4E8\"},children:\" <\"}),n(a.span,{style:{color:\"#85E89D\"},children:\"p\"}),n(a.span,{style:{color:\"#E1E4E8\"},children:\">\"})]}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" But a recent study shows that the celebrated appetizer may be linked to a\"})}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" series of rabies cases springing up around the country.\"})}),\"\\n\",t(a.span,{\"data-line\":\"\",children:[n(a.span,{style:{color:\"#E1E4E8\"},children:\" \"})]}),\"\\n\",t(a.span,{\"data-line\":\"\",children:[n(a.span,{style:{color:\"#E1E4E8\"},children:\"\"})]})]})})}),\"\\n\",t(a.p,{children:[\"For more information about how to use the plugin and the features it includes, \",n(a.a,{href:\"https://github.com/tailwindcss/typography/blob/master/README.md\",children:\"read the documentation\"}),\".\"]}),\"\\n\",n(a.hr,{}),\"\\n\",t(a.h2,{id:\"what-to-expect-from-here-on-out\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#what-to-expect-from-here-on-out\",children:n(a.span,{className:\"icon icon-link\"})}),\"What to expect from here on out\"]}),\"\\n\",t(a.p,{children:[\"What follows from here is just a bunch of absolute nonsense I've written to dogfood the plugin itself. It includes every sensible typographic element I could think of, like \",n(a.strong,{children:\"bold text\"}),\", unordered lists, ordered lists, code blocks, block quotes, \",n(a.em,{children:\"and even italics\"}),\".\"]}),\"\\n\",n(a.p,{children:\"It's important to cover all of these use cases for a few reasons:\"}),\"\\n\",t(a.ol,{children:[\"\\n\",n(a.li,{children:\"We want everything to look good out of the box.\"}),\"\\n\",n(a.li,{children:\"Really just the first reason, that's the whole point of the plugin.\"}),\"\\n\",n(a.li,{children:\"Here's a third pretend reason though a list with three items looks more realistic than a list with two items.\"}),\"\\n\"]}),\"\\n\",n(a.p,{children:\"Now we're going to try out another header style.\"}),\"\\n\",t(a.h3,{id:\"typography-should-be-easy\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#typography-should-be-easy\",children:n(a.span,{className:\"icon icon-link\"})}),\"Typography should be easy\"]}),\"\\n\",n(a.p,{children:\"So that's a header for you — with any luck if we've done our job correctly that will look pretty reasonable.\"}),\"\\n\",n(a.p,{children:\"Something a wise person once told me about typography is:\"}),\"\\n\",t(a.blockquote,{children:[\"\\n\",n(a.p,{children:\"Typography is pretty important if you don't want your stuff to look like trash. Make it good then it won't be bad.\"}),\"\\n\"]}),\"\\n\",n(a.p,{children:\"It's probably important that images look okay here by default as well:\"}),\"\\n\",n(l,{src:\"/images/blog/blog-post-4.jpg\",width:\"718\",height:\"404\",alt:\"Image\"}),\"\\n\",n(a.p,{children:\"Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old.\"}),\"\\n\",n(a.p,{children:\"Now I'm going to show you an example of an unordered list to make sure that looks good, too:\"}),\"\\n\",t(a.ul,{children:[\"\\n\",n(a.li,{children:\"So here is the first item in this list.\"}),\"\\n\",n(a.li,{children:\"In this example we're keeping the items short.\"}),\"\\n\",n(a.li,{children:\"Later, we'll use longer, more complex list items.\"}),\"\\n\"]}),\"\\n\",n(a.p,{children:\"And that's the end of this section.\"}),\"\\n\",t(a.h2,{id:\"what-if-we-stack-headings\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#what-if-we-stack-headings\",children:n(a.span,{className:\"icon icon-link\"})}),\"What if we stack headings?\"]}),\"\\n\",t(a.h3,{id:\"we-should-make-sure-that-looks-good-too\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#we-should-make-sure-that-looks-good-too\",children:n(a.span,{className:\"icon icon-link\"})}),\"We should make sure that looks good, too.\"]}),\"\\n\",n(a.p,{children:\"Sometimes you have headings directly underneath each other. In those cases you often have to undo the top margin on the second heading because it usually looks better for the headings to be closer together than a paragraph followed by a heading should be.\"}),\"\\n\",t(a.h3,{id:\"when-a-heading-comes-after-a-paragraph-\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#when-a-heading-comes-after-a-paragraph-\",children:n(a.span,{className:\"icon icon-link\"})}),\"When a heading comes after a paragraph …\"]}),\"\\n\",n(a.p,{children:\"When a heading comes after a paragraph, we need a bit more space, like I already mentioned above. Now let's see what a more complex list would look like.\"}),\"\\n\",t(a.ul,{children:[\"\\n\",t(a.li,{children:[\"\\n\",n(a.p,{children:n(a.strong,{children:\"I often do this thing where list items have headings.\"})}),\"\\n\",n(a.p,{children:\"For some reason I think this looks cool which is unfortunate because it's pretty annoying to get the styles right.\"}),\"\\n\",n(a.p,{children:\"I often have two or three paragraphs in these list items, too, so the hard part is getting the spacing between the paragraphs, list item heading, and separate list items to all make sense. Pretty tough honestly, you could make a strong argument that you just shouldn't write this way.\"}),\"\\n\"]}),\"\\n\",t(a.li,{children:[\"\\n\",n(a.p,{children:n(a.strong,{children:\"Since this is a list, I need at least two items.\"})}),\"\\n\",n(a.p,{children:\"I explained what I'm doing already in the previous list item, but a list wouldn't be a list if it only had one item, and we really want this to look realistic. That's why I've added this second list item so I actually have something to look at when writing the styles.\"}),\"\\n\"]}),\"\\n\",t(a.li,{children:[\"\\n\",n(a.p,{children:n(a.strong,{children:\"It's not a bad idea to add a third item either.\"})}),\"\\n\",n(a.p,{children:\"I think it probably would've been fine to just use two items but three is definitely not worse, and since I seem to be having no trouble making up arbitrary things to type, I might as well include it.\"}),\"\\n\"]}),\"\\n\"]}),\"\\n\",n(a.p,{children:\"After this sort of list I usually have a closing statement or paragraph, because it kinda looks weird jumping right to a heading.\"}),\"\\n\",t(a.h2,{id:\"code-should-look-okay-by-default\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#code-should-look-okay-by-default\",children:n(a.span,{className:\"icon icon-link\"})}),\"Code should look okay by default.\"]}),\"\\n\",t(a.p,{children:[\"I think most people are going to use \",n(a.a,{href:\"https://highlightjs.org/\",children:\"highlight.js\"}),\" or \",n(a.a,{href:\"https://prismjs.com/\",children:\"Prism\"}),\" or something if they want to style their code blocks but it wouldn't hurt to make them look \",n(a.em,{children:\"okay\"}),\" out of the box, even with no syntax highlighting.\"]}),\"\\n\",t(a.p,{children:[\"Here's what a default \",n(a.code,{children:\"tailwind.config.js\"}),\" file looks like at the time of writing:\"]}),\"\\n\",n(a.figure,{\"data-rehype-pretty-code-figure\":\"\",children:n(a.pre,{style:{backgroundColor:\"#24292e\",color:\"#e1e4e8\"},tabIndex:\"0\",\"data-language\":\"js\",\"data-theme\":\"github-dark\",children:t(a.code,{\"data-language\":\"js\",\"data-theme\":\"github-dark\",style:{display:\"grid\"},children:[t(a.span,{\"data-line\":\"\",children:[n(a.span,{style:{color:\"#79B8FF\"},children:\"module\"}),n(a.span,{style:{color:\"#E1E4E8\"},children:\".\"}),n(a.span,{style:{color:\"#79B8FF\"},children:\"exports\"}),n(a.span,{style:{color:\"#F97583\"},children:\" =\"}),n(a.span,{style:{color:\"#E1E4E8\"},children:\" {\"})]}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" purge: [],\"})}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" theme: {\"})}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" extend: {},\"})}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" },\"})}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" variants: {},\"})}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" plugins: [],\"})}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\"}\"})})]})})}),\"\\n\",n(a.p,{children:\"Hopefully that looks good enough to you.\"}),\"\\n\",t(a.h3,{id:\"what-about-nested-lists\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#what-about-nested-lists\",children:n(a.span,{className:\"icon icon-link\"})}),\"What about nested lists?\"]}),\"\\n\",n(a.p,{children:\"Nested lists basically always look bad which is why editors like Medium don't even let you do it, but I guess since some of you goofballs are going to do it we have to carry the burden of at least making it work.\"}),\"\\n\",t(a.ol,{children:[\"\\n\",t(a.li,{children:[n(a.strong,{children:\"Nested lists are rarely a good idea.\"}),\"\\n\",t(a.ul,{children:[\"\\n\",n(a.li,{children:'You might feel like you are being really \"organized\" or something but you are just creating a gross shape on the screen that is hard to read.'}),\"\\n\",n(a.li,{children:\"Nested navigation in UIs is a bad idea too, keep things as flat as possible.\"}),\"\\n\",n(a.li,{children:\"Nesting tons of folders in your source code is also not helpful.\"}),\"\\n\"]}),\"\\n\"]}),\"\\n\",t(a.li,{children:[n(a.strong,{children:\"Since we need to have more items, here's another one.\"}),\"\\n\",t(a.ul,{children:[\"\\n\",n(a.li,{children:\"I'm not sure if we'll bother styling more than two levels deep.\"}),\"\\n\",n(a.li,{children:\"Two is already too much, three is guaranteed to be a bad idea.\"}),\"\\n\",n(a.li,{children:\"If you nest four levels deep you belong in prison.\"}),\"\\n\"]}),\"\\n\"]}),\"\\n\",t(a.li,{children:[n(a.strong,{children:\"Two items isn't really a list, three is good though.\"}),\"\\n\",t(a.ul,{children:[\"\\n\",n(a.li,{children:\"Again please don't nest lists if you want people to actually read your content.\"}),\"\\n\",n(a.li,{children:\"Nobody wants to look at this.\"}),\"\\n\",n(a.li,{children:\"I'm upset that we even have to bother styling this.\"}),\"\\n\"]}),\"\\n\"]}),\"\\n\"]}),\"\\n\",t(a.p,{children:[\"The most annoying thing about lists in Markdown is that \",n(a.code,{children:\"

  • \"}),\" elements aren't given a child \",n(a.code,{children:\"

    \"}),\" tag unless there are multiple paragraphs in the list item. That means I have to worry about styling that annoying situation too.\"]}),\"\\n\",t(a.ul,{children:[\"\\n\",t(a.li,{children:[\"\\n\",n(a.p,{children:n(a.strong,{children:\"For example, here's another nested list.\"})}),\"\\n\",n(a.p,{children:\"But this time with a second paragraph.\"}),\"\\n\",t(a.ul,{children:[\"\\n\",t(a.li,{children:[\"These list items won't have \",n(a.code,{children:\"

    \"}),\" tags\"]}),\"\\n\",n(a.li,{children:\"Because they are only one line each\"}),\"\\n\"]}),\"\\n\"]}),\"\\n\",t(a.li,{children:[\"\\n\",n(a.p,{children:n(a.strong,{children:\"But in this second top-level list item, they will.\"})}),\"\\n\",n(a.p,{children:\"This is especially annoying because of the spacing on this paragraph.\"}),\"\\n\",t(a.ul,{children:[\"\\n\",t(a.li,{children:[\"\\n\",t(a.p,{children:[\"As you can see here, because I've added a second line, this list item now has a \",n(a.code,{children:\"

    \"}),\" tag.\"]}),\"\\n\",n(a.p,{children:\"This is the second line I'm talking about by the way.\"}),\"\\n\"]}),\"\\n\",t(a.li,{children:[\"\\n\",n(a.p,{children:\"Finally here's another list item so it's more like a list.\"}),\"\\n\"]}),\"\\n\"]}),\"\\n\"]}),\"\\n\",t(a.li,{children:[\"\\n\",n(a.p,{children:\"A closing list item, but with no nested list, because why not?\"}),\"\\n\"]}),\"\\n\"]}),\"\\n\",n(a.p,{children:\"And finally a sentence to close off this section.\"}),\"\\n\",t(a.h2,{id:\"there-are-other-elements-we-need-to-style\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#there-are-other-elements-we-need-to-style\",children:n(a.span,{className:\"icon icon-link\"})}),\"There are other elements we need to style\"]}),\"\\n\",t(a.p,{children:[\"I almost forgot to mention links, like \",n(a.a,{href:\"https://tailwindcss.com\",children:\"this link to the Tailwind CSS website\"}),\". We almost made them blue but that's so yesterday, so we went with dark gray, feels edgier.\"]}),\"\\n\",n(a.p,{children:\"We even included table styles, check it out:\"}),\"\\n\",t(a.table,{children:[n(a.thead,{children:t(a.tr,{children:[n(a.th,{children:\"Wrestler\"}),n(a.th,{children:\"Origin\"}),n(a.th,{children:\"Finisher\"})]})}),t(a.tbody,{children:[t(a.tr,{children:[n(a.td,{children:'Bret \"The Hitman\" Hart'}),n(a.td,{children:\"Calgary, AB\"}),n(a.td,{children:\"Sharpshooter\"})]}),t(a.tr,{children:[n(a.td,{children:\"Stone Cold Steve Austin\"}),n(a.td,{children:\"Austin, TX\"}),n(a.td,{children:\"Stone Cold Stunner\"})]}),t(a.tr,{children:[n(a.td,{children:\"Randy Savage\"}),n(a.td,{children:\"Sarasota, FL\"}),n(a.td,{children:\"Elbow Drop\"})]}),t(a.tr,{children:[n(a.td,{children:\"Vader\"}),n(a.td,{children:\"Boulder, CO\"}),n(a.td,{children:\"Vader Bomb\"})]}),t(a.tr,{children:[n(a.td,{children:\"Razor Ramon\"}),n(a.td,{children:\"Chuluota, FL\"}),n(a.td,{children:\"Razor's Edge\"})]})]})]}),\"\\n\",t(a.p,{children:[\"We also need to make sure inline code looks good, like if I wanted to talk about \",n(a.code,{children:\"\"}),\" elements or tell you the good news about \",n(a.code,{children:\"@tailwindcss/typography\"}),\".\"]}),\"\\n\",t(a.h3,{id:\"sometimes-i-even-use-code-in-headings\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#sometimes-i-even-use-code-in-headings\",children:n(a.span,{className:\"icon icon-link\"})}),\"Sometimes I even use \",n(a.code,{children:\"code\"}),\" in headings\"]}),\"\\n\",t(a.p,{children:[\"Even though it's probably a bad idea, and historically I've had a hard time making it look good. This \",n(a.em,{children:'\"wrap the code blocks in backticks\"'}),\" trick works pretty well though really.\"]}),\"\\n\",t(a.p,{children:[\"Another thing I've done in the past is put a \",n(a.code,{children:\"code\"}),\" tag inside of a link, like if I wanted to tell you about the \",n(a.a,{href:\"https://github.com/tailwindcss/docs\",children:n(a.code,{children:\"tailwindcss/docs\"})}),\" repository. I don't love that there is an underline below the backticks but it is absolutely not worth the madness it would require to avoid it.\"]}),\"\\n\",t(a.h4,{id:\"we-havent-used-an-h4-yet\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#we-havent-used-an-h4-yet\",children:n(a.span,{className:\"icon icon-link\"})}),\"We haven't used an \",n(a.code,{children:\"h4\"}),\" yet\"]}),\"\\n\",t(a.p,{children:[\"But now we have. Please don't use \",n(a.code,{children:\"h5\"}),\" or \",n(a.code,{children:\"h6\"}),\" in your content, Medium only supports two heading levels for a reason, you animals. I honestly considered using a \",n(a.code,{children:\"before\"}),\" pseudo-element to scream at you if you use an \",n(a.code,{children:\"h5\"}),\" or \",n(a.code,{children:\"h6\"}),\".\"]}),\"\\n\",t(a.p,{children:[\"We don't style them at all out of the box because \",n(a.code,{children:\"h4\"}),\" elements are already so small that they are the same size as the body copy. What are we supposed to do with an \",n(a.code,{children:\"h5\"}),\", make it \",n(a.em,{children:\"smaller\"}),\" than the body copy? No thanks.\"]}),\"\\n\",t(a.h3,{id:\"we-still-need-to-think-about-stacked-headings-though\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#we-still-need-to-think-about-stacked-headings-though\",children:n(a.span,{className:\"icon icon-link\"})}),\"We still need to think about stacked headings though.\"]}),\"\\n\",t(a.h4,{id:\"lets-make-sure-we-dont-screw-that-up-with-h4-elements-either\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#lets-make-sure-we-dont-screw-that-up-with-h4-elements-either\",children:n(a.span,{className:\"icon icon-link\"})}),\"Let's make sure we don't screw that up with \",n(a.code,{children:\"h4\"}),\" elements, either.\"]}),\"\\n\",n(a.p,{children:\"Phew, with any luck we have styled the headings above this text and they look pretty good.\"}),\"\\n\",n(a.p,{children:\"Let's add a closing paragraph here so things end with a decently sized block of text. I can't explain why I want things to end that way but I have to assume it's because I think things will look weird or unbalanced if there is a heading too close to the end of the document.\"}),\"\\n\",n(a.p,{children:\"What I've written here is probably long enough, but adding this final sentence can't hurt.\"}),\"\\n\",t(a.h2,{id:\"github-flavored-markdown\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#github-flavored-markdown\",children:n(a.span,{className:\"icon icon-link\"})}),\"GitHub Flavored Markdown\"]}),\"\\n\",t(a.p,{children:[\"I've also added support for GitHub Flavored Mardown using \",n(a.code,{children:\"remark-gfm\"}),\".\"]}),\"\\n\",t(a.p,{children:[\"With \",n(a.code,{children:\"remark-gfm\"}),\", we get a few extra features in our markdown. Example: autolink literals.\"]}),\"\\n\",t(a.p,{children:[\"A link like \",n(a.a,{href:\"http://www.example.com\",children:\"www.example.com\"}),\" or \",n(a.a,{href:\"https://example.com\",children:\"https://example.com\"}),\" would automatically be converted into an \",n(a.code,{children:\"a\"}),\" tag.\"]}),\"\\n\",t(a.p,{children:[\"This works for email links too: \",n(a.a,{href:\"mailto:contact@example.com\",children:\"contact@example.com\"}),\".\"]})]})}return{default:function(e={}){const{wrapper:t}=e.components||{};return t?n(t,{...e,children:n(_createMdxContent,{...e})}):_createMdxContent(e)}};function _missingMdxReference(e,n){throw new Error(\"Expected \"+(n?\"component\":\"object\")+\" `\"+e+\"` to be defined: you likely forgot to import, pass, or provide it.\")}", + "slug": "/D:\\Coding\\forks\\taxonomy\\content\\blog\\preview-mode-headless-cms", + "slugAsParams": "" + }, + { + "title": "Server and Client Components", + "description": "React Server Components allow developers to build applications that span the server and client.", + "date": "2023-01-08T00:00:00.000Z", + "published": true, + "image": "/images/blog/blog-post-4.jpg", + "authors": [ + "shadcn" + ], + "body": "const{Fragment:e,jsx:n,jsxs:t}=arguments[0];function _createMdxContent(i){const a={a:\"a\",blockquote:\"blockquote\",code:\"code\",em:\"em\",figure:\"figure\",h2:\"h2\",h3:\"h3\",h4:\"h4\",hr:\"hr\",li:\"li\",ol:\"ol\",p:\"p\",pre:\"pre\",span:\"span\",strong:\"strong\",table:\"table\",tbody:\"tbody\",td:\"td\",th:\"th\",thead:\"thead\",tr:\"tr\",ul:\"ul\",...i.components},{Callout:o,Image:l}=a;return o||_missingMdxReference(\"Callout\",!0),l||_missingMdxReference(\"Image\",!0),t(e,{children:[n(o,{children:t(a.p,{children:[\"The text below is from the \",n(a.a,{href:\"https://play.tailwindcss.com/uj1vGACRJA?layout=preview\",children:\"Tailwind\\nCSS\"}),\" docs. I copied it\\nhere to test the markdown styles. \",n(a.strong,{children:\"Tailwind is awesome. You should use it.\"})]})}),\"\\n\",n(a.p,{children:\"Until now, trying to style an article, document, or blog post with Tailwind has been a tedious task that required a keen eye for typography and a lot of complex custom CSS.\"}),\"\\n\",t(a.p,{children:[\"By default, Tailwind removes all of the default browser styling from paragraphs, headings, lists and more. This ends up being really useful for building application UIs because you spend less time undoing user-agent styles, but when you \",n(a.em,{children:\"really are\"}),\" just trying to style some content that came from a rich-text editor in a CMS or a markdown file, it can be surprising and unintuitive.\"]}),\"\\n\",n(a.p,{children:\"We get lots of complaints about it actually, with people regularly asking us things like:\"}),\"\\n\",t(a.blockquote,{children:[\"\\n\",t(a.p,{children:[\"Why is Tailwind removing the default styles on my \",n(a.code,{children:\"h1\"}),\" elements? How do I disable this? What do you mean I lose all the other base styles too?\\nWe hear you, but we're not convinced that simply disabling our base styles is what you really want. You don't want to have to remove annoying margins every time you use a \",n(a.code,{children:\"p\"}),\" element in a piece of your dashboard UI. And I doubt you really want your blog posts to use the user-agent styles either — you want them to look \",n(a.em,{children:\"awesome\"}),\", not awful.\"]}),\"\\n\"]}),\"\\n\",t(a.p,{children:[\"The \",n(a.code,{children:\"@tailwindcss/typography\"}),\" plugin is our attempt to give you what you \",n(a.em,{children:\"actually\"}),\" want, without any of the downsides of doing something stupid like disabling our base styles.\"]}),\"\\n\",t(a.p,{children:[\"It adds a new \",n(a.code,{children:\"prose\"}),\" class that you can slap on any block of vanilla HTML content and turn it into a beautiful, well-formatted document:\"]}),\"\\n\",n(a.figure,{\"data-rehype-pretty-code-figure\":\"\",children:n(a.pre,{style:{backgroundColor:\"#24292e\",color:\"#e1e4e8\"},tabIndex:\"0\",\"data-language\":\"html\",\"data-theme\":\"github-dark\",children:t(a.code,{\"data-language\":\"html\",\"data-theme\":\"github-dark\",style:{display:\"grid\"},children:[t(a.span,{\"data-line\":\"\",children:[n(a.span,{style:{color:\"#E1E4E8\"},children:\"<\"}),n(a.span,{style:{color:\"#85E89D\"},children:\"article\"}),n(a.span,{style:{color:\"#B392F0\"},children:\" class\"}),n(a.span,{style:{color:\"#E1E4E8\"},children:\"=\"}),n(a.span,{style:{color:\"#9ECBFF\"},children:'\"prose\"'}),n(a.span,{style:{color:\"#E1E4E8\"},children:\">\"})]}),\"\\n\",t(a.span,{\"data-line\":\"\",children:[n(a.span,{style:{color:\"#E1E4E8\"},children:\" <\"}),n(a.span,{style:{color:\"#85E89D\"},children:\"h1\"}),n(a.span,{style:{color:\"#E1E4E8\"},children:\">Garlic bread with cheese: What the science tells us\"})]}),\"\\n\",t(a.span,{\"data-line\":\"\",children:[n(a.span,{style:{color:\"#E1E4E8\"},children:\" <\"}),n(a.span,{style:{color:\"#85E89D\"},children:\"p\"}),n(a.span,{style:{color:\"#E1E4E8\"},children:\">\"})]}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" For years parents have espoused the health benefits of eating garlic bread\"})}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" with cheese to their children, with the food earning such an iconic status\"})}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" in our culture that kids will often dress up as warm, cheesy loaf for\"})}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" Halloween.\"})}),\"\\n\",t(a.span,{\"data-line\":\"\",children:[n(a.span,{style:{color:\"#E1E4E8\"},children:\" \"})]}),\"\\n\",t(a.span,{\"data-line\":\"\",children:[n(a.span,{style:{color:\"#E1E4E8\"},children:\" <\"}),n(a.span,{style:{color:\"#85E89D\"},children:\"p\"}),n(a.span,{style:{color:\"#E1E4E8\"},children:\">\"})]}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" But a recent study shows that the celebrated appetizer may be linked to a\"})}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" series of rabies cases springing up around the country.\"})}),\"\\n\",t(a.span,{\"data-line\":\"\",children:[n(a.span,{style:{color:\"#E1E4E8\"},children:\" \"})]}),\"\\n\",t(a.span,{\"data-line\":\"\",children:[n(a.span,{style:{color:\"#E1E4E8\"},children:\"\"})]})]})})}),\"\\n\",t(a.p,{children:[\"For more information about how to use the plugin and the features it includes, \",n(a.a,{href:\"https://github.com/tailwindcss/typography/blob/master/README.md\",children:\"read the documentation\"}),\".\"]}),\"\\n\",n(a.hr,{}),\"\\n\",t(a.h2,{id:\"what-to-expect-from-here-on-out\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#what-to-expect-from-here-on-out\",children:n(a.span,{className:\"icon icon-link\"})}),\"What to expect from here on out\"]}),\"\\n\",t(a.p,{children:[\"What follows from here is just a bunch of absolute nonsense I've written to dogfood the plugin itself. It includes every sensible typographic element I could think of, like \",n(a.strong,{children:\"bold text\"}),\", unordered lists, ordered lists, code blocks, block quotes, \",n(a.em,{children:\"and even italics\"}),\".\"]}),\"\\n\",n(a.p,{children:\"It's important to cover all of these use cases for a few reasons:\"}),\"\\n\",t(a.ol,{children:[\"\\n\",n(a.li,{children:\"We want everything to look good out of the box.\"}),\"\\n\",n(a.li,{children:\"Really just the first reason, that's the whole point of the plugin.\"}),\"\\n\",n(a.li,{children:\"Here's a third pretend reason though a list with three items looks more realistic than a list with two items.\"}),\"\\n\"]}),\"\\n\",n(a.p,{children:\"Now we're going to try out another header style.\"}),\"\\n\",t(a.h3,{id:\"typography-should-be-easy\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#typography-should-be-easy\",children:n(a.span,{className:\"icon icon-link\"})}),\"Typography should be easy\"]}),\"\\n\",n(a.p,{children:\"So that's a header for you — with any luck if we've done our job correctly that will look pretty reasonable.\"}),\"\\n\",n(a.p,{children:\"Something a wise person once told me about typography is:\"}),\"\\n\",t(a.blockquote,{children:[\"\\n\",n(a.p,{children:\"Typography is pretty important if you don't want your stuff to look like trash. Make it good then it won't be bad.\"}),\"\\n\"]}),\"\\n\",n(a.p,{children:\"It's probably important that images look okay here by default as well:\"}),\"\\n\",n(l,{src:\"/images/blog/blog-post-4.jpg\",width:\"718\",height:\"404\",alt:\"Image\"}),\"\\n\",n(a.p,{children:\"Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old.\"}),\"\\n\",n(a.p,{children:\"Now I'm going to show you an example of an unordered list to make sure that looks good, too:\"}),\"\\n\",t(a.ul,{children:[\"\\n\",n(a.li,{children:\"So here is the first item in this list.\"}),\"\\n\",n(a.li,{children:\"In this example we're keeping the items short.\"}),\"\\n\",n(a.li,{children:\"Later, we'll use longer, more complex list items.\"}),\"\\n\"]}),\"\\n\",n(a.p,{children:\"And that's the end of this section.\"}),\"\\n\",t(a.h2,{id:\"what-if-we-stack-headings\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#what-if-we-stack-headings\",children:n(a.span,{className:\"icon icon-link\"})}),\"What if we stack headings?\"]}),\"\\n\",t(a.h3,{id:\"we-should-make-sure-that-looks-good-too\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#we-should-make-sure-that-looks-good-too\",children:n(a.span,{className:\"icon icon-link\"})}),\"We should make sure that looks good, too.\"]}),\"\\n\",n(a.p,{children:\"Sometimes you have headings directly underneath each other. In those cases you often have to undo the top margin on the second heading because it usually looks better for the headings to be closer together than a paragraph followed by a heading should be.\"}),\"\\n\",t(a.h3,{id:\"when-a-heading-comes-after-a-paragraph-\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#when-a-heading-comes-after-a-paragraph-\",children:n(a.span,{className:\"icon icon-link\"})}),\"When a heading comes after a paragraph …\"]}),\"\\n\",n(a.p,{children:\"When a heading comes after a paragraph, we need a bit more space, like I already mentioned above. Now let's see what a more complex list would look like.\"}),\"\\n\",t(a.ul,{children:[\"\\n\",t(a.li,{children:[\"\\n\",n(a.p,{children:n(a.strong,{children:\"I often do this thing where list items have headings.\"})}),\"\\n\",n(a.p,{children:\"For some reason I think this looks cool which is unfortunate because it's pretty annoying to get the styles right.\"}),\"\\n\",n(a.p,{children:\"I often have two or three paragraphs in these list items, too, so the hard part is getting the spacing between the paragraphs, list item heading, and separate list items to all make sense. Pretty tough honestly, you could make a strong argument that you just shouldn't write this way.\"}),\"\\n\"]}),\"\\n\",t(a.li,{children:[\"\\n\",n(a.p,{children:n(a.strong,{children:\"Since this is a list, I need at least two items.\"})}),\"\\n\",n(a.p,{children:\"I explained what I'm doing already in the previous list item, but a list wouldn't be a list if it only had one item, and we really want this to look realistic. That's why I've added this second list item so I actually have something to look at when writing the styles.\"}),\"\\n\"]}),\"\\n\",t(a.li,{children:[\"\\n\",n(a.p,{children:n(a.strong,{children:\"It's not a bad idea to add a third item either.\"})}),\"\\n\",n(a.p,{children:\"I think it probably would've been fine to just use two items but three is definitely not worse, and since I seem to be having no trouble making up arbitrary things to type, I might as well include it.\"}),\"\\n\"]}),\"\\n\"]}),\"\\n\",n(a.p,{children:\"After this sort of list I usually have a closing statement or paragraph, because it kinda looks weird jumping right to a heading.\"}),\"\\n\",t(a.h2,{id:\"code-should-look-okay-by-default\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#code-should-look-okay-by-default\",children:n(a.span,{className:\"icon icon-link\"})}),\"Code should look okay by default.\"]}),\"\\n\",t(a.p,{children:[\"I think most people are going to use \",n(a.a,{href:\"https://highlightjs.org/\",children:\"highlight.js\"}),\" or \",n(a.a,{href:\"https://prismjs.com/\",children:\"Prism\"}),\" or something if they want to style their code blocks but it wouldn't hurt to make them look \",n(a.em,{children:\"okay\"}),\" out of the box, even with no syntax highlighting.\"]}),\"\\n\",t(a.p,{children:[\"Here's what a default \",n(a.code,{children:\"tailwind.config.js\"}),\" file looks like at the time of writing:\"]}),\"\\n\",n(a.figure,{\"data-rehype-pretty-code-figure\":\"\",children:n(a.pre,{style:{backgroundColor:\"#24292e\",color:\"#e1e4e8\"},tabIndex:\"0\",\"data-language\":\"js\",\"data-theme\":\"github-dark\",children:t(a.code,{\"data-language\":\"js\",\"data-theme\":\"github-dark\",style:{display:\"grid\"},children:[t(a.span,{\"data-line\":\"\",children:[n(a.span,{style:{color:\"#79B8FF\"},children:\"module\"}),n(a.span,{style:{color:\"#E1E4E8\"},children:\".\"}),n(a.span,{style:{color:\"#79B8FF\"},children:\"exports\"}),n(a.span,{style:{color:\"#F97583\"},children:\" =\"}),n(a.span,{style:{color:\"#E1E4E8\"},children:\" {\"})]}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" purge: [],\"})}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" theme: {\"})}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" extend: {},\"})}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" },\"})}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" variants: {},\"})}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" plugins: [],\"})}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\"}\"})})]})})}),\"\\n\",n(a.p,{children:\"Hopefully that looks good enough to you.\"}),\"\\n\",t(a.h3,{id:\"what-about-nested-lists\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#what-about-nested-lists\",children:n(a.span,{className:\"icon icon-link\"})}),\"What about nested lists?\"]}),\"\\n\",n(a.p,{children:\"Nested lists basically always look bad which is why editors like Medium don't even let you do it, but I guess since some of you goofballs are going to do it we have to carry the burden of at least making it work.\"}),\"\\n\",t(a.ol,{children:[\"\\n\",t(a.li,{children:[n(a.strong,{children:\"Nested lists are rarely a good idea.\"}),\"\\n\",t(a.ul,{children:[\"\\n\",n(a.li,{children:'You might feel like you are being really \"organized\" or something but you are just creating a gross shape on the screen that is hard to read.'}),\"\\n\",n(a.li,{children:\"Nested navigation in UIs is a bad idea too, keep things as flat as possible.\"}),\"\\n\",n(a.li,{children:\"Nesting tons of folders in your source code is also not helpful.\"}),\"\\n\"]}),\"\\n\"]}),\"\\n\",t(a.li,{children:[n(a.strong,{children:\"Since we need to have more items, here's another one.\"}),\"\\n\",t(a.ul,{children:[\"\\n\",n(a.li,{children:\"I'm not sure if we'll bother styling more than two levels deep.\"}),\"\\n\",n(a.li,{children:\"Two is already too much, three is guaranteed to be a bad idea.\"}),\"\\n\",n(a.li,{children:\"If you nest four levels deep you belong in prison.\"}),\"\\n\"]}),\"\\n\"]}),\"\\n\",t(a.li,{children:[n(a.strong,{children:\"Two items isn't really a list, three is good though.\"}),\"\\n\",t(a.ul,{children:[\"\\n\",n(a.li,{children:\"Again please don't nest lists if you want people to actually read your content.\"}),\"\\n\",n(a.li,{children:\"Nobody wants to look at this.\"}),\"\\n\",n(a.li,{children:\"I'm upset that we even have to bother styling this.\"}),\"\\n\"]}),\"\\n\"]}),\"\\n\"]}),\"\\n\",t(a.p,{children:[\"The most annoying thing about lists in Markdown is that \",n(a.code,{children:\"

  • \"}),\" elements aren't given a child \",n(a.code,{children:\"

    \"}),\" tag unless there are multiple paragraphs in the list item. That means I have to worry about styling that annoying situation too.\"]}),\"\\n\",t(a.ul,{children:[\"\\n\",t(a.li,{children:[\"\\n\",n(a.p,{children:n(a.strong,{children:\"For example, here's another nested list.\"})}),\"\\n\",n(a.p,{children:\"But this time with a second paragraph.\"}),\"\\n\",t(a.ul,{children:[\"\\n\",t(a.li,{children:[\"These list items won't have \",n(a.code,{children:\"

    \"}),\" tags\"]}),\"\\n\",n(a.li,{children:\"Because they are only one line each\"}),\"\\n\"]}),\"\\n\"]}),\"\\n\",t(a.li,{children:[\"\\n\",n(a.p,{children:n(a.strong,{children:\"But in this second top-level list item, they will.\"})}),\"\\n\",n(a.p,{children:\"This is especially annoying because of the spacing on this paragraph.\"}),\"\\n\",t(a.ul,{children:[\"\\n\",t(a.li,{children:[\"\\n\",t(a.p,{children:[\"As you can see here, because I've added a second line, this list item now has a \",n(a.code,{children:\"

    \"}),\" tag.\"]}),\"\\n\",n(a.p,{children:\"This is the second line I'm talking about by the way.\"}),\"\\n\"]}),\"\\n\",t(a.li,{children:[\"\\n\",n(a.p,{children:\"Finally here's another list item so it's more like a list.\"}),\"\\n\"]}),\"\\n\"]}),\"\\n\"]}),\"\\n\",t(a.li,{children:[\"\\n\",n(a.p,{children:\"A closing list item, but with no nested list, because why not?\"}),\"\\n\"]}),\"\\n\"]}),\"\\n\",n(a.p,{children:\"And finally a sentence to close off this section.\"}),\"\\n\",t(a.h2,{id:\"there-are-other-elements-we-need-to-style\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#there-are-other-elements-we-need-to-style\",children:n(a.span,{className:\"icon icon-link\"})}),\"There are other elements we need to style\"]}),\"\\n\",t(a.p,{children:[\"I almost forgot to mention links, like \",n(a.a,{href:\"https://tailwindcss.com\",children:\"this link to the Tailwind CSS website\"}),\". We almost made them blue but that's so yesterday, so we went with dark gray, feels edgier.\"]}),\"\\n\",n(a.p,{children:\"We even included table styles, check it out:\"}),\"\\n\",t(a.table,{children:[n(a.thead,{children:t(a.tr,{children:[n(a.th,{children:\"Wrestler\"}),n(a.th,{children:\"Origin\"}),n(a.th,{children:\"Finisher\"})]})}),t(a.tbody,{children:[t(a.tr,{children:[n(a.td,{children:'Bret \"The Hitman\" Hart'}),n(a.td,{children:\"Calgary, AB\"}),n(a.td,{children:\"Sharpshooter\"})]}),t(a.tr,{children:[n(a.td,{children:\"Stone Cold Steve Austin\"}),n(a.td,{children:\"Austin, TX\"}),n(a.td,{children:\"Stone Cold Stunner\"})]}),t(a.tr,{children:[n(a.td,{children:\"Randy Savage\"}),n(a.td,{children:\"Sarasota, FL\"}),n(a.td,{children:\"Elbow Drop\"})]}),t(a.tr,{children:[n(a.td,{children:\"Vader\"}),n(a.td,{children:\"Boulder, CO\"}),n(a.td,{children:\"Vader Bomb\"})]}),t(a.tr,{children:[n(a.td,{children:\"Razor Ramon\"}),n(a.td,{children:\"Chuluota, FL\"}),n(a.td,{children:\"Razor's Edge\"})]})]})]}),\"\\n\",t(a.p,{children:[\"We also need to make sure inline code looks good, like if I wanted to talk about \",n(a.code,{children:\"\"}),\" elements or tell you the good news about \",n(a.code,{children:\"@tailwindcss/typography\"}),\".\"]}),\"\\n\",t(a.h3,{id:\"sometimes-i-even-use-code-in-headings\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#sometimes-i-even-use-code-in-headings\",children:n(a.span,{className:\"icon icon-link\"})}),\"Sometimes I even use \",n(a.code,{children:\"code\"}),\" in headings\"]}),\"\\n\",t(a.p,{children:[\"Even though it's probably a bad idea, and historically I've had a hard time making it look good. This \",n(a.em,{children:'\"wrap the code blocks in backticks\"'}),\" trick works pretty well though really.\"]}),\"\\n\",t(a.p,{children:[\"Another thing I've done in the past is put a \",n(a.code,{children:\"code\"}),\" tag inside of a link, like if I wanted to tell you about the \",n(a.a,{href:\"https://github.com/tailwindcss/docs\",children:n(a.code,{children:\"tailwindcss/docs\"})}),\" repository. I don't love that there is an underline below the backticks but it is absolutely not worth the madness it would require to avoid it.\"]}),\"\\n\",t(a.h4,{id:\"we-havent-used-an-h4-yet\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#we-havent-used-an-h4-yet\",children:n(a.span,{className:\"icon icon-link\"})}),\"We haven't used an \",n(a.code,{children:\"h4\"}),\" yet\"]}),\"\\n\",t(a.p,{children:[\"But now we have. Please don't use \",n(a.code,{children:\"h5\"}),\" or \",n(a.code,{children:\"h6\"}),\" in your content, Medium only supports two heading levels for a reason, you animals. I honestly considered using a \",n(a.code,{children:\"before\"}),\" pseudo-element to scream at you if you use an \",n(a.code,{children:\"h5\"}),\" or \",n(a.code,{children:\"h6\"}),\".\"]}),\"\\n\",t(a.p,{children:[\"We don't style them at all out of the box because \",n(a.code,{children:\"h4\"}),\" elements are already so small that they are the same size as the body copy. What are we supposed to do with an \",n(a.code,{children:\"h5\"}),\", make it \",n(a.em,{children:\"smaller\"}),\" than the body copy? No thanks.\"]}),\"\\n\",t(a.h3,{id:\"we-still-need-to-think-about-stacked-headings-though\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#we-still-need-to-think-about-stacked-headings-though\",children:n(a.span,{className:\"icon icon-link\"})}),\"We still need to think about stacked headings though.\"]}),\"\\n\",t(a.h4,{id:\"lets-make-sure-we-dont-screw-that-up-with-h4-elements-either\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#lets-make-sure-we-dont-screw-that-up-with-h4-elements-either\",children:n(a.span,{className:\"icon icon-link\"})}),\"Let's make sure we don't screw that up with \",n(a.code,{children:\"h4\"}),\" elements, either.\"]}),\"\\n\",n(a.p,{children:\"Phew, with any luck we have styled the headings above this text and they look pretty good.\"}),\"\\n\",n(a.p,{children:\"Let's add a closing paragraph here so things end with a decently sized block of text. I can't explain why I want things to end that way but I have to assume it's because I think things will look weird or unbalanced if there is a heading too close to the end of the document.\"}),\"\\n\",n(a.p,{children:\"What I've written here is probably long enough, but adding this final sentence can't hurt.\"}),\"\\n\",t(a.h2,{id:\"github-flavored-markdown\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#github-flavored-markdown\",children:n(a.span,{className:\"icon icon-link\"})}),\"GitHub Flavored Markdown\"]}),\"\\n\",t(a.p,{children:[\"I've also added support for GitHub Flavored Mardown using \",n(a.code,{children:\"remark-gfm\"}),\".\"]}),\"\\n\",t(a.p,{children:[\"With \",n(a.code,{children:\"remark-gfm\"}),\", we get a few extra features in our markdown. Example: autolink literals.\"]}),\"\\n\",t(a.p,{children:[\"A link like \",n(a.a,{href:\"http://www.example.com\",children:\"www.example.com\"}),\" or \",n(a.a,{href:\"https://example.com\",children:\"https://example.com\"}),\" would automatically be converted into an \",n(a.code,{children:\"a\"}),\" tag.\"]}),\"\\n\",t(a.p,{children:[\"This works for email links too: \",n(a.a,{href:\"mailto:contact@example.com\",children:\"contact@example.com\"}),\".\"]})]})}return{default:function(e={}){const{wrapper:t}=e.components||{};return t?n(t,{...e,children:n(_createMdxContent,{...e})}):_createMdxContent(e)}};function _missingMdxReference(e,n){throw new Error(\"Expected \"+(n?\"component\":\"object\")+\" `\"+e+\"` to be defined: you likely forgot to import, pass, or provide it.\")}", + "slug": "/D:\\Coding\\forks\\taxonomy\\content\\blog\\server-client-components", + "slugAsParams": "" + } +] \ No newline at end of file diff --git a/app/(docs)/docs/[[...slug]]/page.tsx b/app/(docs)/docs/[[...slug]]/page.tsx index b6e525a81..aaa13afcc 100644 --- a/app/(docs)/docs/[[...slug]]/page.tsx +++ b/app/(docs)/docs/[[...slug]]/page.tsx @@ -1,5 +1,5 @@ import { notFound } from "next/navigation" -import { allDocs } from "contentlayer/generated" +import { docs as allDocs } from "#site/content" import { getTableOfContents } from "@/lib/toc" import { Mdx } from "@/components/mdx-components" @@ -93,7 +93,7 @@ export default async function DocPage({ params }: DocPageProps) {

    - +
    diff --git a/app/(docs)/guides/[...slug]/page.tsx b/app/(docs)/guides/[...slug]/page.tsx index d4016b464..f5623856b 100644 --- a/app/(docs)/guides/[...slug]/page.tsx +++ b/app/(docs)/guides/[...slug]/page.tsx @@ -1,6 +1,6 @@ import Link from "next/link" import { notFound } from "next/navigation" -import { allGuides } from "contentlayer/generated" +import { guides as allGuides } from "#site/content" import { getTableOfContents } from "@/lib/toc" import { Icons } from "@/components/icons" @@ -95,7 +95,7 @@ export default async function GuidePage({ params }: GuidePageProps) {
    - +

    - + ) } diff --git a/app/(marketing)/blog/[...slug]/page.tsx b/app/(marketing)/blog/[...slug]/page.tsx index 6889a585c..5a98c3a3e 100644 --- a/app/(marketing)/blog/[...slug]/page.tsx +++ b/app/(marketing)/blog/[...slug]/page.tsx @@ -1,5 +1,5 @@ import { notFound } from "next/navigation" -import { allAuthors, allPosts } from "contentlayer/generated" +import { authors as allAuthors, posts as allPosts } from "#site/content" import { Mdx } from "@/components/mdx-components" @@ -156,7 +156,7 @@ export default async function PostPage({ params }: PostPageProps) { priority /> )} - +
    diff --git a/app/(marketing)/blog/page.tsx b/app/(marketing)/blog/page.tsx index 38b903003..139944f6e 100644 --- a/app/(marketing)/blog/page.tsx +++ b/app/(marketing)/blog/page.tsx @@ -1,7 +1,7 @@ import Image from "next/image" import Link from "next/link" -import { allPosts } from "contentlayer/generated" import { compareDesc } from "date-fns" +import { posts as allPosts } from "#site/content" import { formatDate } from "@/lib/utils" diff --git a/components/mdx-components.tsx b/components/mdx-components.tsx index 35d6d3622..f97cc6563 100644 --- a/components/mdx-components.tsx +++ b/components/mdx-components.tsx @@ -1,11 +1,17 @@ import * as React from "react" import Image from "next/image" -import { useMDXComponent } from "next-contentlayer/hooks" +import * as runtime from 'react/jsx-runtime' + import { cn } from "@/lib/utils" import { Callout } from "@/components/callout" import { MdxCard } from "@/components/mdx-card" +const useMDXComponent = (code: string) => { + const fn = new Function(code) + return fn({ ...runtime }).default +} + const components = { h1: ({ className, ...props }) => (

    +} + +export function MDXContent({ code, components }: MdxProps) { + const Component = useMDXComponent(code) + return +} + interface MdxProps { code: string } diff --git a/components/pager.tsx b/components/pager.tsx index 0f93afdc1..46f154901 100644 --- a/components/pager.tsx +++ b/components/pager.tsx @@ -1,5 +1,5 @@ import Link from "next/link" -import { Doc } from "contentlayer/generated" +import { Doc } from "#site/content" import { docsConfig } from "@/config/docs" import { cn } from "@/lib/utils" diff --git a/next.config.mjs b/next.config.mjs index b2078dc20..f66f73c7e 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -1,5 +1,3 @@ -import { withContentlayer } from "next-contentlayer" - import "./env.mjs" /** @type {import('next').NextConfig} */ @@ -12,6 +10,25 @@ const nextConfig = { appDir: true, serverComponentsExternalPackages: ["@prisma/client"], }, + webpack: config => { + config.plugins.push(new VeliteWebpackPlugin()) + return config + } +} + +class VeliteWebpackPlugin { + static started = false + apply(/** @type {import('webpack').Compiler} */ compiler) { + // executed three times in nextjs + // twice for the server (nodejs / edge runtime) and once for the client + compiler.hooks.beforeCompile.tapPromise('VeliteWebpackPlugin', async () => { + if (VeliteWebpackPlugin.started) return + VeliteWebpackPlugin.started = true + const dev = compiler.options.mode === 'development' + const { build } = await import('velite') + await build({ watch: dev, clean: !dev }) + }) + } } -export default withContentlayer(nextConfig) +export default nextConfig diff --git a/package.json b/package.json index 00460d226..3ae2ce570 100644 --- a/package.json +++ b/package.json @@ -7,8 +7,8 @@ "url": "https://twitter.com/shadcn" }, "scripts": { - "dev": "concurrently \"contentlayer dev\" \"next dev\"", - "build": "contentlayer build && next build", + "dev": "next dev", + "build": "next build", "turbo": "next dev --turbo", "start": "next start", "lint": "next lint", @@ -63,13 +63,10 @@ "class-variance-authority": "^0.4.0", "clsx": "^1.2.1", "cmdk": "^0.1.22", - "concurrently": "^8.0.1", - "contentlayer": "^0.3.1", "date-fns": "^2.29.3", "lucide-react": "^0.92.0", "next": "13.3.2-canary.13", "next-auth": "4.22.1", - "next-contentlayer": "^0.3.1", "next-themes": "^0.2.1", "nodemailer": "^6.9.1", "postmark": "^3.0.15", @@ -80,12 +77,13 @@ "react-editor-js": "^2.1.0", "react-hook-form": "^7.43.9", "react-textarea-autosize": "^8.4.1", - "sharp": "^0.31.3", - "shiki": "^0.11.1", + "remark": "^15.0.1", + "sharp": "^0.33.2", + "shiki": "^1.1.7", "stripe": "^11.18.0", "tailwind-merge": "^1.12.0", "tailwindcss-animate": "^1.0.5", - "zod": "^3.21.4" + "zod": "^3.22.4" }, "devDependencies": { "@commitlint/cli": "^17.6.1", @@ -111,12 +109,11 @@ "prisma": "^4.13.0", "rehype": "^12.0.1", "rehype-autolink-headings": "^6.1.1", - "rehype-pretty-code": "^0.9.5", + "rehype-pretty-code": "^0.13.0", "rehype-slug": "^5.1.0", - "remark": "^14.0.2", - "remark-gfm": "^3.0.1", "tailwindcss": "^3.3.1", "typescript": "4.7.4", - "unist-util-visit": "^4.1.2" + "unist-util-visit": "^4.1.2", + "velite": "^0.1.0-beta.8" } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 61214310f..64113726c 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1,5 +1,9 @@ lockfileVersion: '6.0' +settings: + autoInstallPeers: true + excludeLinksFromLockfile: false + dependencies: '@editorjs/code': specifier: ^2.8.0 @@ -123,7 +127,7 @@ dependencies: version: 1.0.5(@types/react@18.0.15)(react-dom@18.2.0)(react@18.2.0) '@t3-oss/env-nextjs': specifier: ^0.2.2 - version: 0.2.2(zod@3.21.4) + version: 0.2.2(zod@3.22.4) '@typescript-eslint/parser': specifier: ^5.59.0 version: 5.59.0(eslint@8.39.0)(typescript@4.7.4) @@ -142,12 +146,6 @@ dependencies: cmdk: specifier: ^0.1.22 version: 0.1.22(@types/react@18.0.15)(react-dom@18.2.0)(react@18.2.0) - concurrently: - specifier: ^8.0.1 - version: 8.0.1 - contentlayer: - specifier: ^0.3.1 - version: 0.3.1(esbuild@0.17.18) date-fns: specifier: ^2.29.3 version: 2.29.3 @@ -156,13 +154,10 @@ dependencies: version: 0.92.0(prop-types@15.8.1)(react@18.2.0) next: specifier: 13.3.2-canary.13 - version: 13.3.2-canary.13(@babel/core@7.21.4)(@opentelemetry/api@1.1.0)(react-dom@18.2.0)(react@18.2.0) + version: 13.3.2-canary.13(@babel/core@7.21.4)(react-dom@18.2.0)(react@18.2.0) next-auth: specifier: 4.22.1 version: 4.22.1(next@13.3.2-canary.13)(nodemailer@6.9.1)(react-dom@18.2.0)(react@18.2.0) - next-contentlayer: - specifier: ^0.3.1 - version: 0.3.1(esbuild@0.17.18)(next@13.3.2-canary.13)(react-dom@18.2.0)(react@18.2.0) next-themes: specifier: ^0.2.1 version: 0.2.1(next@13.3.2-canary.13)(react-dom@18.2.0)(react@18.2.0) @@ -193,12 +188,15 @@ dependencies: react-textarea-autosize: specifier: ^8.4.1 version: 8.4.1(@types/react@18.0.15)(react@18.2.0) + remark: + specifier: ^15.0.1 + version: 15.0.1 sharp: - specifier: ^0.31.3 - version: 0.31.3 + specifier: ^0.33.2 + version: 0.33.2 shiki: - specifier: ^0.11.1 - version: 0.11.1 + specifier: ^1.1.7 + version: 1.1.7 stripe: specifier: ^11.18.0 version: 11.18.0 @@ -209,8 +207,8 @@ dependencies: specifier: ^1.0.5 version: 1.0.5(tailwindcss@3.3.1) zod: - specifier: ^3.21.4 - version: 3.21.4 + specifier: ^3.22.4 + version: 3.22.4 devDependencies: '@commitlint/cli': @@ -283,17 +281,11 @@ devDependencies: specifier: ^6.1.1 version: 6.1.1 rehype-pretty-code: - specifier: ^0.9.5 - version: 0.9.5(shiki@0.11.1) + specifier: ^0.13.0 + version: 0.13.0(shiki@1.1.7) rehype-slug: specifier: ^5.1.0 version: 5.1.0 - remark: - specifier: ^14.0.2 - version: 14.0.2 - remark-gfm: - specifier: ^3.0.1 - version: 3.0.1 tailwindcss: specifier: ^3.3.1 version: 3.3.1(postcss@8.4.23)(ts-node@10.9.1) @@ -303,6 +295,9 @@ devDependencies: unist-util-visit: specifier: ^4.1.2 version: 4.1.2 + velite: + specifier: ^0.1.0-beta.8 + version: 0.1.0-beta.8 packages: @@ -677,127 +672,6 @@ packages: chalk: 4.1.2 dev: true - /@contentlayer/cli@0.3.1(esbuild@0.17.18): - resolution: {integrity: sha512-FkIk4ml5qtO4tXoV6FpDEYGEoSWtRHkV61kqs8M+MljA+qFZizFLgVE5OcpUmfFTAOIK1vstGZ7G06am7aYp0Q==} - dependencies: - '@contentlayer/core': 0.3.1(esbuild@0.17.18) - '@contentlayer/utils': 0.3.1 - clipanion: 3.2.0(typanion@3.12.1) - typanion: 3.12.1 - transitivePeerDependencies: - - '@effect-ts/otel-node' - - esbuild - - markdown-wasm - - supports-color - dev: false - - /@contentlayer/client@0.3.1(esbuild@0.17.18): - resolution: {integrity: sha512-O1yzB/XDiK/u6+dfBmklgIYn3WFoAmtGJAz/tcc0K+4yPceDi+3PgMMcvMDP7xXy+Y6NlLseNGABZOtOIaO/og==} - dependencies: - '@contentlayer/core': 0.3.1(esbuild@0.17.18) - transitivePeerDependencies: - - '@effect-ts/otel-node' - - esbuild - - markdown-wasm - - supports-color - dev: false - - /@contentlayer/core@0.3.1(esbuild@0.17.18): - resolution: {integrity: sha512-lQhYsC5xhrUX7bKxUHH5Dg3oxwqJvCC0FS2975ixd6vltodQ92HYwHEy/laTNlbudUoU1U/CEywNtR+ihs8Ewg==} - peerDependencies: - esbuild: 0.17.x - markdown-wasm: 1.x - peerDependenciesMeta: - esbuild: - optional: true - markdown-wasm: - optional: true - dependencies: - '@contentlayer/utils': 0.3.1 - camel-case: 4.1.2 - comment-json: 4.2.3 - esbuild: 0.17.18 - gray-matter: 4.0.3 - mdx-bundler: 9.2.1(esbuild@0.17.18) - rehype-stringify: 9.0.3 - remark-frontmatter: 4.0.1 - remark-parse: 10.0.1 - remark-rehype: 10.1.0 - source-map-support: 0.5.21 - type-fest: 3.8.0 - unified: 10.1.2 - transitivePeerDependencies: - - '@effect-ts/otel-node' - - supports-color - dev: false - - /@contentlayer/source-files@0.3.1(esbuild@0.17.18): - resolution: {integrity: sha512-XXBW3cm1flykXw0WKUojSRGDGpQ7gCa5VWNQom9qSI7OE5j5WYua2dkzhQhblf3WKLvVUDF5vRBwoc+6aIB6ew==} - dependencies: - '@contentlayer/core': 0.3.1(esbuild@0.17.18) - '@contentlayer/utils': 0.3.1 - chokidar: 3.5.3 - fast-glob: 3.2.12 - gray-matter: 4.0.3 - imagescript: 1.2.16 - micromatch: 4.0.5 - ts-pattern: 4.2.2 - unified: 10.1.2 - yaml: 1.10.2 - zod: 3.21.4 - transitivePeerDependencies: - - '@effect-ts/otel-node' - - esbuild - - markdown-wasm - - supports-color - dev: false - - /@contentlayer/source-remote-files@0.3.1(esbuild@0.17.18): - resolution: {integrity: sha512-y7U1X6SzWSe2vyg3UWVzlXo7fn0sGquFnq1KG5RGkr0ha7yMawemGA2TsRb6pp3Dp+Is3TrPXp3j/kPR7aICkQ==} - dependencies: - '@contentlayer/core': 0.3.1(esbuild@0.17.18) - '@contentlayer/source-files': 0.3.1(esbuild@0.17.18) - '@contentlayer/utils': 0.3.1 - transitivePeerDependencies: - - '@effect-ts/otel-node' - - esbuild - - markdown-wasm - - supports-color - dev: false - - /@contentlayer/utils@0.3.1: - resolution: {integrity: sha512-DVI/lLn7ihyEJC7noaBtPydrF00Fjeex5FOdcfVLccP/HriJmsaqH9B/1q5KYFo8KAW4/nGygmN96IDUQusX8g==} - peerDependencies: - '@effect-ts/otel-node': '*' - peerDependenciesMeta: - '@effect-ts/core': - optional: true - '@effect-ts/otel': - optional: true - '@effect-ts/otel-node': - optional: true - dependencies: - '@effect-ts/core': 0.60.5 - '@effect-ts/otel': 0.14.1(@effect-ts/core@0.60.5)(@opentelemetry/api@1.1.0)(@opentelemetry/core@1.5.0)(@opentelemetry/sdk-trace-base@1.5.0) - '@effect-ts/otel-exporter-trace-otlp-grpc': 0.14.1(@effect-ts/core@0.60.5)(@opentelemetry/api@1.1.0)(@opentelemetry/core@1.5.0)(@opentelemetry/exporter-trace-otlp-grpc@0.31.0)(@opentelemetry/sdk-trace-base@1.5.0) - '@effect-ts/otel-sdk-trace-node': 0.14.1(@effect-ts/core@0.60.5)(@opentelemetry/api@1.1.0)(@opentelemetry/core@1.5.0)(@opentelemetry/sdk-trace-base@1.5.0)(@opentelemetry/sdk-trace-node@1.5.0) - '@js-temporal/polyfill': 0.4.3 - '@opentelemetry/api': 1.1.0 - '@opentelemetry/core': 1.5.0(@opentelemetry/api@1.1.0) - '@opentelemetry/exporter-trace-otlp-grpc': 0.31.0(@opentelemetry/api@1.1.0) - '@opentelemetry/resources': 1.5.0(@opentelemetry/api@1.1.0) - '@opentelemetry/sdk-trace-base': 1.5.0(@opentelemetry/api@1.1.0) - '@opentelemetry/sdk-trace-node': 1.5.0(@opentelemetry/api@1.1.0) - '@opentelemetry/semantic-conventions': 1.5.0 - chokidar: 3.5.3 - hash-wasm: 4.9.0 - inflection: 2.0.1 - memfs: 3.5.1 - oo-ascii-tree: 1.80.0 - ts-pattern: 4.2.2 - type-fest: 3.8.0 - dev: false - /@cspotcode/source-map-support@0.8.1: resolution: {integrity: sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==} engines: {node: '>=12'} @@ -861,274 +735,218 @@ packages: '@codexteam/icons': 0.0.6 dev: false - /@effect-ts/core@0.60.5: - resolution: {integrity: sha512-qi1WrtJA90XLMnj2hnUszW9Sx4dXP03ZJtCc5DiUBIOhF4Vw7plfb65/bdBySPoC9s7zy995TdUX1XBSxUkl5w==} - dependencies: - '@effect-ts/system': 0.57.5 - dev: false - - /@effect-ts/otel-exporter-trace-otlp-grpc@0.14.1(@effect-ts/core@0.60.5)(@opentelemetry/api@1.1.0)(@opentelemetry/core@1.5.0)(@opentelemetry/exporter-trace-otlp-grpc@0.31.0)(@opentelemetry/sdk-trace-base@1.5.0): - resolution: {integrity: sha512-eb6dJhVKnjS1v8afdPm+wuZ3JeX2Gt3GJA9Vw5D2aESE7wa3mrpElsNNbDXn6rhgyjZq3VWYY/NXVtLAFOQIbQ==} - peerDependencies: - '@effect-ts/core': ^0.60.2 - '@opentelemetry/api': ^1.1.0 - '@opentelemetry/core': ^1.5.0 - '@opentelemetry/exporter-trace-otlp-grpc': ^0.31.0 - '@opentelemetry/sdk-trace-base': ^1.5.0 - dependencies: - '@effect-ts/core': 0.60.5 - '@effect-ts/otel': 0.14.1(@effect-ts/core@0.60.5)(@opentelemetry/api@1.1.0)(@opentelemetry/core@1.5.0)(@opentelemetry/sdk-trace-base@1.5.0) - '@opentelemetry/api': 1.1.0 - '@opentelemetry/core': 1.5.0(@opentelemetry/api@1.1.0) - '@opentelemetry/exporter-trace-otlp-grpc': 0.31.0(@opentelemetry/api@1.1.0) - '@opentelemetry/sdk-trace-base': 1.5.0(@opentelemetry/api@1.1.0) - dev: false - - /@effect-ts/otel-sdk-trace-node@0.14.1(@effect-ts/core@0.60.5)(@opentelemetry/api@1.1.0)(@opentelemetry/core@1.5.0)(@opentelemetry/sdk-trace-base@1.5.0)(@opentelemetry/sdk-trace-node@1.5.0): - resolution: {integrity: sha512-j5ynRvd0H+Fp9aH/5NOtBd1ogNMpNB3r7uiXOKRPlfKUOtdx4KsCt2cPBjChMvyLstj8dkjtWE4loLSTYkWPuA==} - peerDependencies: - '@effect-ts/core': ^0.60.2 - '@opentelemetry/api': ^1.1.0 - '@opentelemetry/core': ^1.5.0 - '@opentelemetry/sdk-trace-base': ^1.5.0 - '@opentelemetry/sdk-trace-node': ^1.5.0 - dependencies: - '@effect-ts/core': 0.60.5 - '@effect-ts/otel': 0.14.1(@effect-ts/core@0.60.5)(@opentelemetry/api@1.1.0)(@opentelemetry/core@1.5.0)(@opentelemetry/sdk-trace-base@1.5.0) - '@opentelemetry/api': 1.1.0 - '@opentelemetry/core': 1.5.0(@opentelemetry/api@1.1.0) - '@opentelemetry/sdk-trace-base': 1.5.0(@opentelemetry/api@1.1.0) - '@opentelemetry/sdk-trace-node': 1.5.0(@opentelemetry/api@1.1.0) - dev: false - - /@effect-ts/otel@0.14.1(@effect-ts/core@0.60.5)(@opentelemetry/api@1.1.0)(@opentelemetry/core@1.5.0)(@opentelemetry/sdk-trace-base@1.5.0): - resolution: {integrity: sha512-WtkxdoM1M8bl7F1mrSwBZQJAIaUXcupePrllL7iZnvSfUVhYXV98gRTV6EiVT+prX7rzCW4wPkF/XsyWbtMDtA==} - peerDependencies: - '@effect-ts/core': ^0.60.2 - '@opentelemetry/api': ^1.1.0 - '@opentelemetry/core': ^1.5.0 - '@opentelemetry/sdk-trace-base': ^1.5.0 + /@emnapi/runtime@0.45.0: + resolution: {integrity: sha512-Txumi3td7J4A/xTTwlssKieHKTGl3j4A1tglBx72auZ49YK7ePY6XZricgIg9mnZT4xPfA+UPCUdnhRuEFDL+w==} + requiresBuild: true dependencies: - '@effect-ts/core': 0.60.5 - '@opentelemetry/api': 1.1.0 - '@opentelemetry/core': 1.5.0(@opentelemetry/api@1.1.0) - '@opentelemetry/sdk-trace-base': 1.5.0(@opentelemetry/api@1.1.0) - dev: false - - /@effect-ts/system@0.57.5: - resolution: {integrity: sha512-/crHGujo0xnuHIYNc1VgP0HGJGFSoSqq88JFXe6FmFyXPpWt8Xu39LyLg7rchsxfXFeEdA9CrIZvLV5eswXV5g==} - dev: false + tslib: 2.5.0 + optional: true - /@esbuild-plugins/node-resolve@0.1.4(esbuild@0.17.18): - resolution: {integrity: sha512-haFQ0qhxEpqtWWY0kx1Y5oE3sMyO1PcoSiWEPrAw6tm/ZOOLXjSs6Q+v1v9eyuVF0nNt50YEvrcrvENmyoMv5g==} - peerDependencies: - esbuild: '*' - dependencies: - '@types/resolve': 1.20.2 - debug: 4.3.4 - esbuild: 0.17.18 - escape-string-regexp: 4.0.0 - resolve: 1.22.2 - transitivePeerDependencies: - - supports-color - dev: false + /@esbuild/aix-ppc64@0.20.0: + resolution: {integrity: sha512-fGFDEctNh0CcSwsiRPxiaqX0P5rq+AqE0SRhYGZ4PX46Lg1FNR6oCxJghf8YgY0WQEgQuh3lErUFE4KxLeRmmw==} + engines: {node: '>=12'} + cpu: [ppc64] + os: [aix] + requiresBuild: true + dev: true + optional: true - /@esbuild/android-arm64@0.17.18: - resolution: {integrity: sha512-/iq0aK0eeHgSC3z55ucMAHO05OIqmQehiGay8eP5l/5l+iEr4EIbh4/MI8xD9qRFjqzgkc0JkX0LculNC9mXBw==} + /@esbuild/android-arm64@0.20.0: + resolution: {integrity: sha512-aVpnM4lURNkp0D3qPoAzSG92VXStYmoVPOgXveAUoQBWRSuQzt51yvSju29J6AHPmwY1BjH49uR29oyfH1ra8Q==} engines: {node: '>=12'} cpu: [arm64] os: [android] requiresBuild: true - dev: false + dev: true optional: true - /@esbuild/android-arm@0.17.18: - resolution: {integrity: sha512-EmwL+vUBZJ7mhFCs5lA4ZimpUH3WMAoqvOIYhVQwdIgSpHC8ImHdsRyhHAVxpDYUSm0lWvd63z0XH1IlImS2Qw==} + /@esbuild/android-arm@0.20.0: + resolution: {integrity: sha512-3bMAfInvByLHfJwYPJRlpTeaQA75n8C/QKpEaiS4HrFWFiJlNI0vzq/zCjBrhAYcPyVPG7Eo9dMrcQXuqmNk5g==} engines: {node: '>=12'} cpu: [arm] os: [android] requiresBuild: true - dev: false + dev: true optional: true - /@esbuild/android-x64@0.17.18: - resolution: {integrity: sha512-x+0efYNBF3NPW2Xc5bFOSFW7tTXdAcpfEg2nXmxegm4mJuVeS+i109m/7HMiOQ6M12aVGGFlqJX3RhNdYM2lWg==} + /@esbuild/android-x64@0.20.0: + resolution: {integrity: sha512-uK7wAnlRvjkCPzh8jJ+QejFyrP8ObKuR5cBIsQZ+qbMunwR8sbd8krmMbxTLSrDhiPZaJYKQAU5Y3iMDcZPhyQ==} engines: {node: '>=12'} cpu: [x64] os: [android] requiresBuild: true - dev: false + dev: true optional: true - /@esbuild/darwin-arm64@0.17.18: - resolution: {integrity: sha512-6tY+djEAdF48M1ONWnQb1C+6LiXrKjmqjzPNPWXhu/GzOHTHX2nh8Mo2ZAmBFg0kIodHhciEgUBtcYCAIjGbjQ==} + /@esbuild/darwin-arm64@0.20.0: + resolution: {integrity: sha512-AjEcivGAlPs3UAcJedMa9qYg9eSfU6FnGHJjT8s346HSKkrcWlYezGE8VaO2xKfvvlZkgAhyvl06OJOxiMgOYQ==} engines: {node: '>=12'} cpu: [arm64] os: [darwin] requiresBuild: true - dev: false + dev: true optional: true - /@esbuild/darwin-x64@0.17.18: - resolution: {integrity: sha512-Qq84ykvLvya3dO49wVC9FFCNUfSrQJLbxhoQk/TE1r6MjHo3sFF2tlJCwMjhkBVq3/ahUisj7+EpRSz0/+8+9A==} + /@esbuild/darwin-x64@0.20.0: + resolution: {integrity: sha512-bsgTPoyYDnPv8ER0HqnJggXK6RyFy4PH4rtsId0V7Efa90u2+EifxytE9pZnsDgExgkARy24WUQGv9irVbTvIw==} engines: {node: '>=12'} cpu: [x64] os: [darwin] requiresBuild: true - dev: false + dev: true optional: true - /@esbuild/freebsd-arm64@0.17.18: - resolution: {integrity: sha512-fw/ZfxfAzuHfaQeMDhbzxp9mc+mHn1Y94VDHFHjGvt2Uxl10mT4CDavHm+/L9KG441t1QdABqkVYwakMUeyLRA==} + /@esbuild/freebsd-arm64@0.20.0: + resolution: {integrity: sha512-kQ7jYdlKS335mpGbMW5tEe3IrQFIok9r84EM3PXB8qBFJPSc6dpWfrtsC/y1pyrz82xfUIn5ZrnSHQQsd6jebQ==} engines: {node: '>=12'} cpu: [arm64] os: [freebsd] requiresBuild: true - dev: false + dev: true optional: true - /@esbuild/freebsd-x64@0.17.18: - resolution: {integrity: sha512-FQFbRtTaEi8ZBi/A6kxOC0V0E9B/97vPdYjY9NdawyLd4Qk5VD5g2pbWN2VR1c0xhzcJm74HWpObPszWC+qTew==} + /@esbuild/freebsd-x64@0.20.0: + resolution: {integrity: sha512-uG8B0WSepMRsBNVXAQcHf9+Ko/Tr+XqmK7Ptel9HVmnykupXdS4J7ovSQUIi0tQGIndhbqWLaIL/qO/cWhXKyQ==} engines: {node: '>=12'} cpu: [x64] os: [freebsd] requiresBuild: true - dev: false + dev: true optional: true - /@esbuild/linux-arm64@0.17.18: - resolution: {integrity: sha512-R7pZvQZFOY2sxUG8P6A21eq6q+eBv7JPQYIybHVf1XkQYC+lT7nDBdC7wWKTrbvMXKRaGudp/dzZCwL/863mZQ==} + /@esbuild/linux-arm64@0.20.0: + resolution: {integrity: sha512-uTtyYAP5veqi2z9b6Gr0NUoNv9F/rOzI8tOD5jKcCvRUn7T60Bb+42NDBCWNhMjkQzI0qqwXkQGo1SY41G52nw==} engines: {node: '>=12'} cpu: [arm64] os: [linux] requiresBuild: true - dev: false + dev: true optional: true - /@esbuild/linux-arm@0.17.18: - resolution: {integrity: sha512-jW+UCM40LzHcouIaqv3e/oRs0JM76JfhHjCavPxMUti7VAPh8CaGSlS7cmyrdpzSk7A+8f0hiedHqr/LMnfijg==} + /@esbuild/linux-arm@0.20.0: + resolution: {integrity: sha512-2ezuhdiZw8vuHf1HKSf4TIk80naTbP9At7sOqZmdVwvvMyuoDiZB49YZKLsLOfKIr77+I40dWpHVeY5JHpIEIg==} engines: {node: '>=12'} cpu: [arm] os: [linux] requiresBuild: true - dev: false + dev: true optional: true - /@esbuild/linux-ia32@0.17.18: - resolution: {integrity: sha512-ygIMc3I7wxgXIxk6j3V00VlABIjq260i967Cp9BNAk5pOOpIXmd1RFQJQX9Io7KRsthDrQYrtcx7QCof4o3ZoQ==} + /@esbuild/linux-ia32@0.20.0: + resolution: {integrity: sha512-c88wwtfs8tTffPaoJ+SQn3y+lKtgTzyjkD8NgsyCtCmtoIC8RDL7PrJU05an/e9VuAke6eJqGkoMhJK1RY6z4w==} engines: {node: '>=12'} cpu: [ia32] os: [linux] requiresBuild: true - dev: false + dev: true optional: true - /@esbuild/linux-loong64@0.17.18: - resolution: {integrity: sha512-bvPG+MyFs5ZlwYclCG1D744oHk1Pv7j8psF5TfYx7otCVmcJsEXgFEhQkbhNW8otDHL1a2KDINW20cfCgnzgMQ==} + /@esbuild/linux-loong64@0.20.0: + resolution: {integrity: sha512-lR2rr/128/6svngnVta6JN4gxSXle/yZEZL3o4XZ6esOqhyR4wsKyfu6qXAL04S4S5CgGfG+GYZnjFd4YiG3Aw==} engines: {node: '>=12'} cpu: [loong64] os: [linux] requiresBuild: true - dev: false + dev: true optional: true - /@esbuild/linux-mips64el@0.17.18: - resolution: {integrity: sha512-oVqckATOAGuiUOa6wr8TXaVPSa+6IwVJrGidmNZS1cZVx0HqkTMkqFGD2HIx9H1RvOwFeWYdaYbdY6B89KUMxA==} + /@esbuild/linux-mips64el@0.20.0: + resolution: {integrity: sha512-9Sycc+1uUsDnJCelDf6ZNqgZQoK1mJvFtqf2MUz4ujTxGhvCWw+4chYfDLPepMEvVL9PDwn6HrXad5yOrNzIsQ==} engines: {node: '>=12'} cpu: [mips64el] os: [linux] requiresBuild: true - dev: false + dev: true optional: true - /@esbuild/linux-ppc64@0.17.18: - resolution: {integrity: sha512-3dLlQO+b/LnQNxgH4l9rqa2/IwRJVN9u/bK63FhOPB4xqiRqlQAU0qDU3JJuf0BmaH0yytTBdoSBHrb2jqc5qQ==} + /@esbuild/linux-ppc64@0.20.0: + resolution: {integrity: sha512-CoWSaaAXOZd+CjbUTdXIJE/t7Oz+4g90A3VBCHLbfuc5yUQU/nFDLOzQsN0cdxgXd97lYW/psIIBdjzQIwTBGw==} engines: {node: '>=12'} cpu: [ppc64] os: [linux] requiresBuild: true - dev: false + dev: true optional: true - /@esbuild/linux-riscv64@0.17.18: - resolution: {integrity: sha512-/x7leOyDPjZV3TcsdfrSI107zItVnsX1q2nho7hbbQoKnmoeUWjs+08rKKt4AUXju7+3aRZSsKrJtaRmsdL1xA==} + /@esbuild/linux-riscv64@0.20.0: + resolution: {integrity: sha512-mlb1hg/eYRJUpv8h/x+4ShgoNLL8wgZ64SUr26KwglTYnwAWjkhR2GpoKftDbPOCnodA9t4Y/b68H4J9XmmPzA==} engines: {node: '>=12'} cpu: [riscv64] os: [linux] requiresBuild: true - dev: false + dev: true optional: true - /@esbuild/linux-s390x@0.17.18: - resolution: {integrity: sha512-cX0I8Q9xQkL/6F5zWdYmVf5JSQt+ZfZD2bJudZrWD+4mnUvoZ3TDDXtDX2mUaq6upMFv9FlfIh4Gfun0tbGzuw==} + /@esbuild/linux-s390x@0.20.0: + resolution: {integrity: sha512-fgf9ubb53xSnOBqyvWEY6ukBNRl1mVX1srPNu06B6mNsNK20JfH6xV6jECzrQ69/VMiTLvHMicQR/PgTOgqJUQ==} engines: {node: '>=12'} cpu: [s390x] os: [linux] requiresBuild: true - dev: false + dev: true optional: true - /@esbuild/linux-x64@0.17.18: - resolution: {integrity: sha512-66RmRsPlYy4jFl0vG80GcNRdirx4nVWAzJmXkevgphP1qf4dsLQCpSKGM3DUQCojwU1hnepI63gNZdrr02wHUA==} + /@esbuild/linux-x64@0.20.0: + resolution: {integrity: sha512-H9Eu6MGse++204XZcYsse1yFHmRXEWgadk2N58O/xd50P9EvFMLJTQLg+lB4E1cF2xhLZU5luSWtGTb0l9UeSg==} engines: {node: '>=12'} cpu: [x64] os: [linux] requiresBuild: true - dev: false + dev: true optional: true - /@esbuild/netbsd-x64@0.17.18: - resolution: {integrity: sha512-95IRY7mI2yrkLlTLb1gpDxdC5WLC5mZDi+kA9dmM5XAGxCME0F8i4bYH4jZreaJ6lIZ0B8hTrweqG1fUyW7jbg==} + /@esbuild/netbsd-x64@0.20.0: + resolution: {integrity: sha512-lCT675rTN1v8Fo+RGrE5KjSnfY0x9Og4RN7t7lVrN3vMSjy34/+3na0q7RIfWDAj0e0rCh0OL+P88lu3Rt21MQ==} engines: {node: '>=12'} cpu: [x64] os: [netbsd] requiresBuild: true - dev: false + dev: true optional: true - /@esbuild/openbsd-x64@0.17.18: - resolution: {integrity: sha512-WevVOgcng+8hSZ4Q3BKL3n1xTv5H6Nb53cBrtzzEjDbbnOmucEVcZeGCsCOi9bAOcDYEeBZbD2SJNBxlfP3qiA==} + /@esbuild/openbsd-x64@0.20.0: + resolution: {integrity: sha512-HKoUGXz/TOVXKQ+67NhxyHv+aDSZf44QpWLa3I1lLvAwGq8x1k0T+e2HHSRvxWhfJrFxaaqre1+YyzQ99KixoA==} engines: {node: '>=12'} cpu: [x64] os: [openbsd] requiresBuild: true - dev: false + dev: true optional: true - /@esbuild/sunos-x64@0.17.18: - resolution: {integrity: sha512-Rzf4QfQagnwhQXVBS3BYUlxmEbcV7MY+BH5vfDZekU5eYpcffHSyjU8T0xucKVuOcdCsMo+Ur5wmgQJH2GfNrg==} + /@esbuild/sunos-x64@0.20.0: + resolution: {integrity: sha512-GDwAqgHQm1mVoPppGsoq4WJwT3vhnz/2N62CzhvApFD1eJyTroob30FPpOZabN+FgCjhG+AgcZyOPIkR8dfD7g==} engines: {node: '>=12'} cpu: [x64] os: [sunos] requiresBuild: true - dev: false + dev: true optional: true - /@esbuild/win32-arm64@0.17.18: - resolution: {integrity: sha512-Kb3Ko/KKaWhjeAm2YoT/cNZaHaD1Yk/pa3FTsmqo9uFh1D1Rfco7BBLIPdDOozrObj2sahslFuAQGvWbgWldAg==} + /@esbuild/win32-arm64@0.20.0: + resolution: {integrity: sha512-0vYsP8aC4TvMlOQYozoksiaxjlvUcQrac+muDqj1Fxy6jh9l9CZJzj7zmh8JGfiV49cYLTorFLxg7593pGldwQ==} engines: {node: '>=12'} cpu: [arm64] os: [win32] requiresBuild: true - dev: false + dev: true optional: true - /@esbuild/win32-ia32@0.17.18: - resolution: {integrity: sha512-0/xUMIdkVHwkvxfbd5+lfG7mHOf2FRrxNbPiKWg9C4fFrB8H0guClmaM3BFiRUYrznVoyxTIyC/Ou2B7QQSwmw==} + /@esbuild/win32-ia32@0.20.0: + resolution: {integrity: sha512-p98u4rIgfh4gdpV00IqknBD5pC84LCub+4a3MO+zjqvU5MVXOc3hqR2UgT2jI2nh3h8s9EQxmOsVI3tyzv1iFg==} engines: {node: '>=12'} cpu: [ia32] os: [win32] requiresBuild: true - dev: false + dev: true optional: true - /@esbuild/win32-x64@0.17.18: - resolution: {integrity: sha512-qU25Ma1I3NqTSHJUOKi9sAH1/Mzuvlke0ioMJRthLXKm7JiSKVwFghlGbDLOO2sARECGhja4xYfRAZNPAkooYg==} + /@esbuild/win32-x64@0.20.0: + resolution: {integrity: sha512-NgJnesu1RtWihtTtXGFMU5YSE6JyyHPMxCwBZK7a6/8d31GuSo9l0Ss7w1Jw5QnKUawG6UEehs883kcXf5fYwg==} engines: {node: '>=12'} cpu: [x64] os: [win32] requiresBuild: true - dev: false + dev: true optional: true /@eslint-community/eslint-utils@4.4.0(eslint@8.39.0): @@ -1164,10 +982,6 @@ packages: resolution: {integrity: sha512-kf9RB0Fg7NZfap83B3QOqOGg9QmD9yBudqQXzzOtn3i4y7ZUXe5ONeW34Gwi+TxhH4mvj72R1Zc300KUMa9Bng==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} - /@fal-works/esbuild-plugin-global-externals@2.1.2: - resolution: {integrity: sha512-cEee/Z+I12mZcFJshKcCqC8tuX5hG3s+d+9nZ3LabqKF1vKdF41B92pJVCBggjAGORAeOzyyDDKrZwIkLffeOQ==} - dev: false - /@floating-ui/core@0.7.3: resolution: {integrity: sha512-buc8BXHmG9l82+OQXOFU3Kr2XQx9ys01U/Q9HMIrZ300iLc8HLMgh7dcCqgYzAzf4BkoQvDcXf5Y+CuEZ5JBYg==} dev: false @@ -1192,38 +1006,6 @@ packages: - '@types/react' dev: false - /@grpc/grpc-js@1.8.14: - resolution: {integrity: sha512-w84maJ6CKl5aApCMzFll0hxtFNT6or9WwMslobKaqWUEf1K+zhlL43bSQhFreyYWIWR+Z0xnVFC1KtLm4ZpM/A==} - engines: {node: ^8.13.0 || >=10.10.0} - dependencies: - '@grpc/proto-loader': 0.7.6 - '@types/node': 18.16.0 - dev: false - - /@grpc/proto-loader@0.6.13: - resolution: {integrity: sha512-FjxPYDRTn6Ec3V0arm1FtSpmP6V50wuph2yILpyvTKzjc76oDdoihXqM1DzOW5ubvCC8GivfCnNtfaRE8myJ7g==} - engines: {node: '>=6'} - hasBin: true - dependencies: - '@types/long': 4.0.2 - lodash.camelcase: 4.3.0 - long: 4.0.0 - protobufjs: 6.11.3 - yargs: 16.2.0 - dev: false - - /@grpc/proto-loader@0.7.6: - resolution: {integrity: sha512-QyAXR8Hyh7uMDmveWxDSUcJr9NAWaZ2I6IXgAYvQmfflwouTM+rArE2eEaCtLlRqO81j7pRLCt81IefUei6Zbw==} - engines: {node: '>=6'} - hasBin: true - dependencies: - '@types/long': 4.0.2 - lodash.camelcase: 4.3.0 - long: 4.0.0 - protobufjs: 7.2.3 - yargs: 16.2.0 - dev: false - /@hookform/resolvers@3.1.0(react-hook-form@7.43.9): resolution: {integrity: sha512-z0A8K+Nxq+f83Whm/ajlwE6VtQlp/yPHZnXw7XWVPIGm1Vx0QV8KThU3BpbBRfAZ7/dYqCKKBNnQh85BkmBKkA==} peerDependencies: @@ -1271,6 +1053,187 @@ packages: - supports-color dev: true + /@img/sharp-darwin-arm64@0.33.2: + resolution: {integrity: sha512-itHBs1rPmsmGF9p4qRe++CzCgd+kFYktnsoR1sbIAfsRMrJZau0Tt1AH9KVnufc2/tU02Gf6Ibujx+15qRE03w==} + engines: {glibc: '>=2.26', node: ^18.17.0 || ^20.3.0 || >=21.0.0, npm: '>=9.6.5', pnpm: '>=7.1.0', yarn: '>=3.2.0'} + cpu: [arm64] + os: [darwin] + requiresBuild: true + optionalDependencies: + '@img/sharp-libvips-darwin-arm64': 1.0.1 + optional: true + + /@img/sharp-darwin-x64@0.33.2: + resolution: {integrity: sha512-/rK/69Rrp9x5kaWBjVN07KixZanRr+W1OiyKdXcbjQD6KbW+obaTeBBtLUAtbBsnlTTmWthw99xqoOS7SsySDg==} + engines: {glibc: '>=2.26', node: ^18.17.0 || ^20.3.0 || >=21.0.0, npm: '>=9.6.5', pnpm: '>=7.1.0', yarn: '>=3.2.0'} + cpu: [x64] + os: [darwin] + requiresBuild: true + optionalDependencies: + '@img/sharp-libvips-darwin-x64': 1.0.1 + optional: true + + /@img/sharp-libvips-darwin-arm64@1.0.1: + resolution: {integrity: sha512-kQyrSNd6lmBV7O0BUiyu/OEw9yeNGFbQhbxswS1i6rMDwBBSX+e+rPzu3S+MwAiGU3HdLze3PanQ4Xkfemgzcw==} + engines: {macos: '>=11', npm: '>=9.6.5', pnpm: '>=7.1.0', yarn: '>=3.2.0'} + cpu: [arm64] + os: [darwin] + requiresBuild: true + optional: true + + /@img/sharp-libvips-darwin-x64@1.0.1: + resolution: {integrity: sha512-eVU/JYLPVjhhrd8Tk6gosl5pVlvsqiFlt50wotCvdkFGf+mDNBJxMh+bvav+Wt3EBnNZWq8Sp2I7XfSjm8siog==} + engines: {macos: '>=10.13', npm: '>=9.6.5', pnpm: '>=7.1.0', yarn: '>=3.2.0'} + cpu: [x64] + os: [darwin] + requiresBuild: true + optional: true + + /@img/sharp-libvips-linux-arm64@1.0.1: + resolution: {integrity: sha512-bnGG+MJjdX70mAQcSLxgeJco11G+MxTz+ebxlz8Y3dxyeb3Nkl7LgLI0mXupoO+u1wRNx/iRj5yHtzA4sde1yA==} + engines: {glibc: '>=2.26', npm: '>=9.6.5', pnpm: '>=7.1.0', yarn: '>=3.2.0'} + cpu: [arm64] + os: [linux] + libc: [glibc] + requiresBuild: true + optional: true + + /@img/sharp-libvips-linux-arm@1.0.1: + resolution: {integrity: sha512-FtdMvR4R99FTsD53IA3LxYGghQ82t3yt0ZQ93WMZ2xV3dqrb0E8zq4VHaTOuLEAuA83oDawHV3fd+BsAPadHIQ==} + engines: {glibc: '>=2.28', npm: '>=9.6.5', pnpm: '>=7.1.0', yarn: '>=3.2.0'} + cpu: [arm] + os: [linux] + libc: [glibc] + requiresBuild: true + optional: true + + /@img/sharp-libvips-linux-s390x@1.0.1: + resolution: {integrity: sha512-3+rzfAR1YpMOeA2zZNp+aYEzGNWK4zF3+sdMxuCS3ey9HhDbJ66w6hDSHDMoap32DueFwhhs3vwooAB2MaK4XQ==} + engines: {glibc: '>=2.28', npm: '>=9.6.5', pnpm: '>=7.1.0', yarn: '>=3.2.0'} + cpu: [s390x] + os: [linux] + libc: [glibc] + requiresBuild: true + optional: true + + /@img/sharp-libvips-linux-x64@1.0.1: + resolution: {integrity: sha512-3NR1mxFsaSgMMzz1bAnnKbSAI+lHXVTqAHgc1bgzjHuXjo4hlscpUxc0vFSAPKI3yuzdzcZOkq7nDPrP2F8Jgw==} + engines: {glibc: '>=2.26', npm: '>=9.6.5', pnpm: '>=7.1.0', yarn: '>=3.2.0'} + cpu: [x64] + os: [linux] + libc: [glibc] + requiresBuild: true + optional: true + + /@img/sharp-libvips-linuxmusl-arm64@1.0.1: + resolution: {integrity: sha512-5aBRcjHDG/T6jwC3Edl3lP8nl9U2Yo8+oTl5drd1dh9Z1EBfzUKAJFUDTDisDjUwc7N4AjnPGfCA3jl3hY8uDg==} + engines: {musl: '>=1.2.2', npm: '>=9.6.5', pnpm: '>=7.1.0', yarn: '>=3.2.0'} + cpu: [arm64] + os: [linux] + libc: [musl] + requiresBuild: true + optional: true + + /@img/sharp-libvips-linuxmusl-x64@1.0.1: + resolution: {integrity: sha512-dcT7inI9DBFK6ovfeWRe3hG30h51cBAP5JXlZfx6pzc/Mnf9HFCQDLtYf4MCBjxaaTfjCCjkBxcy3XzOAo5txw==} + engines: {musl: '>=1.2.2', npm: '>=9.6.5', pnpm: '>=7.1.0', yarn: '>=3.2.0'} + cpu: [x64] + os: [linux] + libc: [musl] + requiresBuild: true + optional: true + + /@img/sharp-linux-arm64@0.33.2: + resolution: {integrity: sha512-pz0NNo882vVfqJ0yNInuG9YH71smP4gRSdeL09ukC2YLE6ZyZePAlWKEHgAzJGTiOh8Qkaov6mMIMlEhmLdKew==} + engines: {glibc: '>=2.26', node: ^18.17.0 || ^20.3.0 || >=21.0.0, npm: '>=9.6.5', pnpm: '>=7.1.0', yarn: '>=3.2.0'} + cpu: [arm64] + os: [linux] + libc: [glibc] + requiresBuild: true + optionalDependencies: + '@img/sharp-libvips-linux-arm64': 1.0.1 + optional: true + + /@img/sharp-linux-arm@0.33.2: + resolution: {integrity: sha512-Fndk/4Zq3vAc4G/qyfXASbS3HBZbKrlnKZLEJzPLrXoJuipFNNwTes71+Ki1hwYW5lch26niRYoZFAtZVf3EGA==} + engines: {glibc: '>=2.28', node: ^18.17.0 || ^20.3.0 || >=21.0.0, npm: '>=9.6.5', pnpm: '>=7.1.0', yarn: '>=3.2.0'} + cpu: [arm] + os: [linux] + libc: [glibc] + requiresBuild: true + optionalDependencies: + '@img/sharp-libvips-linux-arm': 1.0.1 + optional: true + + /@img/sharp-linux-s390x@0.33.2: + resolution: {integrity: sha512-MBoInDXDppMfhSzbMmOQtGfloVAflS2rP1qPcUIiITMi36Mm5YR7r0ASND99razjQUpHTzjrU1flO76hKvP5RA==} + engines: {glibc: '>=2.28', node: ^18.17.0 || ^20.3.0 || >=21.0.0, npm: '>=9.6.5', pnpm: '>=7.1.0', yarn: '>=3.2.0'} + cpu: [s390x] + os: [linux] + libc: [glibc] + requiresBuild: true + optionalDependencies: + '@img/sharp-libvips-linux-s390x': 1.0.1 + optional: true + + /@img/sharp-linux-x64@0.33.2: + resolution: {integrity: sha512-xUT82H5IbXewKkeF5aiooajoO1tQV4PnKfS/OZtb5DDdxS/FCI/uXTVZ35GQ97RZXsycojz/AJ0asoz6p2/H/A==} + engines: {glibc: '>=2.26', node: ^18.17.0 || ^20.3.0 || >=21.0.0, npm: '>=9.6.5', pnpm: '>=7.1.0', yarn: '>=3.2.0'} + cpu: [x64] + os: [linux] + libc: [glibc] + requiresBuild: true + optionalDependencies: + '@img/sharp-libvips-linux-x64': 1.0.1 + optional: true + + /@img/sharp-linuxmusl-arm64@0.33.2: + resolution: {integrity: sha512-F+0z8JCu/UnMzg8IYW1TMeiViIWBVg7IWP6nE0p5S5EPQxlLd76c8jYemG21X99UzFwgkRo5yz2DS+zbrnxZeA==} + engines: {musl: '>=1.2.2', node: ^18.17.0 || ^20.3.0 || >=21.0.0, npm: '>=9.6.5', pnpm: '>=7.1.0', yarn: '>=3.2.0'} + cpu: [arm64] + os: [linux] + libc: [musl] + requiresBuild: true + optionalDependencies: + '@img/sharp-libvips-linuxmusl-arm64': 1.0.1 + optional: true + + /@img/sharp-linuxmusl-x64@0.33.2: + resolution: {integrity: sha512-+ZLE3SQmSL+Fn1gmSaM8uFusW5Y3J9VOf+wMGNnTtJUMUxFhv+P4UPaYEYT8tqnyYVaOVGgMN/zsOxn9pSsO2A==} + engines: {musl: '>=1.2.2', node: ^18.17.0 || ^20.3.0 || >=21.0.0, npm: '>=9.6.5', pnpm: '>=7.1.0', yarn: '>=3.2.0'} + cpu: [x64] + os: [linux] + libc: [musl] + requiresBuild: true + optionalDependencies: + '@img/sharp-libvips-linuxmusl-x64': 1.0.1 + optional: true + + /@img/sharp-wasm32@0.33.2: + resolution: {integrity: sha512-fLbTaESVKuQcpm8ffgBD7jLb/CQLcATju/jxtTXR1XCLwbOQt+OL5zPHSDMmp2JZIeq82e18yE0Vv7zh6+6BfQ==} + engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0, npm: '>=9.6.5', pnpm: '>=7.1.0', yarn: '>=3.2.0'} + cpu: [wasm32] + requiresBuild: true + dependencies: + '@emnapi/runtime': 0.45.0 + optional: true + + /@img/sharp-win32-ia32@0.33.2: + resolution: {integrity: sha512-okBpql96hIGuZ4lN3+nsAjGeggxKm7hIRu9zyec0lnfB8E7Z6p95BuRZzDDXZOl2e8UmR4RhYt631i7mfmKU8g==} + engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0, npm: '>=9.6.5', pnpm: '>=7.1.0', yarn: '>=3.2.0'} + cpu: [ia32] + os: [win32] + requiresBuild: true + optional: true + + /@img/sharp-win32-x64@0.33.2: + resolution: {integrity: sha512-E4magOks77DK47FwHUIGH0RYWSgRBfGdK56kIHSVeB9uIS4pPFr4N2kIVsXdQQo4LzOsENKV5KAhRlRL7eMAdg==} + engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0, npm: '>=9.6.5', pnpm: '>=7.1.0', yarn: '>=3.2.0'} + cpu: [x64] + os: [win32] + requiresBuild: true + optional: true + /@jridgewell/gen-mapping@0.3.3: resolution: {integrity: sha512-HLhSWOLRi875zjjMG/r+Nv0oCW8umGb0BgEhyX3dDX3egwZtB8PqLnjz3yedt8R5StBrzcg4aBpnh8UA9D1BoQ==} engines: {node: '>=6.0.0'} @@ -1291,6 +1254,13 @@ packages: resolution: {integrity: sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==} engines: {node: '>=6.0.0'} + /@jridgewell/source-map@0.3.5: + resolution: {integrity: sha512-UTYAUj/wviwdsMfzoSJspJxbkH5o1snzwX0//0ENX1u/55kkZZkcTZP6u9bwKGkv+dkk9at4m1Cpt0uY80kcpQ==} + dependencies: + '@jridgewell/gen-mapping': 0.3.3 + '@jridgewell/trace-mapping': 0.3.18 + dev: true + /@jridgewell/sourcemap-codec@1.4.14: resolution: {integrity: sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw==} @@ -1309,50 +1279,35 @@ packages: '@jridgewell/resolve-uri': 3.1.1 '@jridgewell/sourcemap-codec': 1.4.15 - /@js-temporal/polyfill@0.4.3: - resolution: {integrity: sha512-6Fmjo/HlkyVCmJzAPnvtEWlcbQUSRhi8qlN9EtJA/wP7FqXsevLLrlojR44kzNzrRkpf7eDJ+z7b4xQD/Ycypw==} - engines: {node: '>=12'} - dependencies: - jsbi: 4.3.0 - tslib: 2.5.0 - dev: false - - /@mdx-js/esbuild@2.3.0(esbuild@0.17.18): - resolution: {integrity: sha512-r/vsqsM0E+U4Wr0DK+0EfmABE/eg+8ITW4DjvYdh3ve/tK2safaqHArNnaqbOk1DjYGrhxtoXoGaM3BY8fGBTA==} - peerDependencies: - esbuild: '>=0.11.0' - dependencies: - '@mdx-js/mdx': 2.3.0 - esbuild: 0.17.18 - node-fetch: 3.3.1 - vfile: 5.3.7 - transitivePeerDependencies: - - supports-color - dev: false - - /@mdx-js/mdx@2.3.0: - resolution: {integrity: sha512-jLuwRlz8DQfQNiUCJR50Y09CGPq3fLtmtUQfVrj79E0JWu3dvsVcxVIcfhR5h0iXu+/z++zDrYeiJqifRynJkA==} - dependencies: - '@types/estree-jsx': 1.0.0 - '@types/mdx': 2.0.4 - estree-util-build-jsx: 2.2.2 - estree-util-is-identifier-name: 2.1.0 - estree-util-to-js: 1.2.0 + /@mdx-js/mdx@3.0.1: + resolution: {integrity: sha512-eIQ4QTrOWyL3LWEe/bu6Taqzq2HQvHcyTMaOrI95P2/LmJE7AsfPfgJGuFLPVqBUE1BC1rik3VIhU+s9u72arA==} + dependencies: + '@types/estree': 1.0.5 + '@types/estree-jsx': 1.0.5 + '@types/hast': 3.0.4 + '@types/mdx': 2.0.11 + collapse-white-space: 2.1.0 + devlop: 1.1.0 + estree-util-build-jsx: 3.0.1 + estree-util-is-identifier-name: 3.0.0 + estree-util-to-js: 2.0.0 estree-walker: 3.0.3 - hast-util-to-estree: 2.3.2 - markdown-extensions: 1.1.1 + hast-util-to-estree: 3.1.0 + hast-util-to-jsx-runtime: 2.3.0 + markdown-extensions: 2.0.0 periscopic: 3.1.0 - remark-mdx: 2.3.0 - remark-parse: 10.0.1 - remark-rehype: 10.1.0 - unified: 10.1.2 - unist-util-position-from-estree: 1.1.2 - unist-util-stringify-position: 3.0.3 - unist-util-visit: 4.1.2 - vfile: 5.3.7 + remark-mdx: 3.0.1 + remark-parse: 11.0.0 + remark-rehype: 11.1.0 + source-map: 0.7.4 + unified: 11.0.4 + unist-util-position-from-estree: 2.0.0 + unist-util-stringify-position: 4.0.0 + unist-util-visit: 5.0.0 + vfile: 6.0.1 transitivePeerDependencies: - supports-color - dev: false + dev: true /@next-auth/prisma-adapter@1.0.6(@prisma/client@4.13.0)(next-auth@4.22.1): resolution: {integrity: sha512-Z7agwfSZEeEcqKqrnisBun7VndRPshd6vyDsoRU68MXbkui8storkHgvN2hnNDrqr/hSCF9aRn56a1qpihaB4A==} @@ -1397,6 +1352,7 @@ packages: engines: {node: '>= 10'} cpu: [arm64] os: [linux] + libc: [glibc] requiresBuild: true dev: false optional: true @@ -1406,6 +1362,7 @@ packages: engines: {node: '>= 10'} cpu: [arm64] os: [linux] + libc: [musl] requiresBuild: true dev: false optional: true @@ -1415,6 +1372,7 @@ packages: engines: {node: '>= 10'} cpu: [x64] os: [linux] + libc: [glibc] requiresBuild: true dev: false optional: true @@ -1424,6 +1382,7 @@ packages: engines: {node: '>= 10'} cpu: [x64] os: [linux] + libc: [musl] requiresBuild: true dev: false optional: true @@ -1473,168 +1432,6 @@ packages: '@nodelib/fs.scandir': 2.1.5 fastq: 1.15.0 - /@opentelemetry/api-metrics@0.31.0: - resolution: {integrity: sha512-PcL1x0kZtMie7NsNy67OyMvzLEXqf3xd0TZJKHHPMGTe89oMpNVrD1zJB1kZcwXOxLlHHb6tz21G3vvXPdXyZg==} - engines: {node: '>=14'} - deprecated: Please use @opentelemetry/api >= 1.3.0 - dependencies: - '@opentelemetry/api': 1.1.0 - dev: false - - /@opentelemetry/api@1.1.0: - resolution: {integrity: sha512-hf+3bwuBwtXsugA2ULBc95qxrOqP2pOekLz34BJhcAKawt94vfeNyUKpYc0lZQ/3sCP6LqRa7UAdHA7i5UODzQ==} - engines: {node: '>=8.0.0'} - dev: false - - /@opentelemetry/context-async-hooks@1.5.0(@opentelemetry/api@1.1.0): - resolution: {integrity: sha512-mhBPP0BU0RaH2HB8U4MDd5OjWA1y7SoLOovCT0iEpJAltaq2z04uxRJVzIs91vkpNnV0utUZowQQD3KElgU+VA==} - engines: {node: '>=14'} - peerDependencies: - '@opentelemetry/api': '>=1.0.0 <1.2.0' - dependencies: - '@opentelemetry/api': 1.1.0 - dev: false - - /@opentelemetry/core@1.5.0(@opentelemetry/api@1.1.0): - resolution: {integrity: sha512-B3DIMkQN0DANrr7XrMLS4pR6d2o/jqT09x4nZJz6wSJ9SHr4eQIqeFBNeEUQG1I+AuOcH2UbJtgFm7fKxLqd+w==} - engines: {node: '>=14'} - peerDependencies: - '@opentelemetry/api': '>=1.0.0 <1.2.0' - dependencies: - '@opentelemetry/api': 1.1.0 - '@opentelemetry/semantic-conventions': 1.5.0 - dev: false - - /@opentelemetry/exporter-trace-otlp-grpc@0.31.0(@opentelemetry/api@1.1.0): - resolution: {integrity: sha512-WapHtHPLOFObRMvtfRJX/EBRZS4YLpRY8E/OtIQmmAqwImDMAnMVF9fAjP6DSE/thOIN3Ot0/PLK5zFZUVV8SA==} - engines: {node: '>=14'} - peerDependencies: - '@opentelemetry/api': ^1.0.0 - dependencies: - '@grpc/grpc-js': 1.8.14 - '@grpc/proto-loader': 0.6.13 - '@opentelemetry/api': 1.1.0 - '@opentelemetry/core': 1.5.0(@opentelemetry/api@1.1.0) - '@opentelemetry/otlp-grpc-exporter-base': 0.31.0(@opentelemetry/api@1.1.0) - '@opentelemetry/otlp-transformer': 0.31.0(@opentelemetry/api@1.1.0) - '@opentelemetry/resources': 1.5.0(@opentelemetry/api@1.1.0) - '@opentelemetry/sdk-trace-base': 1.5.0(@opentelemetry/api@1.1.0) - dev: false - - /@opentelemetry/otlp-exporter-base@0.31.0(@opentelemetry/api@1.1.0): - resolution: {integrity: sha512-MI+LtGo/ZYL/g7ldWTAY9vMjMqlcWMj2undgcnq8Y5BoDLI8oBwGn//Lizjk4NikF+SkcolKB3+U05nCeT5djg==} - engines: {node: '>=14'} - peerDependencies: - '@opentelemetry/api': ^1.0.0 - dependencies: - '@opentelemetry/api': 1.1.0 - '@opentelemetry/core': 1.5.0(@opentelemetry/api@1.1.0) - dev: false - - /@opentelemetry/otlp-grpc-exporter-base@0.31.0(@opentelemetry/api@1.1.0): - resolution: {integrity: sha512-TfNZsQhWNd05CAaOwgN2lVthC8mkxvoArV6LfSyKyqSZ6srCnYPuW64yS/9buEhNvTkT3y63dzkVSnnv/1b3ow==} - engines: {node: '>=14'} - peerDependencies: - '@opentelemetry/api': ^1.0.0 - dependencies: - '@grpc/grpc-js': 1.8.14 - '@grpc/proto-loader': 0.6.13 - '@opentelemetry/api': 1.1.0 - '@opentelemetry/core': 1.5.0(@opentelemetry/api@1.1.0) - '@opentelemetry/otlp-exporter-base': 0.31.0(@opentelemetry/api@1.1.0) - dev: false - - /@opentelemetry/otlp-transformer@0.31.0(@opentelemetry/api@1.1.0): - resolution: {integrity: sha512-xCEsB0gTs7s/FMEv8+DWE6awfHJ5oHkFKSGePr6tT5Mh95rd1845WTefvLc++mYpewY8KnQ7tyo/zEfwywCIhw==} - engines: {node: '>=14'} - peerDependencies: - '@opentelemetry/api': '>=1.0.0 <1.2.0' - dependencies: - '@opentelemetry/api': 1.1.0 - '@opentelemetry/api-metrics': 0.31.0 - '@opentelemetry/core': 1.5.0(@opentelemetry/api@1.1.0) - '@opentelemetry/resources': 1.5.0(@opentelemetry/api@1.1.0) - '@opentelemetry/sdk-metrics-base': 0.31.0(@opentelemetry/api@1.1.0) - '@opentelemetry/sdk-trace-base': 1.5.0(@opentelemetry/api@1.1.0) - dev: false - - /@opentelemetry/propagator-b3@1.5.0(@opentelemetry/api@1.1.0): - resolution: {integrity: sha512-38iGIScgU9OLhoPKAV3p2rEf4RmmQC/Lo4LvpQ6TaSQrRht/oDgnpsPJnmNQLFboklmukKataJO+FhAieOc7mg==} - engines: {node: '>=14'} - peerDependencies: - '@opentelemetry/api': '>=1.0.0 <1.2.0' - dependencies: - '@opentelemetry/api': 1.1.0 - '@opentelemetry/core': 1.5.0(@opentelemetry/api@1.1.0) - dev: false - - /@opentelemetry/propagator-jaeger@1.5.0(@opentelemetry/api@1.1.0): - resolution: {integrity: sha512-aSUH5RDEZj+lmy4PbXAJ26E+yJcZloyPUBWgqYX+JBS4NnbriIznCF/tXV5s/RUXeVABibi/+yAZndv+2XBg4w==} - engines: {node: '>=14'} - peerDependencies: - '@opentelemetry/api': '>=1.0.0 <1.2.0' - dependencies: - '@opentelemetry/api': 1.1.0 - '@opentelemetry/core': 1.5.0(@opentelemetry/api@1.1.0) - dev: false - - /@opentelemetry/resources@1.5.0(@opentelemetry/api@1.1.0): - resolution: {integrity: sha512-YeEfC6IY54U3xL3P2+UAiom+r50ZF2jM0J47RV5uTFGF19Xjd5zazSwDPgmxtAd6DwLX0/5S5iqrsH4nEXMYoA==} - engines: {node: '>=14'} - peerDependencies: - '@opentelemetry/api': '>=1.0.0 <1.2.0' - dependencies: - '@opentelemetry/api': 1.1.0 - '@opentelemetry/core': 1.5.0(@opentelemetry/api@1.1.0) - '@opentelemetry/semantic-conventions': 1.5.0 - dev: false - - /@opentelemetry/sdk-metrics-base@0.31.0(@opentelemetry/api@1.1.0): - resolution: {integrity: sha512-4R2Bjl3wlqIGcq4bCoI9/pD49ld+tEoM9n85UfFzr/aUe+2huY2jTPq/BP9SVB8d2Zfg7mGTIFeapcEvAdKK7g==} - engines: {node: '>=14'} - deprecated: Please use @opentelemetry/sdk-metrics - peerDependencies: - '@opentelemetry/api': ^1.0.0 - dependencies: - '@opentelemetry/api': 1.1.0 - '@opentelemetry/api-metrics': 0.31.0 - '@opentelemetry/core': 1.5.0(@opentelemetry/api@1.1.0) - '@opentelemetry/resources': 1.5.0(@opentelemetry/api@1.1.0) - lodash.merge: 4.6.2 - dev: false - - /@opentelemetry/sdk-trace-base@1.5.0(@opentelemetry/api@1.1.0): - resolution: {integrity: sha512-6lx7YDf67HSQYuWnvq3XgSrWikDJLiGCbrpUP6UWJ5Z47HLcJvwZPRH+cQGJu1DFS3dT2cV3GpAR75/OofPNHQ==} - engines: {node: '>=14'} - peerDependencies: - '@opentelemetry/api': '>=1.0.0 <1.2.0' - dependencies: - '@opentelemetry/api': 1.1.0 - '@opentelemetry/core': 1.5.0(@opentelemetry/api@1.1.0) - '@opentelemetry/resources': 1.5.0(@opentelemetry/api@1.1.0) - '@opentelemetry/semantic-conventions': 1.5.0 - dev: false - - /@opentelemetry/sdk-trace-node@1.5.0(@opentelemetry/api@1.1.0): - resolution: {integrity: sha512-MzS+urf2KufpwgaHbGcUgccHr6paxI98lHFMgJAkK6w76AmPYavsxSwjiVPrchy/24d2J9svDirSgui3NNZo8g==} - engines: {node: '>=14'} - peerDependencies: - '@opentelemetry/api': '>=1.0.0 <1.2.0' - dependencies: - '@opentelemetry/api': 1.1.0 - '@opentelemetry/context-async-hooks': 1.5.0(@opentelemetry/api@1.1.0) - '@opentelemetry/core': 1.5.0(@opentelemetry/api@1.1.0) - '@opentelemetry/propagator-b3': 1.5.0(@opentelemetry/api@1.1.0) - '@opentelemetry/propagator-jaeger': 1.5.0(@opentelemetry/api@1.1.0) - '@opentelemetry/sdk-trace-base': 1.5.0(@opentelemetry/api@1.1.0) - semver: 7.5.0 - dev: false - - /@opentelemetry/semantic-conventions@1.5.0: - resolution: {integrity: sha512-wlYG/U6ddW1ilXslnDLLQYJ8nd97W8JJTTfwkGhubx6dzW6SUkd+N4/MzTjjyZlrHQunxHtkHFvVpUKiROvFDw==} - engines: {node: '>=14'} - dev: false - /@panva/hkdf@1.0.4: resolution: {integrity: sha512-003xWiCuvePbLaPHT+CRuaV4GlyCAVm6XYSbBZDHoWZGn1mNkVKFaDbGJjjxmEFvizUwlCoM6O18FCBMMky2zQ==} dev: false @@ -1661,49 +1458,6 @@ packages: resolution: {integrity: sha512-HrniowHRZXHuGT9XRgoXEaP2gJLXM5RMoItaY2PkjvuZ+iHc0Zjbm/302MB8YsPdWozAPHHn+jpFEcEn71OgPw==} requiresBuild: true - /@protobufjs/aspromise@1.1.2: - resolution: {integrity: sha512-j+gKExEuLmKwvz3OgROXtrJ2UG2x8Ch2YZUxahh+s1F2HZ+wAceUNLkvy6zKCPVRkU++ZWQrdxsUeQXmcg4uoQ==} - dev: false - - /@protobufjs/base64@1.1.2: - resolution: {integrity: sha512-AZkcAA5vnN/v4PDqKyMR5lx7hZttPDgClv83E//FMNhR2TMcLUhfRUBHCmSl0oi9zMgDDqRUJkSxO3wm85+XLg==} - dev: false - - /@protobufjs/codegen@2.0.4: - resolution: {integrity: sha512-YyFaikqM5sH0ziFZCN3xDC7zeGaB/d0IUb9CATugHWbd1FRFwWwt4ld4OYMPWu5a3Xe01mGAULCdqhMlPl29Jg==} - dev: false - - /@protobufjs/eventemitter@1.1.0: - resolution: {integrity: sha512-j9ednRT81vYJ9OfVuXG6ERSTdEL1xVsNgqpkxMsbIabzSo3goCjDIveeGv5d03om39ML71RdmrGNjG5SReBP/Q==} - dev: false - - /@protobufjs/fetch@1.1.0: - resolution: {integrity: sha512-lljVXpqXebpsijW71PZaCYeIcE5on1w5DlQy5WH6GLbFryLUrBD4932W/E2BSpfRJWseIL4v/KPgBFxDOIdKpQ==} - dependencies: - '@protobufjs/aspromise': 1.1.2 - '@protobufjs/inquire': 1.1.0 - dev: false - - /@protobufjs/float@1.0.2: - resolution: {integrity: sha512-Ddb+kVXlXst9d+R9PfTIxh1EdNkgoRe5tOX6t01f1lYWOvJnSPDBlG241QLzcyPdoNTsblLUdujGSE4RzrTZGQ==} - dev: false - - /@protobufjs/inquire@1.1.0: - resolution: {integrity: sha512-kdSefcPdruJiFMVSbn801t4vFK7KB/5gd2fYvrxhuJYg8ILrmn9SKSX2tZdV6V+ksulWqS7aXjBcRXl3wHoD9Q==} - dev: false - - /@protobufjs/path@1.1.2: - resolution: {integrity: sha512-6JOcJ5Tm08dOHAbdR3GrvP+yUUfkjG5ePsHYczMFLq3ZmMkAD98cDgcT2iA1lJ9NVwFd4tH/iSSoe44YWkltEA==} - dev: false - - /@protobufjs/pool@1.1.0: - resolution: {integrity: sha512-0kELaGSIDBKvcgS4zkjz1PeddatrjYcmMWOlAuAPwAeccUrPHdUqo/J6LiymHHEiJT5NrF1UVwxY14f+fy4WQw==} - dev: false - - /@protobufjs/utf8@1.1.0: - resolution: {integrity: sha512-Vvn3zZrhQZkkBE8LSuW3em98c0FwgO4nxzv6OdSxPKJIEKY2bGbHn+mhGIPerzI4twdxaP8/0+06HBpwf345Lw==} - dev: false - /@radix-ui/number@1.0.0: resolution: {integrity: sha512-Ofwh/1HX69ZfJRiRBMTy7rgjAzHmwe4kW9C9Y99HTRUcYLUuVT0KESFj15rPjRgKJs20GPq8Bm5aEDJ8DuA3vA==} dependencies: @@ -2702,6 +2456,9 @@ packages: resolution: {integrity: sha512-sXo/qW2/pAcmT43VoRKOJbDOfV3cYpq3szSVfIThQXNt+E4DfKj361vaAt3c88U5tPUxzEswam7GW48PJqtKAg==} dev: true + /@shikijs/core@1.1.7: + resolution: {integrity: sha512-gTYLUIuD1UbZp/11qozD3fWpUTuMqPSf3svDMMrL0UmlGU7D9dPw/V1FonwAorCUJBltaaESxq90jrSjQyGixg==} + /@shuding/opentype.js@1.4.0-beta.0: resolution: {integrity: sha512-3NgmNyH3l/Hv6EvsWJbsvpcpUba6R8IREQ83nH83cyakCw7uM1arZKNfHwv1Wz6jgqrF/j4x5ELvR6PnK9nTcA==} engines: {node: '>= 8.0.0'} @@ -2717,21 +2474,21 @@ packages: tslib: 2.5.0 dev: false - /@t3-oss/env-core@0.2.2(zod@3.21.4): + /@t3-oss/env-core@0.2.2(zod@3.22.4): resolution: {integrity: sha512-Jiuph14/L3L9EDaU0O0YiLeaKUcWA9c3mWYuKem8+L64i3Iwz+IbKdl5Jp4cx+JbOsS/aptwGZplnxSHhm2gMQ==} peerDependencies: zod: ^3.0.0 dependencies: - zod: 3.21.4 + zod: 3.22.4 dev: false - /@t3-oss/env-nextjs@0.2.2(zod@3.21.4): + /@t3-oss/env-nextjs@0.2.2(zod@3.22.4): resolution: {integrity: sha512-9LnVpTkf/8WkggyVN6Liz9Ma9a7fLzV00b5BngWj3HI3iWDfddsWaqCf/H0f46Bgu29NubP3Bwajf1JieVrxFA==} peerDependencies: zod: ^3.0.0 dependencies: - '@t3-oss/env-core': 0.2.2(zod@3.21.4) - zod: 3.21.4 + '@t3-oss/env-core': 0.2.2(zod@3.22.4) + zod: 3.22.4 dev: false /@tailwindcss/line-clamp@0.4.4(tailwindcss@3.3.1): @@ -2769,23 +2526,23 @@ packages: /@types/acorn@4.0.6: resolution: {integrity: sha512-veQTnWP+1D/xbxVrPC3zHnCZRjSrKfhbMUlEA43iMZLu7EsnTtkJklIuwrCPbOi8YkvDQAiW05VQQFvvz9oieQ==} dependencies: - '@types/estree': 1.0.1 - dev: false + '@types/estree': 1.0.5 + dev: true - /@types/debug@4.1.7: - resolution: {integrity: sha512-9AonUzyTjXXhEOa0DnqpzZi6VHlqKMswga9EXjpXnnqxwLtdvPPtlO8evrI5D9S6asFRCQ6v+wpiUKbw+vKqyg==} + /@types/debug@4.1.12: + resolution: {integrity: sha512-vIChWdVG3LG1SMxEvI/AK+FWJthlrqlTu7fbrlywTkkaONwk/UAGaULXRlf8vkzFBLVm0zkMdCquhL5aOjhXPQ==} dependencies: - '@types/ms': 0.7.31 + '@types/ms': 0.7.34 - /@types/estree-jsx@1.0.0: - resolution: {integrity: sha512-3qvGd0z8F2ENTGr/GG1yViqfiKmRfrXVx5sJyHGFu3z7m5g5utCQtGp/g29JnjflhtQJBv1WDQukHiT58xPcYQ==} + /@types/estree-jsx@1.0.5: + resolution: {integrity: sha512-52CcUVNFyfb1A2ALocQw/Dd1BQFNmSdkuC3BkZ6iqhdMfQz7JWOFRuJFloOzjk+6WijU56m9oKXFAXc7o3Towg==} dependencies: - '@types/estree': 1.0.1 - dev: false + '@types/estree': 1.0.5 + dev: true - /@types/estree@1.0.1: - resolution: {integrity: sha512-LG4opVs2ANWZ1TJoKc937iMmNstM/d0ae1vNbnBvBhqCSezgVUOzcLCqbI5elV8Vy6WKwKjaqR+zO9VKirBBCA==} - dev: false + /@types/estree@1.0.5: + resolution: {integrity: sha512-/kYRxGDLWzHOB7q+wtSUQlFrtcdUccpfy+X+9iMBpHK8QLLhx2wIPYuS5DYtR9Wa/YlZAbIovy7qVdB1Aq6Lyw==} + dev: true /@types/extend@3.0.1: resolution: {integrity: sha512-R1g/VyKFFI2HLC1QGAeTtCBWCo6n75l41OnsVYNbmKG+kempOESaodf6BeJyUM3Q0rKa/NQcTHbB2+66lNnxLw==} @@ -2795,23 +2552,32 @@ packages: resolution: {integrity: sha512-wLEm0QvaoawEDoTRwzTXp4b4jpwiJDvR5KMnFnVodm3scufTlBOWRD6N1OBf9TZMhjlNsSfcO5V+7AF4+Vy+9g==} dependencies: '@types/unist': 2.0.6 + dev: true + + /@types/hast@3.0.4: + resolution: {integrity: sha512-WPs+bbQw5aCj+x6laNGWLH3wviHtoCv/P3+otBhbOhJgG8qtpdAMlTCxLtsTWA7LH1Oh/bFCHsBn0TPS5m30EQ==} + dependencies: + '@types/unist': 3.0.2 + dev: true /@types/json5@0.0.29: resolution: {integrity: sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==} dev: true - /@types/long@4.0.2: - resolution: {integrity: sha512-MqTGEo5bj5t157U6fA/BiDynNkn0YknVdh48CMPkTSpFTVmvao5UQmm7uEF6xBEo7qIMAlY/JSleYaE6VOdpaA==} - dev: false - /@types/mdast@3.0.11: resolution: {integrity: sha512-Y/uImid8aAwrEA24/1tcRZwpxX3pIFTSilcNDKSPn+Y2iDywSEachzRuvgAYYLR3wpGXAsMbv5lvKLDZLeYPAw==} dependencies: '@types/unist': 2.0.6 + dev: true - /@types/mdx@2.0.4: - resolution: {integrity: sha512-qCYrNdpKwN6YO6FVnx+ulfqifKlE3lQGsNhvDaW9Oxzyob/cRLBJWow8GHBBD4NxQ7BVvtsATgLsX0vZAWmtrg==} - dev: false + /@types/mdast@4.0.3: + resolution: {integrity: sha512-LsjtqsyF+d2/yFOYaN22dHZI1Cpwkrj+g06G8+qtUKlhovPW89YhqSnfKtMbkgmEtYpH2gydRNULd6y8mciAFg==} + dependencies: + '@types/unist': 3.0.2 + + /@types/mdx@2.0.11: + resolution: {integrity: sha512-HM5bwOaIQJIQbAYfax35HCKxx7a3KrK3nBtIqJgSOitivTD1y3oW9P3rxY9RkXYPUk7y/AjAohfHKmFpGE79zw==} + dev: true /@types/minimatch@3.0.5: resolution: {integrity: sha512-Klz949h02Gz2uZCMGwDUSDS1YBlTdDDgbWHi+81l29tQALUtvz4rAYi5uoVhE5Lagoq6DeqAUlbrHvW/mXDgdQ==} @@ -2821,8 +2587,8 @@ packages: resolution: {integrity: sha512-jhuKLIRrhvCPLqwPcx6INqmKeiA5EWrsCOPhrlFSrbrmU4ZMPjj5Ul/oLCMDO98XRUIwVm78xICz4EPCektzeQ==} dev: true - /@types/ms@0.7.31: - resolution: {integrity: sha512-iiUgKzV9AuaEkZqkOLDIvlQiL6ltuZd9tGcW3gwpnX8JbuiuhFlEGmmFXEXkN50Cvq7Os88IY2v0dkDqXYWVgA==} + /@types/ms@0.7.34: + resolution: {integrity: sha512-nG96G3Wp6acyAgJqGasjODb+acrI7KltPiRxzHPXnP3NgI28bpQDRv53olbqGXbfcgF5aiiHmO3xpwEpS5Ld9g==} /@types/node@18.16.0: resolution: {integrity: sha512-BsAaKhB+7X+H4GnSjGhJG9Qi8Tw+inU9nJDwmD5CgOmBLEI6ArdhikpLX7DjbjDRDTbqZzU2LSQNZg8WGPiSZQ==} @@ -2833,6 +2599,7 @@ packages: /@types/parse5@6.0.3: resolution: {integrity: sha512-SuT16Q1K51EAVPz1K29DJ/sXjhSQ0zjvsypYJ6tlwVsRV9jwW5Adq2ch8Dq8kDBCkYnELS7N7VNCSB5nC56t/g==} + dev: true /@types/prop-types@15.7.5: resolution: {integrity: sha512-JCB8C6SnDoQf0cNycqd/35A7MjcnK+ZTqE7judS6o7utxUCg6imJg3QK2qzHKszlTjcj2cn+NwMB2i96ubpj7w==} @@ -2850,15 +2617,15 @@ packages: '@types/scheduler': 0.16.3 csstype: 3.1.2 - /@types/resolve@1.20.2: - resolution: {integrity: sha512-60BCwRFOZCQhDncwQdxxeOEEkbc5dIMccYLwbxsS4TUNeVECQ/pBJ0j09mrHOl/JJvpRPGwO9SvE4nR2Nb/a4Q==} - dev: false - /@types/scheduler@0.16.3: resolution: {integrity: sha512-5cJ8CB4yAx7BH1oMvdU0Jh9lrEXyPkar6F9G/ERswkCuvP4KQZfZkSjcMbAICCpQTN4OuZn8tz0HiKv9TGZgrQ==} /@types/unist@2.0.6: resolution: {integrity: sha512-PBjIUxZHOuj0R15/xuwJYjFi+KZdNFrehocChv4g5hu6aFroHue8m0lBP0POdK2nKzbw0cgV1mws8+V/JAcEkQ==} + dev: true + + /@types/unist@3.0.2: + resolution: {integrity: sha512-dqId9J8K/vGi5Zr7oo212BGii5m3q5Hxlkwy3WpYuKPklmBEvsbMYYyLxAQpSffdLl/gdW0XUpKWFvYmyoWCoQ==} /@types/yoga-layout@1.9.2: resolution: {integrity: sha512-S9q47ByT2pPvD65IvrWp7qppVMpk9WGMbVq9wbWZOHg6tnXSD4vyhao6nOSBwwfDdV2p3Kx9evA9vI+XWTfDvw==} @@ -2921,6 +2688,10 @@ packages: '@typescript-eslint/types': 5.59.0 eslint-visitor-keys: 3.4.0 + /@ungap/structured-clone@1.2.0: + resolution: {integrity: sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==} + dev: true + /@vercel/analytics@1.0.0(react@18.2.0): resolution: {integrity: sha512-RQmj7pv82JwGDHrnKeRc6TtSw2U7rWNubc2IH0ernTzWTj02yr9zvIYiYJeztsBzrJtWv7m8Nz6vxxb+cdEtJw==} peerDependencies: @@ -3011,12 +2782,6 @@ packages: /arg@5.0.2: resolution: {integrity: sha512-PYjyFOLKQ9y57JvQ6QLo8dAgNqswh8M1RMJYdQduT6xbWSgK36P/Z/v+p888pM69jMMfS8Xd8F6I1kQ/I9HUGg==} - /argparse@1.0.10: - resolution: {integrity: sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==} - dependencies: - sprintf-js: 1.0.3 - dev: false - /argparse@2.0.1: resolution: {integrity: sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==} @@ -3060,10 +2825,6 @@ packages: is-string: 1.0.7 dev: true - /array-timsort@1.0.3: - resolution: {integrity: sha512-/+3GRL7dDAGEfM6TseQk/U+mi18TU2Ms9I3UlLdUMhz2hbvGNTKdj9xniwXfUqgYhHxRx0+8UnKkvlNwVU+cWQ==} - dev: false - /array-union@2.1.0: resolution: {integrity: sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==} engines: {node: '>=8'} @@ -3112,10 +2873,10 @@ packages: resolution: {integrity: sha512-eBvWn1lvIApYMhzQMsu9ciLfkBY499mFZlNqG+/9WR7PVlroQw0vG30cOQQbaKz3sCEc44TAOu2ykzqXSNnwag==} dev: true - /astring@1.8.4: - resolution: {integrity: sha512-97a+l2LBU3Op3bBQEff79i/E4jMD2ZLFD8rHx9B6mXyB2uQwhJQYfiDqUwtfjF4QA1F2qs//N6Cw8LetMbQjcw==} + /astring@1.8.6: + resolution: {integrity: sha512-ISvCdHdlTDlH5IpxQJIex7BWBywFWgjJSVdwst+/iQCoEYnyOaQ95+X1JGshuBjGp6nxKUy1jMgE3zPqN7fQdg==} hasBin: true - dev: false + dev: true /autoprefixer@10.4.14(postcss@8.4.23): resolution: {integrity: sha512-FQzyfOsTlwVzjHxKEqRIAdJx9niO6VCBCoEwax/VLSoQF29ggECcPuBqUMZ+u8jCZOPSy8b8/8KnuFbp0SaFZQ==} @@ -3163,22 +2924,10 @@ packages: /balanced-match@1.0.2: resolution: {integrity: sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==} - /base64-js@1.5.1: - resolution: {integrity: sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==} - dev: false - /binary-extensions@2.2.0: resolution: {integrity: sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==} engines: {node: '>=8'} - /bl@4.1.0: - resolution: {integrity: sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w==} - dependencies: - buffer: 5.7.1 - inherits: 2.0.4 - readable-stream: 3.6.2 - dev: false - /brace-expansion@1.1.11: resolution: {integrity: sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==} dependencies: @@ -3203,14 +2952,7 @@ packages: /buffer-from@1.1.2: resolution: {integrity: sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==} - dev: false - - /buffer@5.7.1: - resolution: {integrity: sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==} - dependencies: - base64-js: 1.5.1 - ieee754: 1.2.1 - dev: false + dev: true /busboy@1.6.0: resolution: {integrity: sha512-8SFQbg/0hQ9xy3UNTB0YEnsNBbWfhf7RtnzpL7TkBiTBRfrQ9Fxcnz7VJsleJpyp6rVLvXiuORqjlHi5q+PYuA==} @@ -3229,13 +2971,6 @@ packages: resolution: {integrity: sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==} engines: {node: '>=6'} - /camel-case@4.1.2: - resolution: {integrity: sha512-gxGWBrTT1JuMx6R+o5PTXMmUnhnVzLQ9SNutD4YqKtI6ap897t3tKECYla6gCWEkplXnlNybEkZg9GEGxKFCgw==} - dependencies: - pascal-case: 3.1.2 - tslib: 2.5.0 - dev: false - /camelcase-css@2.0.1: resolution: {integrity: sha512-QOSvevhslijgYwRx6Rv7zKdMF8lbRmx+uQGx2+vDc+KI/eBnsy9kit5aj23AgGu3pa4t9AgwbnXWqS+iOY+2aA==} engines: {node: '>= 6'} @@ -3263,6 +2998,7 @@ packages: /ccount@2.0.1: resolution: {integrity: sha512-eyrF0jiFpY+3drT6383f1qhkbGsLSifNAjA61IUjZjmLCWjItY6LB9ft9YhoDgwfmclB2zhu51Lc7+95b8NRAg==} + dev: true /chalk@2.4.2: resolution: {integrity: sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==} @@ -3289,16 +3025,18 @@ packages: /character-entities-html4@2.1.0: resolution: {integrity: sha512-1v7fgQRj6hnSwFpq1Eu0ynr/CDEw0rXo2B61qXrLNdHZmPKgb7fqS1a2JwF0rISo9q77jDI8VMEHoApn8qDoZA==} + dev: true /character-entities-legacy@3.0.0: resolution: {integrity: sha512-RpPp0asT/6ufRm//AJVwpViZbGM/MkjQFxJccQRHmISF/22NBtsHqAWmL+/pmkPWoIUJdWyeVleTl1wydHATVQ==} + dev: true /character-entities@2.0.2: resolution: {integrity: sha512-shx7oQ0Awen/BRIdkjkvz54PnEEI/EjwXDSIZp86/KKdbafHh1Df/RYGBhn4hbe2+uKC9FnT5UCEdyPz3ai9hQ==} /character-reference-invalid@2.0.1: resolution: {integrity: sha512-iBZ4F4wRbyORVsu0jPV7gXkOsGYjGHPmAyv+HiHG8gi5PtC9KI2j1+v8/tlibRvjoWX027ypmG/n0HtO5t7unw==} - dev: false + dev: true /chokidar@3.5.3: resolution: {integrity: sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==} @@ -3314,10 +3052,6 @@ packages: optionalDependencies: fsevents: 2.3.2 - /chownr@1.1.4: - resolution: {integrity: sha512-jJ0bqzaylmJtVnNgzTeSOs8DPavpbYgEr/b0YL8/2GO3xJEhInFmhKMUnEJQjZumK7KXGFhUy89PrsJWlakBVg==} - dev: false - /class-variance-authority@0.4.0(typescript@4.7.4): resolution: {integrity: sha512-74enNN8O9ZNieycac/y8FxqgyzZhZbxmCitAtAeUrLPlxjSd5zA7LfpprmxEcOmQBnaGs5hYhiSGnJ0mqrtBLQ==} peerDependencies: @@ -3333,22 +3067,6 @@ packages: resolution: {integrity: sha512-IV3Ou0jSMzZrd3pZ48nLkT9DA7Ag1pnPzaiQhpW7c3RbcqqzvzzVu+L8gfqMp/8IM2MQtSiqaCxrrcfu8I8rMA==} dev: false - /clipanion@3.2.0(typanion@3.12.1): - resolution: {integrity: sha512-XaPQiJQZKbyaaDbv5yR/cAt/ORfZfENkr4wGQj+Go/Uf/65ofTQBCPirgWFeJctZW24V3mxrFiEnEmqBflrJYA==} - peerDependencies: - typanion: '*' - dependencies: - typanion: 3.12.1 - dev: false - - /cliui@7.0.4: - resolution: {integrity: sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==} - dependencies: - string-width: 4.2.3 - strip-ansi: 6.0.1 - wrap-ansi: 7.0.0 - dev: false - /cliui@8.0.1: resolution: {integrity: sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==} engines: {node: '>=12'} @@ -3356,6 +3074,7 @@ packages: string-width: 4.2.3 strip-ansi: 6.0.1 wrap-ansi: 7.0.0 + dev: true /clsx@1.2.1: resolution: {integrity: sha512-EcR6r5a8bj6pu3ycsa/E/cKVGuTgZJZdsyUYHOksG/UHIiKfjxzRxYJpyVBwYaQeOvghal9fcc4PidlgzugAQg==} @@ -3384,6 +3103,10 @@ packages: resolution: {integrity: sha512-IuA8LeyLU5p1B+HyhOsqR6oxyFQ11k3i9e9aXw40CrHFTRO2Y1npNBVU3W1SvhKAbUU7R/YikUBdcYFP0RcJag==} dev: false + /collapse-white-space@2.1.0: + resolution: {integrity: sha512-loKTxY1zCOuG4j9f6EPnuyyYkf58RnhhWTvRoZEokgB+WbdXehfjFviyOVYkqzEWz1Q5kRiZdBYS5SwxbQYwzw==} + dev: true + /color-convert@1.9.3: resolution: {integrity: sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==} dependencies: @@ -3406,7 +3129,6 @@ packages: dependencies: color-name: 1.1.4 simple-swizzle: 0.2.2 - dev: false /color@4.2.3: resolution: {integrity: sha512-1rXeuUUiGGrykh+CeBdu5Ie7OJwinCgQY0bc7GCRxy5xVHy+moaqkpL/jqQq0MtQOeYcrqEz4abc5f0KtU7W4A==} @@ -3414,30 +3136,23 @@ packages: dependencies: color-convert: 2.0.1 color-string: 1.9.1 - dev: false /comma-separated-tokens@2.0.3: resolution: {integrity: sha512-Fu4hJdvzeylCfQPp9SGWidpzrMs7tTrlu6Vb8XGaRGck8QSNZJJp538Wrb60Lax4fPwR64ViY468OIUTbRlGZg==} + dev: true /command-score@0.1.2: resolution: {integrity: sha512-VtDvQpIJBvBatnONUsPzXYFVKQQAhuf3XTNOAsdBxCNO/QCtUUd8LSgjn0GVarBkCad6aJCZfXgrjYbl/KRr7w==} dev: false + /commander@2.20.3: + resolution: {integrity: sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==} + dev: true + /commander@4.1.1: resolution: {integrity: sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA==} engines: {node: '>= 6'} - /comment-json@4.2.3: - resolution: {integrity: sha512-SsxdiOf064DWoZLH799Ata6u7iV658A11PlWtZATDlXPpKGJnbJZ5Z24ybixAi+LUUqJ/GKowAejtC5GFUG7Tw==} - engines: {node: '>= 6'} - dependencies: - array-timsort: 1.0.3 - core-util-is: 1.0.3 - esprima: 4.0.1 - has-own-prop: 2.0.0 - repeat-string: 1.6.1 - dev: false - /compare-func@2.0.0: resolution: {integrity: sha512-zHig5N+tPWARooBnb0Zx1MFcdfpyJrfTJ3Y5L+IFvUm8rM74hHz66z0gw0x4tijh5CorKkKUCnW82R2vmpeCRA==} dependencies: @@ -3448,41 +3163,6 @@ packages: /concat-map@0.0.1: resolution: {integrity: sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==} - /concurrently@8.0.1: - resolution: {integrity: sha512-Sh8bGQMEL0TAmAm2meAXMjcASHZa7V0xXQVDBLknCPa9TPtkY9yYs+0cnGGgfdkW0SV1Mlg+hVGfXcoI8d3MJA==} - engines: {node: ^14.13.0 || >=16.0.0} - hasBin: true - dependencies: - chalk: 4.1.2 - date-fns: 2.29.3 - lodash: 4.17.21 - rxjs: 7.8.0 - shell-quote: 1.8.1 - spawn-command: 0.0.2-1 - supports-color: 8.1.1 - tree-kill: 1.2.2 - yargs: 17.7.1 - dev: false - - /contentlayer@0.3.1(esbuild@0.17.18): - resolution: {integrity: sha512-JWpsXHhMwJj0EWn1mg/nrGjepEDsk+C8key1fiaropM05y7ESsVPrl4djtTkDRd4b5V+GAWbKnmOo/kwv+hS7Q==} - engines: {node: '>=14.18'} - hasBin: true - requiresBuild: true - dependencies: - '@contentlayer/cli': 0.3.1(esbuild@0.17.18) - '@contentlayer/client': 0.3.1(esbuild@0.17.18) - '@contentlayer/core': 0.3.1(esbuild@0.17.18) - '@contentlayer/source-files': 0.3.1(esbuild@0.17.18) - '@contentlayer/source-remote-files': 0.3.1(esbuild@0.17.18) - '@contentlayer/utils': 0.3.1 - transitivePeerDependencies: - - '@effect-ts/otel-node' - - esbuild - - markdown-wasm - - supports-color - dev: false - /conventional-changelog-angular@5.0.13: resolution: {integrity: sha512-i/gipMxs7s8L/QeuavPF2hLnJgH6pEZAttySB6aiQLWcX3puWDL3ACVmvBhJGxnAy52Qc15ua26BufY6KpmrVA==} engines: {node: '>=10'} @@ -3521,10 +3201,6 @@ packages: engines: {node: '>= 0.6'} dev: false - /core-util-is@1.0.3: - resolution: {integrity: sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==} - dev: false - /cosmiconfig-typescript-loader@4.3.0(@types/node@18.16.0)(cosmiconfig@8.1.3)(ts-node@10.9.1)(typescript@4.7.4): resolution: {integrity: sha512-NTxV1MFfZDLPiBMjxbHRwSh5LaLcPMwNdCutmnHJCKoVnlvldPWlllonKwrsRJ5pYZBIBGRWWU2tfvzxgeSW5Q==} engines: {node: '>=12', npm: '>=6'} @@ -3599,11 +3275,6 @@ packages: engines: {node: '>=8'} dev: true - /data-uri-to-buffer@4.0.1: - resolution: {integrity: sha512-0R9ikRb668HB7QDxT1vkpuUBtqc53YyAwMwGeUFKRojY/NWKvdZ+9UYtRfGmhqNbRkTSVpMbmyhXipFFv2cb/A==} - engines: {node: '>= 12'} - dev: false - /date-fns@2.29.3: resolution: {integrity: sha512-dDCnyH2WnnKusqvZZ6+jA1O51Ibt8ZMRNkDZdyAyK4YfbDwa/cEmuztzG5pk6hqlp9aSBPYcjOlktquahGwGeA==} engines: {node: '>=0.11'} @@ -3649,13 +3320,6 @@ packages: dependencies: character-entities: 2.0.2 - /decompress-response@6.0.0: - resolution: {integrity: sha512-aW35yZM6Bb/4oJlZncMH2LCoZtJXTRxES17vE3hoRiowU2kWHaJKFkSBDnDR+cm9J+9QhXmREyIfv0pji9ejCQ==} - engines: {node: '>=10'} - dependencies: - mimic-response: 3.1.0 - dev: false - /deep-equal@2.2.0: resolution: {integrity: sha512-RdpzE0Hv4lhowpIUKKMJfeH6C1pXdtT1/it80ubgWqwI3qpuxUBpC1S4hnHg+zjnuOoDkzUtUCEEkG+XG5l3Mw==} dependencies: @@ -3678,11 +3342,6 @@ packages: which-typed-array: 1.1.9 dev: true - /deep-extend@0.6.0: - resolution: {integrity: sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==} - engines: {node: '>=4.0.0'} - dev: false - /deep-is@0.1.4: resolution: {integrity: sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==} @@ -3698,15 +3357,19 @@ packages: resolution: {integrity: sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==} engines: {node: '>=6'} - /detect-libc@2.0.1: - resolution: {integrity: sha512-463v3ZeIrcWtdgIg6vI6XUncguvr2TnGl4SzDXinkt9mSLpBJKXT3mW6xT3VQdDN11+WVs29pgvivTc4Lp8v+w==} + /detect-libc@2.0.2: + resolution: {integrity: sha512-UX6sGumvvqSaXgdKGUsgZWqcUyIXZ/vZTrlRT/iobiKhGL0zL4d3osHj3uqllWJK+i+sixDS/3COVEOFbupFyw==} engines: {node: '>=8'} - dev: false /detect-node-es@1.1.0: resolution: {integrity: sha512-ypdmJU/TbBby2Dxibuv7ZLW3Bs1QEmM7nHjEANfohJLvE0XVujisn1qPJcZxg+qDucsr+bP6fLD1rPS3AhJ7EQ==} dev: false + /devlop@1.1.0: + resolution: {integrity: sha512-RWmIqhcFf1lRYBvNmr7qTNuyCt/7/ns2jbpp1+PalgE/rDQcBT0fioSMUpJ93irlUhC5hrg4cYqe6U+0ImW0rA==} + dependencies: + dequal: 2.0.3 + /didyoumean@1.2.2: resolution: {integrity: sha512-gxtyfqMg7GKyhQmb056K7M3xszy/myH8w+B4RT+QXBQsvAOdc3XymqDDPHx1BgPgsdAA5SIifona89YtRATDzw==} @@ -3714,10 +3377,6 @@ packages: resolution: {integrity: sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==} engines: {node: '>=0.3.1'} - /diff@5.1.0: - resolution: {integrity: sha512-D+mk+qE8VC/PAUrlAU34N+VfXev0ghe5ywmpqrawphmVZc1bEfn56uo9qpyGp1p4xpzOHkSW4ztBd6L7Xx4ACw==} - engines: {node: '>=0.3.1'} - /dir-glob@3.0.1: resolution: {integrity: sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==} engines: {node: '>=8'} @@ -3756,6 +3415,7 @@ packages: /emoji-regex@8.0.0: resolution: {integrity: sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==} + dev: true /emoji-regex@9.2.2: resolution: {integrity: sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==} @@ -3765,6 +3425,12 @@ packages: resolution: {integrity: sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==} dependencies: once: 1.4.0 + dev: true + + /entities@4.5.0: + resolution: {integrity: sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==} + engines: {node: '>=0.12'} + dev: true /error-ex@1.3.2: resolution: {integrity: sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==} @@ -3850,35 +3516,36 @@ packages: is-symbol: 1.0.4 dev: true - /esbuild@0.17.18: - resolution: {integrity: sha512-z1lix43jBs6UKjcZVKOw2xx69ffE2aG0PygLL5qJ9OS/gy0Ewd1gW/PUQIOIQGXBHWNywSc0floSKoMFF8aK2w==} + /esbuild@0.20.0: + resolution: {integrity: sha512-6iwE3Y2RVYCME1jLpBqq7LQWK3MW6vjV2bZy6gt/WrqkY+WE74Spyc0ThAOYpMtITvnjX09CrC6ym7A/m9mebA==} engines: {node: '>=12'} hasBin: true requiresBuild: true optionalDependencies: - '@esbuild/android-arm': 0.17.18 - '@esbuild/android-arm64': 0.17.18 - '@esbuild/android-x64': 0.17.18 - '@esbuild/darwin-arm64': 0.17.18 - '@esbuild/darwin-x64': 0.17.18 - '@esbuild/freebsd-arm64': 0.17.18 - '@esbuild/freebsd-x64': 0.17.18 - '@esbuild/linux-arm': 0.17.18 - '@esbuild/linux-arm64': 0.17.18 - '@esbuild/linux-ia32': 0.17.18 - '@esbuild/linux-loong64': 0.17.18 - '@esbuild/linux-mips64el': 0.17.18 - '@esbuild/linux-ppc64': 0.17.18 - '@esbuild/linux-riscv64': 0.17.18 - '@esbuild/linux-s390x': 0.17.18 - '@esbuild/linux-x64': 0.17.18 - '@esbuild/netbsd-x64': 0.17.18 - '@esbuild/openbsd-x64': 0.17.18 - '@esbuild/sunos-x64': 0.17.18 - '@esbuild/win32-arm64': 0.17.18 - '@esbuild/win32-ia32': 0.17.18 - '@esbuild/win32-x64': 0.17.18 - dev: false + '@esbuild/aix-ppc64': 0.20.0 + '@esbuild/android-arm': 0.20.0 + '@esbuild/android-arm64': 0.20.0 + '@esbuild/android-x64': 0.20.0 + '@esbuild/darwin-arm64': 0.20.0 + '@esbuild/darwin-x64': 0.20.0 + '@esbuild/freebsd-arm64': 0.20.0 + '@esbuild/freebsd-x64': 0.20.0 + '@esbuild/linux-arm': 0.20.0 + '@esbuild/linux-arm64': 0.20.0 + '@esbuild/linux-ia32': 0.20.0 + '@esbuild/linux-loong64': 0.20.0 + '@esbuild/linux-mips64el': 0.20.0 + '@esbuild/linux-ppc64': 0.20.0 + '@esbuild/linux-riscv64': 0.20.0 + '@esbuild/linux-s390x': 0.20.0 + '@esbuild/linux-x64': 0.20.0 + '@esbuild/netbsd-x64': 0.20.0 + '@esbuild/openbsd-x64': 0.20.0 + '@esbuild/sunos-x64': 0.20.0 + '@esbuild/win32-arm64': 0.20.0 + '@esbuild/win32-ia32': 0.20.0 + '@esbuild/win32-x64': 0.20.0 + dev: true /escalade@3.1.1: resolution: {integrity: sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==} @@ -3892,11 +3559,6 @@ packages: resolution: {integrity: sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==} engines: {node: '>=10'} - /escape-string-regexp@5.0.0: - resolution: {integrity: sha512-/veY75JbMK4j1yjvuUxuVsiS/hr/4iHs9FTT6cgTexxdE0Ly/glccBAkloH/DofkjRbZU3bnoj38mOmhkZ0lHw==} - engines: {node: '>=12'} - dev: true - /eslint-config-next@13.0.0(eslint@8.39.0)(typescript@4.7.4): resolution: {integrity: sha512-y2nqWS2tycWySdVhb+rhp6CuDmDazGySqkzzQZf3UTyfHyC7og1m5m/AtMFwCo5mtvDqvw1BENin52kV9733lg==} peerDependencies: @@ -4158,12 +3820,6 @@ packages: acorn-jsx: 5.3.2(acorn@8.8.2) eslint-visitor-keys: 3.4.0 - /esprima@4.0.1: - resolution: {integrity: sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==} - engines: {node: '>=4'} - hasBin: true - dev: false - /esquery@1.5.0: resolution: {integrity: sha512-YQLXUplAwJgCydQ78IMJywZCceoqk1oH01OERdSAJc/7U2AylwjhSCLDEtqwg811idIS/9fIU5GjG73IgjKMVg==} engines: {node: '>=0.10'} @@ -4180,55 +3836,45 @@ packages: resolution: {integrity: sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==} engines: {node: '>=4.0'} - /estree-util-attach-comments@2.1.1: - resolution: {integrity: sha512-+5Ba/xGGS6mnwFbXIuQiDPTbuTxuMCooq3arVv7gPZtYpjp+VXH/NkHAP35OOefPhNG/UGqU3vt/LTABwcHX0w==} + /estree-util-attach-comments@3.0.0: + resolution: {integrity: sha512-cKUwm/HUcTDsYh/9FgnuFqpfquUbwIqwKM26BVCGDPVgvaCl/nDCCjUfiLlx6lsEZ3Z4RFxNbOQ60pkaEwFxGw==} dependencies: - '@types/estree': 1.0.1 - dev: false + '@types/estree': 1.0.5 + dev: true - /estree-util-build-jsx@2.2.2: - resolution: {integrity: sha512-m56vOXcOBuaF+Igpb9OPAy7f9w9OIkb5yhjsZuaPm7HoGi4oTOQi0h2+yZ+AtKklYFZ+rPC4n0wYCJCEU1ONqg==} + /estree-util-build-jsx@3.0.1: + resolution: {integrity: sha512-8U5eiL6BTrPxp/CHbs2yMgP8ftMhR5ww1eIKoWRMlqvltHF8fZn5LRDvTKuxD3DUn+shRbLGqXemcP51oFCsGQ==} dependencies: - '@types/estree-jsx': 1.0.0 - estree-util-is-identifier-name: 2.1.0 + '@types/estree-jsx': 1.0.5 + devlop: 1.1.0 + estree-util-is-identifier-name: 3.0.0 estree-walker: 3.0.3 - dev: false - - /estree-util-is-identifier-name@1.1.0: - resolution: {integrity: sha512-OVJZ3fGGt9By77Ix9NhaRbzfbDV/2rx9EP7YIDJTmsZSEc5kYn2vWcNccYyahJL2uAQZK2a5Or2i0wtIKTPoRQ==} - dev: false + dev: true - /estree-util-is-identifier-name@2.1.0: - resolution: {integrity: sha512-bEN9VHRyXAUOjkKVQVvArFym08BTWB0aJPppZZr0UNyAqWsLaVfAqP7hbaTJjzHifmB5ebnR8Wm7r7yGN/HonQ==} - dev: false + /estree-util-is-identifier-name@3.0.0: + resolution: {integrity: sha512-hFtqIDZTIUZ9BXLb8y4pYGyk6+wekIivNVTcmvk8NoOh+VeRn5y6cEHzbURrWbfp1fIqdVipilzj+lfaadNZmg==} + dev: true - /estree-util-to-js@1.2.0: - resolution: {integrity: sha512-IzU74r1PK5IMMGZXUVZbmiu4A1uhiPgW5hm1GjcOfr4ZzHaMPpLNJjR7HjXiIOzi25nZDrgFTobHTkV5Q6ITjA==} + /estree-util-to-js@2.0.0: + resolution: {integrity: sha512-WDF+xj5rRWmD5tj6bIqRi6CkLIXbbNQUcxQHzGysQzvHmdYG2G7p/Tf0J0gpxGgkeMZNTIjT/AoSvC9Xehcgdg==} dependencies: - '@types/estree-jsx': 1.0.0 - astring: 1.8.4 + '@types/estree-jsx': 1.0.5 + astring: 1.8.6 source-map: 0.7.4 - dev: false - - /estree-util-value-to-estree@1.3.0: - resolution: {integrity: sha512-Y+ughcF9jSUJvncXwqRageavjrNPAI+1M/L3BI3PyLp1nmgYTGUXU6t5z1Y7OWuThoDdhPME07bQU+d5LxdJqw==} - engines: {node: '>=12.0.0'} - dependencies: - is-plain-obj: 3.0.0 - dev: false + dev: true - /estree-util-visit@1.2.1: - resolution: {integrity: sha512-xbgqcrkIVbIG+lI/gzbvd9SGTJL4zqJKBFttUl5pP27KhAjtMKbX/mQXJ7qgyXpMgVy/zvpm0xoQQaGL8OloOw==} + /estree-util-visit@2.0.0: + resolution: {integrity: sha512-m5KgiH85xAhhW8Wta0vShLcUvOsh3LLPI2YVwcbio1l7E09NTLL1EyMZFM1OyWowoH0skScNbhOPl4kcBgzTww==} dependencies: - '@types/estree-jsx': 1.0.0 - '@types/unist': 2.0.6 - dev: false + '@types/estree-jsx': 1.0.5 + '@types/unist': 3.0.2 + dev: true /estree-walker@3.0.3: resolution: {integrity: sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==} dependencies: - '@types/estree': 1.0.1 - dev: false + '@types/estree': 1.0.5 + dev: true /esutils@2.0.3: resolution: {integrity: sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==} @@ -4264,18 +3910,6 @@ packages: strip-final-newline: 2.0.0 dev: true - /expand-template@2.0.3: - resolution: {integrity: sha512-XYfuKMvj4O35f/pOXLObndIRvyQ+/+6AhODh+OKWj9S9498pHHn/IMszH+gt0fBCRWMNfk1ZSp5x3AifmnI2vg==} - engines: {node: '>=6'} - dev: false - - /extend-shallow@2.0.1: - resolution: {integrity: sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug==} - engines: {node: '>=0.10.0'} - dependencies: - is-extendable: 0.1.1 - dev: false - /extend@3.0.2: resolution: {integrity: sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==} @@ -4303,22 +3937,8 @@ packages: dependencies: reusify: 1.0.4 - /fault@2.0.1: - resolution: {integrity: sha512-WtySTkS4OKev5JtpHXnib4Gxiurzh5NCGvWrFaZ34m6JehfTUhKZvn9njTfw48t6JumVQOmrKqpmGcdwxnhqBQ==} - dependencies: - format: 0.2.2 - dev: false - - /fetch-blob@3.2.0: - resolution: {integrity: sha512-7yAQpD2UMJzLi1Dqv7qFYnPbaPx7ZfFK6PiIxQ4PfkGPyNyl2Ugx+a/umUonmKqjhM4DnfbMvdX6otXq83soQQ==} - engines: {node: ^12.20 || >= 14.13} - dependencies: - node-domexception: 1.0.0 - web-streams-polyfill: 3.2.1 - dev: false - - /fflate@0.7.4: - resolution: {integrity: sha512-5u2V/CDW15QM1XbbgS+0DfPxVB+jUKhWEKuuFuHncbk3tEEqzmoXL+2KyOFuKGqOnmdIy0/davWF1CkuwtibCw==} + /fflate@0.7.4: + resolution: {integrity: sha512-5u2V/CDW15QM1XbbgS+0DfPxVB+jUKhWEKuuFuHncbk3tEEqzmoXL+2KyOFuKGqOnmdIy0/davWF1CkuwtibCw==} dev: false /file-entry-cache@6.0.1: @@ -4374,26 +3994,10 @@ packages: is-callable: 1.2.7 dev: true - /format@0.2.2: - resolution: {integrity: sha512-wzsgA6WOq+09wrU1tsJ09udeR/YZRaeArL9e1wPbFg3GG2yDnC2ldKpxs4xunpFF9DgqCqOIra3bc1HWrJ37Ww==} - engines: {node: '>=0.4.x'} - dev: false - - /formdata-polyfill@4.0.10: - resolution: {integrity: sha512-buewHzMvYL29jdeQTVILecSaZKnt/RJWjoZCF5OW60Z67/GmSLBkOFM7qh1PI3zFNtJbaZL5eQu1vLfazOwj4g==} - engines: {node: '>=12.20.0'} - dependencies: - fetch-blob: 3.2.0 - dev: false - /fraction.js@4.2.0: resolution: {integrity: sha512-MhLuK+2gUcnZe8ZHlaaINnQLl0xRIGRfcGk2yl8xoQAfHrSsL3rYu6FCmBdkdbhc9EPlwyGHewaRsvwRMJtAlA==} dev: true - /fs-constants@1.0.0: - resolution: {integrity: sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow==} - dev: false - /fs-extra@11.1.1: resolution: {integrity: sha512-MGIE4HOvQCeUCzmlHs0vXpih4ysz4wg9qiSAu6cd42lVwPbTM1TjV7RusoyQqMmk/95gdQZX72u+YW+c3eEpFQ==} engines: {node: '>=14.14'} @@ -4403,10 +4007,6 @@ packages: universalify: 2.0.0 dev: true - /fs-monkey@1.0.3: - resolution: {integrity: sha512-cybjIfiiE+pTWicSCLFHSrXZ6EilF30oh91FDP9S2B051prEa7QWfrVTQm10/dDpswBDXZugPa1Ogu8Yh+HV0Q==} - dev: false - /fs.realpath@1.0.0: resolution: {integrity: sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==} @@ -4441,6 +4041,7 @@ packages: /get-caller-file@2.0.5: resolution: {integrity: sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==} engines: {node: 6.* || 8.* || >= 10.*} + dev: true /get-intrinsic@1.2.0: resolution: {integrity: sha512-L049y6nFOuom5wGyRc3/gdTLO94dySVKRACj1RmJZBQXlbTMhtNIgkWkUHq+jYmZvKf14EW1EoJnnjbmoHij0Q==} @@ -4486,10 +4087,6 @@ packages: through2: 4.0.2 dev: true - /github-from-package@0.0.0: - resolution: {integrity: sha512-SyHy3T1v2NUXn29OsWdxmK6RwHD+vkj3v8en8AOBZ1wBQ/hCAQ5bAQTD02kW4W9tUp/3Qh6J8r9EvntiyCmOOw==} - dev: false - /github-slugger@2.0.0: resolution: {integrity: sha512-IaOQ9puYtjrkq7Y0Ygl9KDZnrf/aiUJYUpVf89y8kyaxbRG7Y1SrX/jaumrv81vc61+kiMempujsM3Yw7w5qcw==} dev: true @@ -4585,16 +4182,6 @@ packages: /grapheme-splitter@1.0.4: resolution: {integrity: sha512-bzh50DW9kTPM00T8y4o8vQg89Di9oLJVLW/KaOGIXJWP/iqCN6WKYkbNOF04vFLJhwcpYUh9ydh/+5vpOqV4YQ==} - /gray-matter@4.0.3: - resolution: {integrity: sha512-5v6yZd4JK3eMI3FqqCouswVqwugaA9r4dNZB1wwcmrD02QkV5H0y7XBQW8QwQqEaZY1pM9aqORSORhJRdNK44Q==} - engines: {node: '>=6.0'} - dependencies: - js-yaml: 3.14.1 - kind-of: 6.0.3 - section-matter: 1.0.0 - strip-bom-string: 1.0.0 - dev: false - /hard-rejection@2.1.0: resolution: {integrity: sha512-VIZB+ibDhx7ObhAe7OVtoEbuP4h/MuOTHJ+J8h/eBXotJYl0fBgR72xDFCKgIh22OJZIOVNxBMWuhAr10r8HdA==} engines: {node: '>=6'} @@ -4612,11 +4199,6 @@ packages: resolution: {integrity: sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==} engines: {node: '>=8'} - /has-own-prop@2.0.0: - resolution: {integrity: sha512-Pq0h+hvsVm6dDEa8x82GnLSYHOzNDt7f0ddFa3FqcQlgzEiptPqL+XrOJNavjOzSYiYWIrgeVYYgGlLmnxwilQ==} - engines: {node: '>=8'} - dev: false - /has-property-descriptors@1.0.0: resolution: {integrity: sha512-62DVLZGoiEBDHQyqG4w9xCuZ7eJEwNmJRWw2VY84Oedb7WFcA27fiEVe8oUQx9hAUJ4ekurquucTGwsyO1XGdQ==} dependencies: @@ -4645,19 +4227,17 @@ packages: dependencies: function-bind: 1.1.1 - /hash-obj@4.0.0: - resolution: {integrity: sha512-FwO1BUVWkyHasWDW4S8o0ssQXjvyghLV2rfVhnN36b2bbcj45eGiuzdn9XOvOpjV3TKQD7Gm2BWNXdE9V4KKYg==} - engines: {node: '>=12'} + /hast-util-from-html@2.0.1: + resolution: {integrity: sha512-RXQBLMl9kjKVNkJTIO6bZyb2n+cUH8LFaSSzo82jiLT6Tfc+Pt7VQCS+/h3YwG4jaNE2TA2sdJisGWR+aJrp0g==} dependencies: - is-obj: 3.0.0 - sort-keys: 5.0.0 - type-fest: 1.4.0 + '@types/hast': 3.0.4 + devlop: 1.1.0 + hast-util-from-parse5: 8.0.1 + parse5: 7.1.2 + vfile: 6.0.1 + vfile-message: 4.0.2 dev: true - /hash-wasm@4.9.0: - resolution: {integrity: sha512-7SW7ejyfnRxuOc7ptQHSf4LDoZaWOivfzqw+5rpcQku0nHfmicPKE51ra9BiRLAmT8+gGLestr1XroUkqdjL6w==} - dev: false - /hast-util-from-parse5@7.1.2: resolution: {integrity: sha512-Nz7FfPBuljzsN3tCQ4kCBKqdNhQE2l0Tn+X1ubgKBPRoiDIu1mL08Cfw4k7q71+Duyaw7DXDN+VTAp4Vh3oCOw==} dependencies: @@ -4668,6 +4248,20 @@ packages: vfile: 5.3.7 vfile-location: 4.1.0 web-namespaces: 2.0.1 + dev: true + + /hast-util-from-parse5@8.0.1: + resolution: {integrity: sha512-Er/Iixbc7IEa7r/XLtuG52zoqn/b3Xng/w6aZQ0xGVxzhw5xUFxcRqdPzP6yFi/4HBYRaifaI5fQ1RH8n0ZeOQ==} + dependencies: + '@types/hast': 3.0.4 + '@types/unist': 3.0.2 + devlop: 1.1.0 + hastscript: 8.0.0 + property-information: 6.2.0 + vfile: 6.0.1 + vfile-location: 5.0.2 + web-namespaces: 2.0.1 + dev: true /hast-util-has-property@2.0.1: resolution: {integrity: sha512-X2+RwZIMTMKpXUzlotatPzWj8bspCymtXH3cfG3iQKV+wPF53Vgaqxi/eLqGck0wKq1kS9nvoB1wchbCPEL8sg==} @@ -4690,6 +4284,13 @@ packages: resolution: {integrity: sha512-jdlwBjEexy1oGz0aJ2f4GKMaVKkA9jwjr4MjAAI22E5fM/TXVZHuS5OpONtdeIkRKqAaryQ2E9xNQxijoThSZA==} dependencies: '@types/hast': 2.3.4 + dev: true + + /hast-util-parse-selector@4.0.0: + resolution: {integrity: sha512-wkQCkSYoOGCRKERFWcxMVMOcYE2K1AaNLU8DXS9arxnLOUEWbOXKXiJUNzEpqZ3JOKpnha3jkFrumEjVliDe7A==} + dependencies: + '@types/hast': 3.0.4 + dev: true /hast-util-raw@7.2.3: resolution: {integrity: sha512-RujVQfVsOrxzPOPSzZFiwofMArbQke6DJjnFfceiEbFh7S05CbPt0cYN+A5YeD3pso0JQk6O1aHBnx9+Pm2uqg==} @@ -4705,28 +4306,30 @@ packages: vfile: 5.3.7 web-namespaces: 2.0.1 zwitch: 2.0.4 + dev: true - /hast-util-to-estree@2.3.2: - resolution: {integrity: sha512-YYDwATNdnvZi3Qi84iatPIl1lWpXba1MeNrNbDfJfVzEBZL8uUmtR7mt7bxKBC8kuAuvb0bkojXYZzsNHyHCLg==} + /hast-util-to-estree@3.1.0: + resolution: {integrity: sha512-lfX5g6hqVh9kjS/B9E2gSkvHH4SZNiQFiqWS0x9fENzEl+8W12RqdRxX6d/Cwxi30tPQs3bIO+aolQJNp1bIyw==} dependencies: - '@types/estree': 1.0.1 - '@types/estree-jsx': 1.0.0 - '@types/hast': 2.3.4 - '@types/unist': 2.0.6 + '@types/estree': 1.0.5 + '@types/estree-jsx': 1.0.5 + '@types/hast': 3.0.4 comma-separated-tokens: 2.0.3 - estree-util-attach-comments: 2.1.1 - estree-util-is-identifier-name: 2.1.0 - hast-util-whitespace: 2.0.1 - mdast-util-mdx-expression: 1.3.2 - mdast-util-mdxjs-esm: 1.3.1 + devlop: 1.1.0 + estree-util-attach-comments: 3.0.0 + estree-util-is-identifier-name: 3.0.0 + hast-util-whitespace: 3.0.0 + mdast-util-mdx-expression: 2.0.0 + mdast-util-mdx-jsx: 3.1.0 + mdast-util-mdxjs-esm: 2.0.1 property-information: 6.2.0 space-separated-tokens: 2.0.2 - style-to-object: 0.4.1 - unist-util-position: 4.0.4 + style-to-object: 0.4.4 + unist-util-position: 5.0.0 zwitch: 2.0.4 transitivePeerDependencies: - supports-color - dev: false + dev: true /hast-util-to-html@8.0.4: resolution: {integrity: sha512-4tpQTUOr9BMjtYyNlt0P50mH7xj0Ks2xpo8M943Vykljf99HW6EzulIoJP1N3eKOSScEHzyzi9dm7/cn0RfGwA==} @@ -4742,6 +4345,29 @@ packages: space-separated-tokens: 2.0.2 stringify-entities: 4.0.3 zwitch: 2.0.4 + dev: true + + /hast-util-to-jsx-runtime@2.3.0: + resolution: {integrity: sha512-H/y0+IWPdsLLS738P8tDnrQ8Z+dj12zQQ6WC11TIM21C8WFVoIxcqWXf2H3hiTVZjF1AWqoimGwrTWecWrnmRQ==} + dependencies: + '@types/estree': 1.0.5 + '@types/hast': 3.0.4 + '@types/unist': 3.0.2 + comma-separated-tokens: 2.0.3 + devlop: 1.1.0 + estree-util-is-identifier-name: 3.0.0 + hast-util-whitespace: 3.0.0 + mdast-util-mdx-expression: 2.0.0 + mdast-util-mdx-jsx: 3.1.0 + mdast-util-mdxjs-esm: 2.0.1 + property-information: 6.2.0 + space-separated-tokens: 2.0.2 + style-to-object: 1.0.5 + unist-util-position: 5.0.0 + vfile-message: 4.0.2 + transitivePeerDependencies: + - supports-color + dev: true /hast-util-to-parse5@7.1.0: resolution: {integrity: sha512-YNRgAJkH2Jky5ySkIqFXTQiaqcAtJyVE+D5lkN6CdtOqrnkLfGYYrEcKuHOJZlp+MwjSwuD3fZuawI+sic/RBw==} @@ -4752,6 +4378,7 @@ packages: space-separated-tokens: 2.0.2 web-namespaces: 2.0.1 zwitch: 2.0.4 + dev: true /hast-util-to-string@2.0.0: resolution: {integrity: sha512-02AQ3vLhuH3FisaMM+i/9sm4OXGSq1UhOOCpTLLQtHdL3tZt7qil69r8M8iDkZYyC0HCFylcYoP+8IO7ddta1A==} @@ -4759,8 +4386,21 @@ packages: '@types/hast': 2.3.4 dev: true + /hast-util-to-string@3.0.0: + resolution: {integrity: sha512-OGkAxX1Ua3cbcW6EJ5pT/tslVb90uViVkcJ4ZZIMW/R33DX/AkcJcRrPebPwJkHYwlDHXz4aIwvAAaAdtrACFA==} + dependencies: + '@types/hast': 3.0.4 + dev: true + /hast-util-whitespace@2.0.1: resolution: {integrity: sha512-nAxA0v8+vXSBDt3AnRUNjyRIQ0rD+ntpbAp4LnPkumc5M9yUbSMa4XDU9Q6etY4f1Wp4bNgvc1yjiZtsTTrSng==} + dev: true + + /hast-util-whitespace@3.0.0: + resolution: {integrity: sha512-88JUN06ipLwsnv+dVn+OIYOvAuvBMy/Qoi6O7mQHxdPXpjy+Cd6xRkWwux7DKO+4sYILtLBRIKgsdpS2gQc7qw==} + dependencies: + '@types/hast': 3.0.4 + dev: true /hastscript@7.2.0: resolution: {integrity: sha512-TtYPq24IldU8iKoJQqvZOuhi5CyCQRAbvDOX0x1eW6rsHSxa/1i2CCiptNTotGHJ3VoHRGmqiv6/D3q113ikkw==} @@ -4770,6 +4410,17 @@ packages: hast-util-parse-selector: 3.1.1 property-information: 6.2.0 space-separated-tokens: 2.0.2 + dev: true + + /hastscript@8.0.0: + resolution: {integrity: sha512-dMOtzCEd3ABUeSIISmrETiKuyydk1w0pa+gE/uormcTpSYuaNJPbX1NU3JLyscSLjwAQM8bWMhhIlnCqnRvDTw==} + dependencies: + '@types/hast': 3.0.4 + comma-separated-tokens: 2.0.3 + hast-util-parse-selector: 4.0.0 + property-information: 6.2.0 + space-separated-tokens: 2.0.2 + dev: true /hosted-git-info@2.8.9: resolution: {integrity: sha512-mxIDAb9Lsm6DoOJ7xH+5+X4y1LU/4Hi50L9C5sIswK3JzULS4bwk1FvjdBgvYR4bzT4tuUQiC15FE2f5HbLvYw==} @@ -4788,6 +4439,7 @@ packages: /html-void-elements@2.0.1: resolution: {integrity: sha512-0quDb7s97CfemeJAnW9wC0hw78MtW7NU3hqtCD75g2vFlDLt36llsYD7uB7SUzojLMP24N5IatXf7ylGXiGG9A==} + dev: true /human-signals@1.1.1: resolution: {integrity: sha512-SEQu7vl8KjNL2eoGBLF3+wAjpsNfA9XMlXAYj/3EdaNfAlxKthD1xjEQfGOUhllCGGJVNY34bRr6lPINhNjyZw==} @@ -4805,19 +4457,10 @@ packages: hasBin: true dev: true - /ieee754@1.2.1: - resolution: {integrity: sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==} - dev: false - /ignore@5.2.4: resolution: {integrity: sha512-MAb38BcSbH0eHNBxn7ql2NH/kX33OkB3lZ1BNdh7ENeRChHTYsTvWrMubiIAMNS2llXEEgZ1MUOBtXChP3kaFQ==} engines: {node: '>= 4'} - /imagescript@1.2.16: - resolution: {integrity: sha512-hhy8OVNymU+cYYj8IwCbdNlXJRoMr4HRd7+efkH32eBVfybVU/5SbzDYf3ZSiiF9ye/ghfBrI/ujec/nwl+fOQ==} - engines: {node: '>=14.0.0'} - dev: false - /import-fresh@3.3.0: resolution: {integrity: sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==} engines: {node: '>=6'} @@ -4834,11 +4477,6 @@ packages: engines: {node: '>=8'} dev: true - /inflection@2.0.1: - resolution: {integrity: sha512-wzkZHqpb4eGrOKBl34xy3umnYHx8Si5R1U4fwmdxLo5gdH6mEK8gclckTj/qWqy4Je0bsDYe/qazZYuO7xe3XQ==} - engines: {node: '>=14.0.0'} - dev: false - /inflight@1.0.6: resolution: {integrity: sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==} dependencies: @@ -4850,10 +4488,15 @@ packages: /ini@1.3.8: resolution: {integrity: sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==} + dev: true /inline-style-parser@0.1.1: resolution: {integrity: sha512-7NXolsK4CAS5+xvdj5OMMbI962hU/wvwoxk+LWR9Ek9bVtyuuYScDN6eS0rUm6TxApFpw7CX1o4uJzcd4AyD3Q==} - dev: false + dev: true + + /inline-style-parser@0.2.2: + resolution: {integrity: sha512-EcKzdTHVe8wFVOGEYXiW9WmJXPjqi1T+234YpJr98RiFYKHV3cdy1+3mkTE+KHTHxFFLH51SfaGOoUdW+v7ViQ==} + dev: true /internal-slot@1.0.5: resolution: {integrity: sha512-Y+R5hJrzs52QCG2laLn4udYVnxsfny9CpOhNhUvk/SSSVyF6T27FzRbF0sroPidSu3X8oEAkOn2K804mjpt6UQ==} @@ -4872,14 +4515,14 @@ packages: /is-alphabetical@2.0.1: resolution: {integrity: sha512-FWyyY60MeTNyeSRpkM2Iry0G9hpr7/9kD40mD/cGQEuilcZYS4okz8SN2Q6rLCJ8gbCt6fN+rC+6tMGS99LaxQ==} - dev: false + dev: true /is-alphanumerical@2.0.1: resolution: {integrity: sha512-hmbYhX/9MUMF5uh7tOXyK/n0ZvWpad5caBA17GsC6vyuCqaWliRG5K1qS9inmUhEMaOBIW7/whAnSwveW/LtZw==} dependencies: is-alphabetical: 2.0.1 is-decimal: 2.0.1 - dev: false + dev: true /is-arguments@1.1.1: resolution: {integrity: sha512-8Q7EARjzEnKpt/PCD7e1cgUS0a6X8u5tdSiMqXhojOdoV9TsMsiO+9VLC5vAmO8N7/GmXn7yjR8qnA6bVAEzfA==} @@ -4903,7 +4546,6 @@ packages: /is-arrayish@0.3.2: resolution: {integrity: sha512-eVRqCvVlZbuw3GrM63ovNSNAeA1K16kaR/LRY/92w0zxQ5/1YzwblUX652i4Xs9RwAGjW9d9y6X88t8OaAJfWQ==} - dev: false /is-bigint@1.0.4: resolution: {integrity: sha512-zB9CruMamjym81i2JZ3UMn54PKGsQzsJeo6xvN3HJJ4CAsQNB6iRutp2To77OfCNuoxspsIhzaPoO1zyCEhFOg==} @@ -4928,6 +4570,7 @@ packages: /is-buffer@2.0.5: resolution: {integrity: sha512-i2R6zNFDwgEHJyQUtJEk0XFi1i0dPFn/oqjK3/vPCcDeJvW5NQ83V8QbicfF1SupOaB0h8ntgBC2YiE7dfyctQ==} engines: {node: '>=4'} + dev: true /is-callable@1.2.7: resolution: {integrity: sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==} @@ -4948,12 +4591,7 @@ packages: /is-decimal@2.0.1: resolution: {integrity: sha512-AAB9hiomQs5DXWcRB1rqsxGUstbRroFOPPVAomNk/3XHR5JyEZChOyTWe2oayKnsSsr/kcGqF+z6yuH6HHpN0A==} - dev: false - - /is-extendable@0.1.1: - resolution: {integrity: sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw==} - engines: {node: '>=0.10.0'} - dev: false + dev: true /is-extglob@2.1.1: resolution: {integrity: sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==} @@ -4962,6 +4600,7 @@ packages: /is-fullwidth-code-point@3.0.0: resolution: {integrity: sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==} engines: {node: '>=8'} + dev: true /is-glob@4.0.3: resolution: {integrity: sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==} @@ -4971,7 +4610,7 @@ packages: /is-hexadecimal@2.0.1: resolution: {integrity: sha512-DgZQp241c8oO6cA1SbTEWiXeoxV42vlcJxgH+B3hi1AiqqKruZR3ZGF8In3fj4+/y/7rHvlOZLZtgJ/4ttYGZg==} - dev: false + dev: true /is-map@2.0.2: resolution: {integrity: sha512-cOZFQQozTha1f4MxLFzlgKYPTyj26picdZTx82hbc/Xf4K/tZOOXSCkMvU4pKioRXGDLJRn0GM7Upe7kR721yg==} @@ -4998,11 +4637,6 @@ packages: engines: {node: '>=8'} dev: true - /is-obj@3.0.0: - resolution: {integrity: sha512-IlsXEHOjtKhpN8r/tRFj2nDyTmHvcfNeu/nrRIcXE17ROeatXchkojffa1SpdqW4cr/Fj6QkEf/Gn4zf6KKvEQ==} - engines: {node: '>=12'} - dev: true - /is-path-inside@3.0.3: resolution: {integrity: sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==} engines: {node: '>=8'} @@ -5012,20 +4646,15 @@ packages: engines: {node: '>=0.10.0'} dev: true - /is-plain-obj@3.0.0: - resolution: {integrity: sha512-gwsOE28k+23GP1B6vFl1oVh/WOzmawBrKwo5Ev6wMKzPkaXaCDIQKzLnvsA42DRlbVTWorkgTKIviAKCWkfUwA==} - engines: {node: '>=10'} - dev: false - /is-plain-obj@4.1.0: resolution: {integrity: sha512-+Pgi+vMuUNkJyExiMBt5IlFoMyKnr5zhJ4Uspz58WOhBF5QoIZkFyNHIbBAtHwzVAgk5RtndVNsDRN61/mmDqg==} engines: {node: '>=12'} - /is-reference@3.0.1: - resolution: {integrity: sha512-baJJdQLiYaJdvFbJqXrcGv3WU3QCzBlUcI5QhbesIm6/xPsvmO+2CDoi/GMOFBQEQm+PXkwOPrp9KK5ozZsp2w==} + /is-reference@3.0.2: + resolution: {integrity: sha512-v3rht/LgVcsdZa3O2Nqs+NMowLOxeOm7Ay9+/ARQ2F+qEoANRcqrjAZKGN0v8ymUetZGgkp26LTnGT7H0Qo9Pg==} dependencies: - '@types/estree': 1.0.1 - dev: false + '@types/estree': 1.0.5 + dev: true /is-regex@1.1.4: resolution: {integrity: sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg==} @@ -5124,24 +4753,12 @@ packages: /js-tokens@4.0.0: resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==} - /js-yaml@3.14.1: - resolution: {integrity: sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==} - hasBin: true - dependencies: - argparse: 1.0.10 - esprima: 4.0.1 - dev: false - /js-yaml@4.1.0: resolution: {integrity: sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==} hasBin: true dependencies: argparse: 2.0.1 - /jsbi@4.3.0: - resolution: {integrity: sha512-SnZNcinB4RIcnEyZqFPdGPVgrg2AcnykiBy0sHVJQKHYeaLUvi3Exj+iaPpLnFVkDPZIV4U0yvgC9/R4uEAZ9g==} - dev: false - /jsesc@2.5.2: resolution: {integrity: sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==} engines: {node: '>=4'} @@ -5173,9 +4790,6 @@ packages: engines: {node: '>=6'} hasBin: true - /jsonc-parser@3.2.0: - resolution: {integrity: sha512-gfFQZrcTc8CnKXp6Y4/CBT3fTc0OVuDofpre4aEeEpSBPV5X5v4+Vmx+8snU7RLPrNHPKSgLxGo9YuQzz20o+w==} - /jsonfile@6.1.0: resolution: {integrity: sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==} dependencies: @@ -5200,10 +4814,7 @@ packages: /kind-of@6.0.3: resolution: {integrity: sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==} engines: {node: '>=0.10.0'} - - /kleur@4.1.5: - resolution: {integrity: sha512-o+NO+8WrRiQEE4/7nwRJhN1HWpVmJm511pBHUxPLtp0BUISzlBplORYSmTclCnJvQq2tKu/sgl3xVpkc7ZWuQQ==} - engines: {node: '>=6'} + dev: true /language-subtag-registry@0.3.22: resolution: {integrity: sha512-tN0MCzyWnoz/4nHS6uxdlFWoUZT7ABptwKPQ52Ea7URk6vll88bWBVhodtnlfEuCcKWNGoc+uGbw1cwa9IKh/w==} @@ -5244,6 +4855,7 @@ packages: /lodash.camelcase@4.3.0: resolution: {integrity: sha512-TwuEnCnxbc3rAvhf/LbG7tJUDzhqXyFnv3dtzLOPgCG/hODL7WFnsbwktkD7yUV0RrreP/l1PALq/YSg6VvjlA==} + dev: true /lodash.castarray@4.4.0: resolution: {integrity: sha512-aVx8ztPv7/2ULbArGJ2Y42bG1mEQ5mGjpdvrbJcJFU3TbYybe+QlLS4pst9zV52ymy2in1KpFPiZnAOATxD4+Q==} @@ -5294,14 +4906,7 @@ packages: /lodash@4.17.21: resolution: {integrity: sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==} - - /long@4.0.0: - resolution: {integrity: sha512-XsP+KhQif4bjX1kbuSiySJFNAehNxgLb6hPRGJ9QsUr8ajHkuXGdrHmFUTUUXhDwVX2R5bY4JNZEwbUiMhV+MA==} - dev: false - - /long@5.2.3: - resolution: {integrity: sha512-lcHwpNoggQTObv5apGNCTdJrO69eHOZMi4BNC+rTLER8iHAqGrUVeLh/irVIM7zTw2bOXA8T6uNPeujwOLg/2Q==} - dev: false + dev: true /longest-streak@3.1.0: resolution: {integrity: sha512-9Ri+o0JYgehTaVBBDoMqIl8GXtbWg711O3srftcHhZ0dqnETqLaoIK0x17fUw9rFSlK/0NlsKe0Ahhyl5pXE2g==} @@ -5312,12 +4917,6 @@ packages: dependencies: js-tokens: 4.0.0 - /lower-case@2.0.2: - resolution: {integrity: sha512-7fm3l3NAF9WfN6W3JOmf5drwpVqX78JtoGJ3A6W0a6ZnldM41w2fV5D490psKFTpMds8TJse/eHLFFsNHHjHgg==} - dependencies: - tslib: 2.5.0 - dev: false - /lru-cache@5.1.1: resolution: {integrity: sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==} dependencies: @@ -5352,204 +4951,129 @@ packages: engines: {node: '>=8'} dev: true - /markdown-extensions@1.1.1: - resolution: {integrity: sha512-WWC0ZuMzCyDHYCasEGs4IPvLyTGftYwh6wIEOULOF0HXcqZlhwRzrK0w2VUlxWA98xnvb/jszw4ZSkJ6ADpM6Q==} - engines: {node: '>=0.10.0'} - dev: false - - /markdown-table@3.0.3: - resolution: {integrity: sha512-Z1NL3Tb1M9wH4XESsCDEksWoKTdlUafKc4pt0GRwjUyXaCFZ+dc3g2erqB6zm3szA2IUSi7VnPI+o/9jnxh9hw==} - dev: true - - /mdast-util-definitions@5.1.2: - resolution: {integrity: sha512-8SVPMuHqlPME/z3gqVwWY4zVXn8lqKv/pAhC57FuJ40ImXyBpmO5ukh98zB2v7Blql2FiHjHv9LVztSIqjY+MA==} - dependencies: - '@types/mdast': 3.0.11 - '@types/unist': 2.0.6 - unist-util-visit: 4.1.2 - dev: false - - /mdast-util-find-and-replace@2.2.2: - resolution: {integrity: sha512-MTtdFRz/eMDHXzeK6W3dO7mXUlF82Gom4y0oOgvHhh/HXZAGvIQDUvQ0SuUx+j2tv44b8xTHOm8K/9OoRFnXKw==} - dependencies: - '@types/mdast': 3.0.11 - escape-string-regexp: 5.0.0 - unist-util-is: 5.2.1 - unist-util-visit-parents: 5.1.3 + /markdown-extensions@2.0.0: + resolution: {integrity: sha512-o5vL7aDWatOTX8LzaS1WMoaoxIiLRQJuIKKe2wAw6IeULDHaqbiqiggmx+pKvZDb1Sj+pE46Sn1T7lCqfFtg1Q==} + engines: {node: '>=16'} dev: true - /mdast-util-from-markdown@1.3.0: - resolution: {integrity: sha512-HN3W1gRIuN/ZW295c7zi7g9lVBllMgZE40RxCX37wrTPWXCWtpvOZdfnuK+1WNpvZje6XuJeI3Wnb4TJEUem+g==} + /mdast-util-from-markdown@2.0.0: + resolution: {integrity: sha512-n7MTOr/z+8NAX/wmhhDji8O3bRvPTV/U0oTCaZJkjhPSKTPhS3xufVhKGF8s1pJ7Ox4QgoIU7KHseh09S+9rTA==} dependencies: - '@types/mdast': 3.0.11 - '@types/unist': 2.0.6 + '@types/mdast': 4.0.3 + '@types/unist': 3.0.2 decode-named-character-reference: 1.0.2 - mdast-util-to-string: 3.2.0 - micromark: 3.1.0 - micromark-util-decode-numeric-character-reference: 1.0.0 - micromark-util-decode-string: 1.0.2 - micromark-util-normalize-identifier: 1.0.0 - micromark-util-symbol: 1.0.1 - micromark-util-types: 1.0.2 - unist-util-stringify-position: 3.0.3 - uvu: 0.5.6 + devlop: 1.1.0 + mdast-util-to-string: 4.0.0 + micromark: 4.0.0 + micromark-util-decode-numeric-character-reference: 2.0.1 + micromark-util-decode-string: 2.0.0 + micromark-util-normalize-identifier: 2.0.0 + micromark-util-symbol: 2.0.0 + micromark-util-types: 2.0.0 + unist-util-stringify-position: 4.0.0 transitivePeerDependencies: - supports-color - /mdast-util-frontmatter@1.0.1: - resolution: {integrity: sha512-JjA2OjxRqAa8wEG8hloD0uTU0kdn8kbtOWpPP94NBkfAlbxn4S8gCGf/9DwFtEeGPXrDcNXdiDjVaRdUFqYokw==} + /mdast-util-mdx-expression@2.0.0: + resolution: {integrity: sha512-fGCu8eWdKUKNu5mohVGkhBXCXGnOTLuFqOvGMvdikr+J1w7lDJgxThOKpwRWzzbyXAU2hhSwsmssOY4yTokluw==} dependencies: - '@types/mdast': 3.0.11 - mdast-util-to-markdown: 1.5.0 - micromark-extension-frontmatter: 1.1.0 - dev: false - - /mdast-util-gfm-autolink-literal@1.0.3: - resolution: {integrity: sha512-My8KJ57FYEy2W2LyNom4n3E7hKTuQk/0SES0u16tjA9Z3oFkF4RrC/hPAPgjlSpezsOvI8ObcXcElo92wn5IGA==} - dependencies: - '@types/mdast': 3.0.11 - ccount: 2.0.1 - mdast-util-find-and-replace: 2.2.2 - micromark-util-character: 1.1.0 - dev: true - - /mdast-util-gfm-footnote@1.0.2: - resolution: {integrity: sha512-56D19KOGbE00uKVj3sgIykpwKL179QsVFwx/DCW0u/0+URsryacI4MAdNJl0dh+u2PSsD9FtxPFbHCzJ78qJFQ==} - dependencies: - '@types/mdast': 3.0.11 - mdast-util-to-markdown: 1.5.0 - micromark-util-normalize-identifier: 1.0.0 - dev: true - - /mdast-util-gfm-strikethrough@1.0.3: - resolution: {integrity: sha512-DAPhYzTYrRcXdMjUtUjKvW9z/FNAMTdU0ORyMcbmkwYNbKocDpdk+PX1L1dQgOID/+vVs1uBQ7ElrBQfZ0cuiQ==} - dependencies: - '@types/mdast': 3.0.11 - mdast-util-to-markdown: 1.5.0 - dev: true - - /mdast-util-gfm-table@1.0.7: - resolution: {integrity: sha512-jjcpmNnQvrmN5Vx7y7lEc2iIOEytYv7rTvu+MeyAsSHTASGCCRA79Igg2uKssgOs1i1po8s3plW0sTu1wkkLGg==} - dependencies: - '@types/mdast': 3.0.11 - markdown-table: 3.0.3 - mdast-util-from-markdown: 1.3.0 - mdast-util-to-markdown: 1.5.0 - transitivePeerDependencies: - - supports-color - dev: true - - /mdast-util-gfm-task-list-item@1.0.2: - resolution: {integrity: sha512-PFTA1gzfp1B1UaiJVyhJZA1rm0+Tzn690frc/L8vNX1Jop4STZgOE6bxUhnzdVSB+vm2GU1tIsuQcA9bxTQpMQ==} - dependencies: - '@types/mdast': 3.0.11 - mdast-util-to-markdown: 1.5.0 - dev: true - - /mdast-util-gfm@2.0.2: - resolution: {integrity: sha512-qvZ608nBppZ4icQlhQQIAdc6S3Ffj9RGmzwUKUWuEICFnd1LVkN3EktF7ZHAgfcEdvZB5owU9tQgt99e2TlLjg==} - dependencies: - mdast-util-from-markdown: 1.3.0 - mdast-util-gfm-autolink-literal: 1.0.3 - mdast-util-gfm-footnote: 1.0.2 - mdast-util-gfm-strikethrough: 1.0.3 - mdast-util-gfm-table: 1.0.7 - mdast-util-gfm-task-list-item: 1.0.2 - mdast-util-to-markdown: 1.5.0 + '@types/estree-jsx': 1.0.5 + '@types/hast': 3.0.4 + '@types/mdast': 4.0.3 + devlop: 1.1.0 + mdast-util-from-markdown: 2.0.0 + mdast-util-to-markdown: 2.1.0 transitivePeerDependencies: - supports-color dev: true - /mdast-util-mdx-expression@1.3.2: - resolution: {integrity: sha512-xIPmR5ReJDu/DHH1OoIT1HkuybIfRGYRywC+gJtI7qHjCJp/M9jrmBEJW22O8lskDWm562BX2W8TiAwRTb0rKA==} - dependencies: - '@types/estree-jsx': 1.0.0 - '@types/hast': 2.3.4 - '@types/mdast': 3.0.11 - mdast-util-from-markdown: 1.3.0 - mdast-util-to-markdown: 1.5.0 - transitivePeerDependencies: - - supports-color - dev: false - - /mdast-util-mdx-jsx@2.1.2: - resolution: {integrity: sha512-o9vBCYQK5ZLGEj3tCGISJGjvafyHRVJlZmfJzSE7xjiogSzIeph/Z4zMY65q4WGRMezQBeAwPlrdymDYYYx0tA==} + /mdast-util-mdx-jsx@3.1.0: + resolution: {integrity: sha512-A8AJHlR7/wPQ3+Jre1+1rq040fX9A4Q1jG8JxmSNp/PLPHg80A6475wxTp3KzHpApFH6yWxFotHrJQA3dXP6/w==} dependencies: - '@types/estree-jsx': 1.0.0 - '@types/hast': 2.3.4 - '@types/mdast': 3.0.11 - '@types/unist': 2.0.6 + '@types/estree-jsx': 1.0.5 + '@types/hast': 3.0.4 + '@types/mdast': 4.0.3 + '@types/unist': 3.0.2 ccount: 2.0.1 - mdast-util-from-markdown: 1.3.0 - mdast-util-to-markdown: 1.5.0 + devlop: 1.1.0 + mdast-util-from-markdown: 2.0.0 + mdast-util-to-markdown: 2.1.0 parse-entities: 4.0.1 stringify-entities: 4.0.3 - unist-util-remove-position: 4.0.2 - unist-util-stringify-position: 3.0.3 - vfile-message: 3.1.4 + unist-util-remove-position: 5.0.0 + unist-util-stringify-position: 4.0.0 + vfile-message: 4.0.2 transitivePeerDependencies: - supports-color - dev: false + dev: true - /mdast-util-mdx@2.0.1: - resolution: {integrity: sha512-38w5y+r8nyKlGvNjSEqWrhG0w5PmnRA+wnBvm+ulYCct7nsGYhFVb0lljS9bQav4psDAS1eGkP2LMVcZBi/aqw==} + /mdast-util-mdx@3.0.0: + resolution: {integrity: sha512-JfbYLAW7XnYTTbUsmpu0kdBUVe+yKVJZBItEjwyYJiDJuZ9w4eeaqks4HQO+R7objWgS2ymV60GYpI14Ug554w==} dependencies: - mdast-util-from-markdown: 1.3.0 - mdast-util-mdx-expression: 1.3.2 - mdast-util-mdx-jsx: 2.1.2 - mdast-util-mdxjs-esm: 1.3.1 - mdast-util-to-markdown: 1.5.0 + mdast-util-from-markdown: 2.0.0 + mdast-util-mdx-expression: 2.0.0 + mdast-util-mdx-jsx: 3.1.0 + mdast-util-mdxjs-esm: 2.0.1 + mdast-util-to-markdown: 2.1.0 transitivePeerDependencies: - supports-color - dev: false + dev: true - /mdast-util-mdxjs-esm@1.3.1: - resolution: {integrity: sha512-SXqglS0HrEvSdUEfoXFtcg7DRl7S2cwOXc7jkuusG472Mmjag34DUDeOJUZtl+BVnyeO1frIgVpHlNRWc2gk/w==} + /mdast-util-mdxjs-esm@2.0.1: + resolution: {integrity: sha512-EcmOpxsZ96CvlP03NghtH1EsLtr0n9Tm4lPUJUBccV9RwUOneqSycg19n5HGzCf+10LozMRSObtVr3ee1WoHtg==} dependencies: - '@types/estree-jsx': 1.0.0 - '@types/hast': 2.3.4 - '@types/mdast': 3.0.11 - mdast-util-from-markdown: 1.3.0 - mdast-util-to-markdown: 1.5.0 + '@types/estree-jsx': 1.0.5 + '@types/hast': 3.0.4 + '@types/mdast': 4.0.3 + devlop: 1.1.0 + mdast-util-from-markdown: 2.0.0 + mdast-util-to-markdown: 2.1.0 transitivePeerDependencies: - supports-color - dev: false + dev: true - /mdast-util-phrasing@3.0.1: - resolution: {integrity: sha512-WmI1gTXUBJo4/ZmSk79Wcb2HcjPJBzM1nlI/OUWA8yk2X9ik3ffNbBGsU+09BFmXaL1IBb9fiuvq6/KMiNycSg==} + /mdast-util-phrasing@4.1.0: + resolution: {integrity: sha512-TqICwyvJJpBwvGAMZjj4J2n0X8QWp21b9l0o7eXyVJ25YNWYbJDVIyD1bZXE6WtV6RmKJVYmQAKWa0zWOABz2w==} dependencies: - '@types/mdast': 3.0.11 - unist-util-is: 5.2.1 + '@types/mdast': 4.0.3 + unist-util-is: 6.0.0 - /mdast-util-to-hast@12.3.0: - resolution: {integrity: sha512-pits93r8PhnIoU4Vy9bjW39M2jJ6/tdHyja9rrot9uujkN7UTU9SDnE6WNJz/IGyQk3XHX6yNNtrBH6cQzm8Hw==} + /mdast-util-to-hast@13.1.0: + resolution: {integrity: sha512-/e2l/6+OdGp/FB+ctrJ9Avz71AN/GRH3oi/3KAx/kMnoUsD6q0woXlDT8lLEeViVKE7oZxE7RXzvO3T8kF2/sA==} dependencies: - '@types/hast': 2.3.4 - '@types/mdast': 3.0.11 - mdast-util-definitions: 5.1.2 - micromark-util-sanitize-uri: 1.1.0 + '@types/hast': 3.0.4 + '@types/mdast': 4.0.3 + '@ungap/structured-clone': 1.2.0 + devlop: 1.1.0 + micromark-util-sanitize-uri: 2.0.0 trim-lines: 3.0.1 - unist-util-generated: 2.0.1 - unist-util-position: 4.0.4 - unist-util-visit: 4.1.2 - dev: false + unist-util-position: 5.0.0 + unist-util-visit: 5.0.0 + vfile: 6.0.1 + dev: true - /mdast-util-to-markdown@1.5.0: - resolution: {integrity: sha512-bbv7TPv/WC49thZPg3jXuqzuvI45IL2EVAr/KxF0BSdHsU0ceFHOmwQn6evxAh1GaoK/6GQ1wp4R4oW2+LFL/A==} + /mdast-util-to-markdown@2.1.0: + resolution: {integrity: sha512-SR2VnIEdVNCJbP6y7kVTJgPLifdr8WEU440fQec7qHoHOUz/oJ2jmNRqdDQ3rbiStOXb2mCDGTuwsK5OPUgYlQ==} dependencies: - '@types/mdast': 3.0.11 - '@types/unist': 2.0.6 + '@types/mdast': 4.0.3 + '@types/unist': 3.0.2 longest-streak: 3.1.0 - mdast-util-phrasing: 3.0.1 - mdast-util-to-string: 3.2.0 - micromark-util-decode-string: 1.0.2 - unist-util-visit: 4.1.2 + mdast-util-phrasing: 4.1.0 + mdast-util-to-string: 4.0.0 + micromark-util-decode-string: 2.0.0 + unist-util-visit: 5.0.0 zwitch: 2.0.4 /mdast-util-to-string@3.2.0: resolution: {integrity: sha512-V4Zn/ncyN1QNSqSBxTrMOLpjr+IKdHl2v3KVLoWmDPscP4r9GcCi71gjgvUV1SFSKh92AjAG4peFuBl2/YgCJg==} dependencies: '@types/mdast': 3.0.11 + dev: true + + /mdast-util-to-string@4.0.0: + resolution: {integrity: sha512-0H44vDimn51F0YwvxSJSm0eCDOJTRlmN0R1yBh4HLj9wiV1Dn0QoXGbvFAWj2hSItVTlCmBF1hqKlIyUBVFLPg==} + dependencies: + '@types/mdast': 4.0.3 /mdast-util-toc@6.1.1: resolution: {integrity: sha512-Er21728Kow8hehecK2GZtb7Ny3omcoPUVrmObiSUwmoRYVZaXLR751QROEFjR8W/vAQdHMLj49Lz20J55XaNpw==} @@ -5563,33 +5087,6 @@ packages: unist-util-visit: 4.1.2 dev: true - /mdx-bundler@9.2.1(esbuild@0.17.18): - resolution: {integrity: sha512-hWEEip1KU9MCNqeH2rqwzAZ1pdqPPbfkx9OTJjADqGPQz4t9BO85fhI7AP9gVYrpmfArf9/xJZUN0yBErg/G/Q==} - engines: {node: '>=14', npm: '>=6'} - peerDependencies: - esbuild: 0.* - dependencies: - '@babel/runtime': 7.21.0 - '@esbuild-plugins/node-resolve': 0.1.4(esbuild@0.17.18) - '@fal-works/esbuild-plugin-global-externals': 2.1.2 - '@mdx-js/esbuild': 2.3.0(esbuild@0.17.18) - esbuild: 0.17.18 - gray-matter: 4.0.3 - remark-frontmatter: 4.0.1 - remark-mdx-frontmatter: 1.1.1 - uuid: 8.3.2 - vfile: 5.3.7 - transitivePeerDependencies: - - supports-color - dev: false - - /memfs@3.5.1: - resolution: {integrity: sha512-UWbFJKvj5k+nETdteFndTpYxdeTMox/ULeqX5k/dpaQJCCFmj5EeKv3dBcyO2xmkRAx2vppRu5dVG7SOtsGOzA==} - engines: {node: '>= 4.0.0'} - dependencies: - fs-monkey: 1.0.3 - dev: false - /meow@8.1.2: resolution: {integrity: sha512-r85E3NdZ+mpYk1C6RjPFEMSE+s1iZMuHtsHAqY0DT3jZczl0diWUZ8g6oU7h0M9cD2EL+PzaYghhCLzR0ZNn5Q==} engines: {node: '>=10'} @@ -5615,323 +5112,244 @@ packages: resolution: {integrity: sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==} engines: {node: '>= 8'} - /micromark-core-commonmark@1.0.6: - resolution: {integrity: sha512-K+PkJTxqjFfSNkfAhp4GB+cZPfQd6dxtTXnf+RjZOV7T4EEXnvgzOcnp+eSTmpGk9d1S9sL6/lqrgSNn/s0HZA==} + /micromark-core-commonmark@2.0.0: + resolution: {integrity: sha512-jThOz/pVmAYUtkroV3D5c1osFXAMv9e0ypGDOIZuCeAe91/sD6BoE2Sjzt30yuXtwOYUmySOhMas/PVyh02itA==} dependencies: decode-named-character-reference: 1.0.2 - micromark-factory-destination: 1.0.0 - micromark-factory-label: 1.0.2 - micromark-factory-space: 1.0.0 - micromark-factory-title: 1.0.2 - micromark-factory-whitespace: 1.0.0 - micromark-util-character: 1.1.0 - micromark-util-chunked: 1.0.0 - micromark-util-classify-character: 1.0.0 - micromark-util-html-tag-name: 1.1.0 - micromark-util-normalize-identifier: 1.0.0 - micromark-util-resolve-all: 1.0.0 - micromark-util-subtokenize: 1.0.2 - micromark-util-symbol: 1.0.1 - micromark-util-types: 1.0.2 - uvu: 0.5.6 - - /micromark-extension-frontmatter@1.1.0: - resolution: {integrity: sha512-0nLelmvXR5aZ+F2IL6/Ed4cDnHLpL/VD/EELKuclsTWHrLI8UgxGHEmeoumeX2FXiM6z2WrBIOEcbKUZR8RYNg==} + devlop: 1.1.0 + micromark-factory-destination: 2.0.0 + micromark-factory-label: 2.0.0 + micromark-factory-space: 2.0.0 + micromark-factory-title: 2.0.0 + micromark-factory-whitespace: 2.0.0 + micromark-util-character: 2.1.0 + micromark-util-chunked: 2.0.0 + micromark-util-classify-character: 2.0.0 + micromark-util-html-tag-name: 2.0.0 + micromark-util-normalize-identifier: 2.0.0 + micromark-util-resolve-all: 2.0.0 + micromark-util-subtokenize: 2.0.0 + micromark-util-symbol: 2.0.0 + micromark-util-types: 2.0.0 + + /micromark-extension-mdx-expression@3.0.0: + resolution: {integrity: sha512-sI0nwhUDz97xyzqJAbHQhp5TfaxEvZZZ2JDqUo+7NvyIYG6BZ5CPPqj2ogUoPJlmXHBnyZUzISg9+oUmU6tUjQ==} + dependencies: + '@types/estree': 1.0.5 + devlop: 1.1.0 + micromark-factory-mdx-expression: 2.0.1 + micromark-factory-space: 2.0.0 + micromark-util-character: 2.1.0 + micromark-util-events-to-acorn: 2.0.2 + micromark-util-symbol: 2.0.0 + micromark-util-types: 2.0.0 + dev: true + + /micromark-extension-mdx-jsx@3.0.0: + resolution: {integrity: sha512-uvhhss8OGuzR4/N17L1JwvmJIpPhAd8oByMawEKx6NVdBCbesjH4t+vjEp3ZXft9DwvlKSD07fCeI44/N0Vf2w==} dependencies: - fault: 2.0.1 - micromark-util-character: 1.1.0 - micromark-util-symbol: 1.0.1 - micromark-util-types: 1.0.2 - dev: false - - /micromark-extension-gfm-autolink-literal@1.0.3: - resolution: {integrity: sha512-i3dmvU0htawfWED8aHMMAzAVp/F0Z+0bPh3YrbTPPL1v4YAlCZpy5rBO5p0LPYiZo0zFVkoYh7vDU7yQSiCMjg==} - dependencies: - micromark-util-character: 1.1.0 - micromark-util-sanitize-uri: 1.1.0 - micromark-util-symbol: 1.0.1 - micromark-util-types: 1.0.2 - uvu: 0.5.6 + '@types/acorn': 4.0.6 + '@types/estree': 1.0.5 + devlop: 1.1.0 + estree-util-is-identifier-name: 3.0.0 + micromark-factory-mdx-expression: 2.0.1 + micromark-factory-space: 2.0.0 + micromark-util-character: 2.1.0 + micromark-util-symbol: 2.0.0 + micromark-util-types: 2.0.0 + vfile-message: 4.0.2 dev: true - /micromark-extension-gfm-footnote@1.1.0: - resolution: {integrity: sha512-RWYce7j8+c0n7Djzv5NzGEGitNNYO3uj+h/XYMdS/JinH1Go+/Qkomg/rfxExFzYTiydaV6GLeffGO5qcJbMPA==} + /micromark-extension-mdx-md@2.0.0: + resolution: {integrity: sha512-EpAiszsB3blw4Rpba7xTOUptcFeBFi+6PY8VnJ2hhimH+vCQDirWgsMpz7w1XcZE7LVrSAUGb9VJpG9ghlYvYQ==} dependencies: - micromark-core-commonmark: 1.0.6 - micromark-factory-space: 1.0.0 - micromark-util-character: 1.1.0 - micromark-util-normalize-identifier: 1.0.0 - micromark-util-sanitize-uri: 1.1.0 - micromark-util-symbol: 1.0.1 - micromark-util-types: 1.0.2 - uvu: 0.5.6 + micromark-util-types: 2.0.0 dev: true - /micromark-extension-gfm-strikethrough@1.0.5: - resolution: {integrity: sha512-X0oI5eYYQVARhiNfbETy7BfLSmSilzN1eOuoRnrf9oUNsPRrWOAe9UqSizgw1vNxQBfOwL+n2610S3bYjVNi7w==} + /micromark-extension-mdxjs-esm@3.0.0: + resolution: {integrity: sha512-DJFl4ZqkErRpq/dAPyeWp15tGrcrrJho1hKK5uBS70BCtfrIFg81sqcTVu3Ta+KD1Tk5vAtBNElWxtAa+m8K9A==} dependencies: - micromark-util-chunked: 1.0.0 - micromark-util-classify-character: 1.0.0 - micromark-util-resolve-all: 1.0.0 - micromark-util-symbol: 1.0.1 - micromark-util-types: 1.0.2 - uvu: 0.5.6 + '@types/estree': 1.0.5 + devlop: 1.1.0 + micromark-core-commonmark: 2.0.0 + micromark-util-character: 2.1.0 + micromark-util-events-to-acorn: 2.0.2 + micromark-util-symbol: 2.0.0 + micromark-util-types: 2.0.0 + unist-util-position-from-estree: 2.0.0 + vfile-message: 4.0.2 dev: true - /micromark-extension-gfm-table@1.0.5: - resolution: {integrity: sha512-xAZ8J1X9W9K3JTJTUL7G6wSKhp2ZYHrFk5qJgY/4B33scJzE2kpfRL6oiw/veJTbt7jiM/1rngLlOKPWr1G+vg==} + /micromark-extension-mdxjs@3.0.0: + resolution: {integrity: sha512-A873fJfhnJ2siZyUrJ31l34Uqwy4xIFmvPY1oj+Ean5PHcPBYzEsvqvWGaWcfEIr11O5Dlw3p2y0tZWpKHDejQ==} dependencies: - micromark-factory-space: 1.0.0 - micromark-util-character: 1.1.0 - micromark-util-symbol: 1.0.1 - micromark-util-types: 1.0.2 - uvu: 0.5.6 + acorn: 8.8.2 + acorn-jsx: 5.3.2(acorn@8.8.2) + micromark-extension-mdx-expression: 3.0.0 + micromark-extension-mdx-jsx: 3.0.0 + micromark-extension-mdx-md: 2.0.0 + micromark-extension-mdxjs-esm: 3.0.0 + micromark-util-combine-extensions: 2.0.0 + micromark-util-types: 2.0.0 dev: true - /micromark-extension-gfm-tagfilter@1.0.2: - resolution: {integrity: sha512-5XWB9GbAUSHTn8VPU8/1DBXMuKYT5uOgEjJb8gN3mW0PNW5OPHpSdojoqf+iq1xo7vWzw/P8bAHY0n6ijpXF7g==} + /micromark-factory-destination@2.0.0: + resolution: {integrity: sha512-j9DGrQLm/Uhl2tCzcbLhy5kXsgkHUrjJHg4fFAeoMRwJmJerT9aw4FEhIbZStWN8A3qMwOp1uzHr4UL8AInxtA==} dependencies: - micromark-util-types: 1.0.2 - dev: true + micromark-util-character: 2.1.0 + micromark-util-symbol: 2.0.0 + micromark-util-types: 2.0.0 - /micromark-extension-gfm-task-list-item@1.0.4: - resolution: {integrity: sha512-9XlIUUVnYXHsFF2HZ9jby4h3npfX10S1coXTnV035QGPgrtNYQq3J6IfIvcCIUAJrrqBVi5BqA/LmaOMJqPwMQ==} + /micromark-factory-label@2.0.0: + resolution: {integrity: sha512-RR3i96ohZGde//4WSe/dJsxOX6vxIg9TimLAS3i4EhBAFx8Sm5SmqVfR8E87DPSR31nEAjZfbt91OMZWcNgdZw==} dependencies: - micromark-factory-space: 1.0.0 - micromark-util-character: 1.1.0 - micromark-util-symbol: 1.0.1 - micromark-util-types: 1.0.2 - uvu: 0.5.6 - dev: true + devlop: 1.1.0 + micromark-util-character: 2.1.0 + micromark-util-symbol: 2.0.0 + micromark-util-types: 2.0.0 - /micromark-extension-gfm@2.0.1: - resolution: {integrity: sha512-p2sGjajLa0iYiGQdT0oelahRYtMWvLjy8J9LOCxzIQsllMCGLbsLW+Nc+N4vi02jcRJvedVJ68cjelKIO6bpDA==} + /micromark-factory-mdx-expression@2.0.1: + resolution: {integrity: sha512-F0ccWIUHRLRrYp5TC9ZYXmZo+p2AM13ggbsW4T0b5CRKP8KHVRB8t4pwtBgTxtjRmwrK0Irwm7vs2JOZabHZfg==} dependencies: - micromark-extension-gfm-autolink-literal: 1.0.3 - micromark-extension-gfm-footnote: 1.1.0 - micromark-extension-gfm-strikethrough: 1.0.5 - micromark-extension-gfm-table: 1.0.5 - micromark-extension-gfm-tagfilter: 1.0.2 - micromark-extension-gfm-task-list-item: 1.0.4 - micromark-util-combine-extensions: 1.0.0 - micromark-util-types: 1.0.2 + '@types/estree': 1.0.5 + devlop: 1.1.0 + micromark-util-character: 2.1.0 + micromark-util-events-to-acorn: 2.0.2 + micromark-util-symbol: 2.0.0 + micromark-util-types: 2.0.0 + unist-util-position-from-estree: 2.0.0 + vfile-message: 4.0.2 dev: true - /micromark-extension-mdx-expression@1.0.4: - resolution: {integrity: sha512-TCgLxqW6ReQ3AJgtj1P0P+8ZThBTloLbeb7jNaqr6mCOLDpxUiBFE/9STgooMZttEwOQu5iEcCCa3ZSDhY9FGw==} - dependencies: - micromark-factory-mdx-expression: 1.0.7 - micromark-factory-space: 1.0.0 - micromark-util-character: 1.1.0 - micromark-util-events-to-acorn: 1.2.1 - micromark-util-symbol: 1.0.1 - micromark-util-types: 1.0.2 - uvu: 0.5.6 - dev: false - - /micromark-extension-mdx-jsx@1.0.3: - resolution: {integrity: sha512-VfA369RdqUISF0qGgv2FfV7gGjHDfn9+Qfiv5hEwpyr1xscRj/CiVRkU7rywGFCO7JwJ5L0e7CJz60lY52+qOA==} - dependencies: - '@types/acorn': 4.0.6 - estree-util-is-identifier-name: 2.1.0 - micromark-factory-mdx-expression: 1.0.7 - micromark-factory-space: 1.0.0 - micromark-util-character: 1.1.0 - micromark-util-symbol: 1.0.1 - micromark-util-types: 1.0.2 - uvu: 0.5.6 - vfile-message: 3.1.4 - dev: false - - /micromark-extension-mdx-md@1.0.0: - resolution: {integrity: sha512-xaRAMoSkKdqZXDAoSgp20Azm0aRQKGOl0RrS81yGu8Hr/JhMsBmfs4wR7m9kgVUIO36cMUQjNyiyDKPrsv8gOw==} - dependencies: - micromark-util-types: 1.0.2 - dev: false - - /micromark-extension-mdxjs-esm@1.0.3: - resolution: {integrity: sha512-2N13ol4KMoxb85rdDwTAC6uzs8lMX0zeqpcyx7FhS7PxXomOnLactu8WI8iBNXW8AVyea3KIJd/1CKnUmwrK9A==} - dependencies: - micromark-core-commonmark: 1.0.6 - micromark-util-character: 1.1.0 - micromark-util-events-to-acorn: 1.2.1 - micromark-util-symbol: 1.0.1 - micromark-util-types: 1.0.2 - unist-util-position-from-estree: 1.1.2 - uvu: 0.5.6 - vfile-message: 3.1.4 - dev: false - - /micromark-extension-mdxjs@1.0.0: - resolution: {integrity: sha512-TZZRZgeHvtgm+IhtgC2+uDMR7h8eTKF0QUX9YsgoL9+bADBpBY6SiLvWqnBlLbCEevITmTqmEuY3FoxMKVs1rQ==} - dependencies: - acorn: 8.8.2 - acorn-jsx: 5.3.2(acorn@8.8.2) - micromark-extension-mdx-expression: 1.0.4 - micromark-extension-mdx-jsx: 1.0.3 - micromark-extension-mdx-md: 1.0.0 - micromark-extension-mdxjs-esm: 1.0.3 - micromark-util-combine-extensions: 1.0.0 - micromark-util-types: 1.0.2 - dev: false - - /micromark-factory-destination@1.0.0: - resolution: {integrity: sha512-eUBA7Rs1/xtTVun9TmV3gjfPz2wEwgK5R5xcbIM5ZYAtvGF6JkyaDsj0agx8urXnO31tEO6Ug83iVH3tdedLnw==} - dependencies: - micromark-util-character: 1.1.0 - micromark-util-symbol: 1.0.1 - micromark-util-types: 1.0.2 - - /micromark-factory-label@1.0.2: - resolution: {integrity: sha512-CTIwxlOnU7dEshXDQ+dsr2n+yxpP0+fn271pu0bwDIS8uqfFcumXpj5mLn3hSC8iw2MUr6Gx8EcKng1dD7i6hg==} - dependencies: - micromark-util-character: 1.1.0 - micromark-util-symbol: 1.0.1 - micromark-util-types: 1.0.2 - uvu: 0.5.6 - - /micromark-factory-mdx-expression@1.0.7: - resolution: {integrity: sha512-QAdFbkQagTZ/eKb8zDGqmjvgevgJH3+aQpvvKrXWxNJp3o8/l2cAbbrBd0E04r0Gx6nssPpqWIjnbHFvZu5qsQ==} - dependencies: - micromark-factory-space: 1.0.0 - micromark-util-character: 1.1.0 - micromark-util-events-to-acorn: 1.2.1 - micromark-util-symbol: 1.0.1 - micromark-util-types: 1.0.2 - unist-util-position-from-estree: 1.1.2 - uvu: 0.5.6 - vfile-message: 3.1.4 - dev: false - - /micromark-factory-space@1.0.0: - resolution: {integrity: sha512-qUmqs4kj9a5yBnk3JMLyjtWYN6Mzfcx8uJfi5XAveBniDevmZasdGBba5b4QsvRcAkmvGo5ACmSUmyGiKTLZew==} + /micromark-factory-space@2.0.0: + resolution: {integrity: sha512-TKr+LIDX2pkBJXFLzpyPyljzYK3MtmllMUMODTQJIUfDGncESaqB90db9IAUcz4AZAJFdd8U9zOp9ty1458rxg==} dependencies: - micromark-util-character: 1.1.0 - micromark-util-types: 1.0.2 + micromark-util-character: 2.1.0 + micromark-util-types: 2.0.0 - /micromark-factory-title@1.0.2: - resolution: {integrity: sha512-zily+Nr4yFqgMGRKLpTVsNl5L4PMu485fGFDOQJQBl2NFpjGte1e86zC0da93wf97jrc4+2G2GQudFMHn3IX+A==} + /micromark-factory-title@2.0.0: + resolution: {integrity: sha512-jY8CSxmpWLOxS+t8W+FG3Xigc0RDQA9bKMY/EwILvsesiRniiVMejYTE4wumNc2f4UbAa4WsHqe3J1QS1sli+A==} dependencies: - micromark-factory-space: 1.0.0 - micromark-util-character: 1.1.0 - micromark-util-symbol: 1.0.1 - micromark-util-types: 1.0.2 - uvu: 0.5.6 + micromark-factory-space: 2.0.0 + micromark-util-character: 2.1.0 + micromark-util-symbol: 2.0.0 + micromark-util-types: 2.0.0 - /micromark-factory-whitespace@1.0.0: - resolution: {integrity: sha512-Qx7uEyahU1lt1RnsECBiuEbfr9INjQTGa6Err+gF3g0Tx4YEviPbqqGKNv/NrBaE7dVHdn1bVZKM/n5I/Bak7A==} + /micromark-factory-whitespace@2.0.0: + resolution: {integrity: sha512-28kbwaBjc5yAI1XadbdPYHX/eDnqaUFVikLwrO7FDnKG7lpgxnvk/XGRhX/PN0mOZ+dBSZ+LgunHS+6tYQAzhA==} dependencies: - micromark-factory-space: 1.0.0 - micromark-util-character: 1.1.0 - micromark-util-symbol: 1.0.1 - micromark-util-types: 1.0.2 + micromark-factory-space: 2.0.0 + micromark-util-character: 2.1.0 + micromark-util-symbol: 2.0.0 + micromark-util-types: 2.0.0 - /micromark-util-character@1.1.0: - resolution: {integrity: sha512-agJ5B3unGNJ9rJvADMJ5ZiYjBRyDpzKAOk01Kpi1TKhlT1APx3XZk6eN7RtSz1erbWHC2L8T3xLZ81wdtGRZzg==} + /micromark-util-character@2.1.0: + resolution: {integrity: sha512-KvOVV+X1yLBfs9dCBSopq/+G1PcgT3lAK07mC4BzXi5E7ahzMAF8oIupDDJ6mievI6F+lAATkbQQlQixJfT3aQ==} dependencies: - micromark-util-symbol: 1.0.1 - micromark-util-types: 1.0.2 + micromark-util-symbol: 2.0.0 + micromark-util-types: 2.0.0 - /micromark-util-chunked@1.0.0: - resolution: {integrity: sha512-5e8xTis5tEZKgesfbQMKRCyzvffRRUX+lK/y+DvsMFdabAicPkkZV6gO+FEWi9RfuKKoxxPwNL+dFF0SMImc1g==} + /micromark-util-chunked@2.0.0: + resolution: {integrity: sha512-anK8SWmNphkXdaKgz5hJvGa7l00qmcaUQoMYsBwDlSKFKjc6gjGXPDw3FNL3Nbwq5L8gE+RCbGqTw49FK5Qyvg==} dependencies: - micromark-util-symbol: 1.0.1 + micromark-util-symbol: 2.0.0 - /micromark-util-classify-character@1.0.0: - resolution: {integrity: sha512-F8oW2KKrQRb3vS5ud5HIqBVkCqQi224Nm55o5wYLzY/9PwHGXC01tr3d7+TqHHz6zrKQ72Okwtvm/xQm6OVNZA==} + /micromark-util-classify-character@2.0.0: + resolution: {integrity: sha512-S0ze2R9GH+fu41FA7pbSqNWObo/kzwf8rN/+IGlW/4tC6oACOs8B++bh+i9bVyNnwCcuksbFwsBme5OCKXCwIw==} dependencies: - micromark-util-character: 1.1.0 - micromark-util-symbol: 1.0.1 - micromark-util-types: 1.0.2 + micromark-util-character: 2.1.0 + micromark-util-symbol: 2.0.0 + micromark-util-types: 2.0.0 - /micromark-util-combine-extensions@1.0.0: - resolution: {integrity: sha512-J8H058vFBdo/6+AsjHp2NF7AJ02SZtWaVUjsayNFeAiydTxUwViQPxN0Hf8dp4FmCQi0UUFovFsEyRSUmFH3MA==} + /micromark-util-combine-extensions@2.0.0: + resolution: {integrity: sha512-vZZio48k7ON0fVS3CUgFatWHoKbbLTK/rT7pzpJ4Bjp5JjkZeasRfrS9wsBdDJK2cJLHMckXZdzPSSr1B8a4oQ==} dependencies: - micromark-util-chunked: 1.0.0 - micromark-util-types: 1.0.2 + micromark-util-chunked: 2.0.0 + micromark-util-types: 2.0.0 - /micromark-util-decode-numeric-character-reference@1.0.0: - resolution: {integrity: sha512-OzO9AI5VUtrTD7KSdagf4MWgHMtET17Ua1fIpXTpuhclCqD8egFWo85GxSGvxgkGS74bEahvtM0WP0HjvV0e4w==} + /micromark-util-decode-numeric-character-reference@2.0.1: + resolution: {integrity: sha512-bmkNc7z8Wn6kgjZmVHOX3SowGmVdhYS7yBpMnuMnPzDq/6xwVA604DuOXMZTO1lvq01g+Adfa0pE2UKGlxL1XQ==} dependencies: - micromark-util-symbol: 1.0.1 + micromark-util-symbol: 2.0.0 - /micromark-util-decode-string@1.0.2: - resolution: {integrity: sha512-DLT5Ho02qr6QWVNYbRZ3RYOSSWWFuH3tJexd3dgN1odEuPNxCngTCXJum7+ViRAd9BbdxCvMToPOD/IvVhzG6Q==} + /micromark-util-decode-string@2.0.0: + resolution: {integrity: sha512-r4Sc6leeUTn3P6gk20aFMj2ntPwn6qpDZqWvYmAG6NgvFTIlj4WtrAudLi65qYoaGdXYViXYw2pkmn7QnIFasA==} dependencies: decode-named-character-reference: 1.0.2 - micromark-util-character: 1.1.0 - micromark-util-decode-numeric-character-reference: 1.0.0 - micromark-util-symbol: 1.0.1 + micromark-util-character: 2.1.0 + micromark-util-decode-numeric-character-reference: 2.0.1 + micromark-util-symbol: 2.0.0 - /micromark-util-encode@1.0.1: - resolution: {integrity: sha512-U2s5YdnAYexjKDel31SVMPbfi+eF8y1U4pfiRW/Y8EFVCy/vgxk/2wWTxzcqE71LHtCuCzlBDRU2a5CQ5j+mQA==} + /micromark-util-encode@2.0.0: + resolution: {integrity: sha512-pS+ROfCXAGLWCOc8egcBvT0kf27GoWMqtdarNfDcjb6YLuV5cM3ioG45Ys2qOVqeqSbjaKg72vU+Wby3eddPsA==} - /micromark-util-events-to-acorn@1.2.1: - resolution: {integrity: sha512-mkg3BaWlw6ZTkQORrKVBW4o9ICXPxLtGz51vml5mQpKFdo9vqIX68CAx5JhTOdjQyAHH7JFmm4rh8toSPQZUmg==} + /micromark-util-events-to-acorn@2.0.2: + resolution: {integrity: sha512-Fk+xmBrOv9QZnEDguL9OI9/NQQp6Hz4FuQ4YmCb/5V7+9eAh1s6AYSvL20kHkD67YIg7EpE54TiSlcsf3vyZgA==} dependencies: '@types/acorn': 4.0.6 - '@types/estree': 1.0.1 - estree-util-visit: 1.2.1 - micromark-util-types: 1.0.2 - uvu: 0.5.6 - vfile-location: 4.1.0 - vfile-message: 3.1.4 - dev: false + '@types/estree': 1.0.5 + '@types/unist': 3.0.2 + devlop: 1.1.0 + estree-util-visit: 2.0.0 + micromark-util-symbol: 2.0.0 + micromark-util-types: 2.0.0 + vfile-message: 4.0.2 + dev: true - /micromark-util-html-tag-name@1.1.0: - resolution: {integrity: sha512-BKlClMmYROy9UiV03SwNmckkjn8QHVaWkqoAqzivabvdGcwNGMMMH/5szAnywmsTBUzDsU57/mFi0sp4BQO6dA==} + /micromark-util-html-tag-name@2.0.0: + resolution: {integrity: sha512-xNn4Pqkj2puRhKdKTm8t1YHC/BAjx6CEwRFXntTaRf/x16aqka6ouVoutm+QdkISTlT7e2zU7U4ZdlDLJd2Mcw==} - /micromark-util-normalize-identifier@1.0.0: - resolution: {integrity: sha512-yg+zrL14bBTFrQ7n35CmByWUTFsgst5JhA4gJYoty4Dqzj4Z4Fr/DHekSS5aLfH9bdlfnSvKAWsAgJhIbogyBg==} + /micromark-util-normalize-identifier@2.0.0: + resolution: {integrity: sha512-2xhYT0sfo85FMrUPtHcPo2rrp1lwbDEEzpx7jiH2xXJLqBuy4H0GgXk5ToU8IEwoROtXuL8ND0ttVa4rNqYK3w==} dependencies: - micromark-util-symbol: 1.0.1 + micromark-util-symbol: 2.0.0 - /micromark-util-resolve-all@1.0.0: - resolution: {integrity: sha512-CB/AGk98u50k42kvgaMM94wzBqozSzDDaonKU7P7jwQIuH2RU0TeBqGYJz2WY1UdihhjweivStrJ2JdkdEmcfw==} + /micromark-util-resolve-all@2.0.0: + resolution: {integrity: sha512-6KU6qO7DZ7GJkaCgwBNtplXCvGkJToU86ybBAUdavvgsCiG8lSSvYxr9MhwmQ+udpzywHsl4RpGJsYWG1pDOcA==} dependencies: - micromark-util-types: 1.0.2 + micromark-util-types: 2.0.0 - /micromark-util-sanitize-uri@1.1.0: - resolution: {integrity: sha512-RoxtuSCX6sUNtxhbmsEFQfWzs8VN7cTctmBPvYivo98xb/kDEoTCtJQX5wyzIYEmk/lvNFTat4hL8oW0KndFpg==} + /micromark-util-sanitize-uri@2.0.0: + resolution: {integrity: sha512-WhYv5UEcZrbAtlsnPuChHUAsu/iBPOVaEVsntLBIdpibO0ddy8OzavZz3iL2xVvBZOpolujSliP65Kq0/7KIYw==} dependencies: - micromark-util-character: 1.1.0 - micromark-util-encode: 1.0.1 - micromark-util-symbol: 1.0.1 + micromark-util-character: 2.1.0 + micromark-util-encode: 2.0.0 + micromark-util-symbol: 2.0.0 - /micromark-util-subtokenize@1.0.2: - resolution: {integrity: sha512-d90uqCnXp/cy4G881Ub4psE57Sf8YD0pim9QdjCRNjfas2M1u6Lbt+XZK9gnHL2XFhnozZiEdCa9CNfXSfQ6xA==} + /micromark-util-subtokenize@2.0.0: + resolution: {integrity: sha512-vc93L1t+gpR3p8jxeVdaYlbV2jTYteDje19rNSS/H5dlhxUYll5Fy6vJ2cDwP8RnsXi818yGty1ayP55y3W6fg==} dependencies: - micromark-util-chunked: 1.0.0 - micromark-util-symbol: 1.0.1 - micromark-util-types: 1.0.2 - uvu: 0.5.6 + devlop: 1.1.0 + micromark-util-chunked: 2.0.0 + micromark-util-symbol: 2.0.0 + micromark-util-types: 2.0.0 - /micromark-util-symbol@1.0.1: - resolution: {integrity: sha512-oKDEMK2u5qqAptasDAwWDXq0tG9AssVwAx3E9bBF3t/shRIGsWIRG+cGafs2p/SnDSOecnt6hZPCE2o6lHfFmQ==} + /micromark-util-symbol@2.0.0: + resolution: {integrity: sha512-8JZt9ElZ5kyTnO94muPxIGS8oyElRJaiJO8EzV6ZSyGQ1Is8xwl4Q45qU5UOg+bGH4AikWziz0iN4sFLWs8PGw==} - /micromark-util-types@1.0.2: - resolution: {integrity: sha512-DCfg/T8fcrhrRKTPjRrw/5LLvdGV7BHySf/1LOZx7TzWZdYRjogNtyNq885z3nNallwr3QUKARjqvHqX1/7t+w==} + /micromark-util-types@2.0.0: + resolution: {integrity: sha512-oNh6S2WMHWRZrmutsRmDDfkzKtxF+bc2VxLC9dvtrDIRFln627VsFP6fLMgTryGDljgLPjkrzQSDcPrjPyDJ5w==} - /micromark@3.1.0: - resolution: {integrity: sha512-6Mj0yHLdUZjHnOPgr5xfWIMqMWS12zDN6iws9SLuSz76W8jTtAv24MN4/CL7gJrl5vtxGInkkqDv/JIoRsQOvA==} + /micromark@4.0.0: + resolution: {integrity: sha512-o/sd0nMof8kYff+TqcDx3VSrgBTcZpSvYcAHIfHhv5VAuNmisCxjhx6YmxS8PFEpb9z5WKWKPdzf0jM23ro3RQ==} dependencies: - '@types/debug': 4.1.7 + '@types/debug': 4.1.12 debug: 4.3.4 decode-named-character-reference: 1.0.2 - micromark-core-commonmark: 1.0.6 - micromark-factory-space: 1.0.0 - micromark-util-character: 1.1.0 - micromark-util-chunked: 1.0.0 - micromark-util-combine-extensions: 1.0.0 - micromark-util-decode-numeric-character-reference: 1.0.0 - micromark-util-encode: 1.0.1 - micromark-util-normalize-identifier: 1.0.0 - micromark-util-resolve-all: 1.0.0 - micromark-util-sanitize-uri: 1.1.0 - micromark-util-subtokenize: 1.0.2 - micromark-util-symbol: 1.0.1 - micromark-util-types: 1.0.2 - uvu: 0.5.6 + devlop: 1.1.0 + micromark-core-commonmark: 2.0.0 + micromark-factory-space: 2.0.0 + micromark-util-character: 2.1.0 + micromark-util-chunked: 2.0.0 + micromark-util-combine-extensions: 2.0.0 + micromark-util-decode-numeric-character-reference: 2.0.1 + micromark-util-encode: 2.0.0 + micromark-util-normalize-identifier: 2.0.0 + micromark-util-resolve-all: 2.0.0 + micromark-util-sanitize-uri: 2.0.0 + micromark-util-subtokenize: 2.0.0 + micromark-util-symbol: 2.0.0 + micromark-util-types: 2.0.0 transitivePeerDependencies: - supports-color @@ -5947,11 +5365,6 @@ packages: engines: {node: '>=6'} dev: true - /mimic-response@3.1.0: - resolution: {integrity: sha512-z0yWI+4FDrrweS8Zmt4Ej5HdJmky15+L2e6Wgn3+iK5fWzb6T3fhNFq2+MeTRb064c6Wr4N/wv0DzQTjNzHNGQ==} - engines: {node: '>=10'} - dev: false - /min-indent@1.0.1: resolution: {integrity: sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg==} engines: {node: '>=4'} @@ -5973,14 +5386,12 @@ packages: /minimist@1.2.8: resolution: {integrity: sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==} - - /mkdirp-classic@0.5.3: - resolution: {integrity: sha512-gKLcREMhtuZRwRAfqP3RFW+TK4JqApVBtOIftVgjuABpAtpxhPGaDcfvbhNvD0B8iD1oUr/txX35NjcaY6Ns/A==} - dev: false + dev: true /mri@1.2.0: resolution: {integrity: sha512-tzzskb3bG8LvYGFF/mDTpq3jpI6Q9wc3LEmBaghu+DdCssd1FakN7Bc0hVNmEyGq1bq3RgfkCb3cmQLpNPOroA==} engines: {node: '>=4'} + dev: true /ms@2.1.2: resolution: {integrity: sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==} @@ -6012,10 +5423,6 @@ packages: engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1} hasBin: true - /napi-build-utils@1.0.2: - resolution: {integrity: sha512-ONmRUqK7zj7DWX0D9ADe03wbwOBZxNAfF20PlGfCWQcD3+/MakShIHrMqx9YwPTfxDdF1zLeL+RGZiR9kGMLdg==} - dev: false - /natural-compare@1.4.0: resolution: {integrity: sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==} @@ -6034,7 +5441,7 @@ packages: '@panva/hkdf': 1.0.4 cookie: 0.5.0 jose: 4.14.1 - next: 13.3.2-canary.13(@babel/core@7.21.4)(@opentelemetry/api@1.1.0)(react-dom@18.2.0)(react@18.2.0) + next: 13.3.2-canary.13(@babel/core@7.21.4)(react-dom@18.2.0)(react@18.2.0) nodemailer: 6.9.1 oauth: 0.9.15 openid-client: 5.4.1 @@ -6045,25 +5452,6 @@ packages: uuid: 8.3.2 dev: false - /next-contentlayer@0.3.1(esbuild@0.17.18)(next@13.3.2-canary.13)(react-dom@18.2.0)(react@18.2.0): - resolution: {integrity: sha512-wqt4H+yq7Hw8vEKpTux1l8zXd/1dyHLY5M9SICctxupn0Tvd1jDmUSTnhQxqUYK9XspL6UYuGqHL3qQ05tnjBQ==} - peerDependencies: - next: ^12 || ^13 - react: '*' - react-dom: '*' - dependencies: - '@contentlayer/core': 0.3.1(esbuild@0.17.18) - '@contentlayer/utils': 0.3.1 - next: 13.3.2-canary.13(@babel/core@7.21.4)(@opentelemetry/api@1.1.0)(react-dom@18.2.0)(react@18.2.0) - react: 18.2.0 - react-dom: 18.2.0(react@18.2.0) - transitivePeerDependencies: - - '@effect-ts/otel-node' - - esbuild - - markdown-wasm - - supports-color - dev: false - /next-themes@0.2.1(next@13.3.2-canary.13)(react-dom@18.2.0)(react@18.2.0): resolution: {integrity: sha512-B+AKNfYNIzh0vqQQKqQItTS8evEouKD7H5Hj3kmuPERwddR2TxvDSFZuTj6T7Jfn1oyeUyJMydPl1Bkxkh0W7A==} peerDependencies: @@ -6071,12 +5459,12 @@ packages: react: '*' react-dom: '*' dependencies: - next: 13.3.2-canary.13(@babel/core@7.21.4)(@opentelemetry/api@1.1.0)(react-dom@18.2.0)(react@18.2.0) + next: 13.3.2-canary.13(@babel/core@7.21.4)(react-dom@18.2.0)(react@18.2.0) react: 18.2.0 react-dom: 18.2.0(react@18.2.0) dev: false - /next@13.3.2-canary.13(@babel/core@7.21.4)(@opentelemetry/api@1.1.0)(react-dom@18.2.0)(react@18.2.0): + /next@13.3.2-canary.13(@babel/core@7.21.4)(react-dom@18.2.0)(react@18.2.0): resolution: {integrity: sha512-bz3TkzSdiY+ABBW0/aqOl0EvQTQapQtkvsPYCR5LGAM0eeQ8V6ZPrH+4RhkHJMN48qNU9MQZQlP7SsKCabGciw==} engines: {node: '>=16.8.0'} hasBin: true @@ -6098,7 +5486,6 @@ packages: optional: true dependencies: '@next/env': 13.3.2-canary.13 - '@opentelemetry/api': 1.1.0 '@swc/helpers': 0.5.1 busboy: 1.6.0 caniuse-lite: 1.0.30001481 @@ -6106,51 +5493,19 @@ packages: react: 18.2.0 react-dom: 18.2.0(react@18.2.0) styled-jsx: 5.1.1(@babel/core@7.21.4)(react@18.2.0) - optionalDependencies: - '@next/swc-darwin-arm64': 13.3.2-canary.13 - '@next/swc-darwin-x64': 13.3.2-canary.13 - '@next/swc-linux-arm64-gnu': 13.3.2-canary.13 - '@next/swc-linux-arm64-musl': 13.3.2-canary.13 - '@next/swc-linux-x64-gnu': 13.3.2-canary.13 - '@next/swc-linux-x64-musl': 13.3.2-canary.13 - '@next/swc-win32-arm64-msvc': 13.3.2-canary.13 - '@next/swc-win32-ia32-msvc': 13.3.2-canary.13 - '@next/swc-win32-x64-msvc': 13.3.2-canary.13 - transitivePeerDependencies: - - '@babel/core' - - babel-plugin-macros - dev: false - - /no-case@3.0.4: - resolution: {integrity: sha512-fgAN3jGAh+RoxUGZHTSOLJIqUc2wmoBwGR4tbpNAKmmovFoWq0OdRkb0VkldReO2a2iBT/OEulG9XSUc10r3zg==} - dependencies: - lower-case: 2.0.2 - tslib: 2.5.0 - dev: false - - /node-abi@3.40.0: - resolution: {integrity: sha512-zNy02qivjjRosswoYmPi8hIKJRr8MpQyeKT6qlcq/OnOgA3Rhoae+IYOqsM9V5+JnHWmxKnWOT2GxvtqdtOCXA==} - engines: {node: '>=10'} - dependencies: - semver: 7.5.0 - dev: false - - /node-addon-api@5.1.0: - resolution: {integrity: sha512-eh0GgfEkpnoWDq+VY8OyvYhFEzBk6jIYbRKdIlyTiAXIVJ8PyBaKb0rp7oDtoddbdoHWhq8wwr+XZ81F1rpNdA==} - dev: false - - /node-domexception@1.0.0: - resolution: {integrity: sha512-/jKZoMpw0F8GRwl4/eLROPA3cfcXtLApP0QzLmUT/HuPCZWyB7IY9ZrMeKw2O/nFIqPQB3PVM9aYm0F312AXDQ==} - engines: {node: '>=10.5.0'} - dev: false - - /node-fetch@3.3.1: - resolution: {integrity: sha512-cRVc/kyto/7E5shrWca1Wsea4y6tL9iYJE5FBCius3JQfb/4P4I295PfhgbJQBLTx6lATE4z+wK0rPM4VS2uow==} - engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} - dependencies: - data-uri-to-buffer: 4.0.1 - fetch-blob: 3.2.0 - formdata-polyfill: 4.0.10 + optionalDependencies: + '@next/swc-darwin-arm64': 13.3.2-canary.13 + '@next/swc-darwin-x64': 13.3.2-canary.13 + '@next/swc-linux-arm64-gnu': 13.3.2-canary.13 + '@next/swc-linux-arm64-musl': 13.3.2-canary.13 + '@next/swc-linux-x64-gnu': 13.3.2-canary.13 + '@next/swc-linux-x64-musl': 13.3.2-canary.13 + '@next/swc-win32-arm64-msvc': 13.3.2-canary.13 + '@next/swc-win32-ia32-msvc': 13.3.2-canary.13 + '@next/swc-win32-x64-msvc': 13.3.2-canary.13 + transitivePeerDependencies: + - '@babel/core' + - babel-plugin-macros dev: false /node-releases@2.0.10: @@ -6290,11 +5645,6 @@ packages: mimic-fn: 2.1.0 dev: true - /oo-ascii-tree@1.80.0: - resolution: {integrity: sha512-jEfsnu53QsI0VcGrbCR9eS8QuuSp6Ddf1oFc3GK9WP6Ao49/dVWwxk4ijk/YyX2HJDluBSM82yez313rzhI7rw==} - engines: {node: '>= 14.6.0'} - dev: false - /openid-client@5.4.1: resolution: {integrity: sha512-z19tZRY1CvpDf9L8nFyv5LW3CWoRDuz8EdmUFyouUrf5FDZitaJ8C+tIHF6WnjA2DPG4Fu2JWkNjexNzLWjh3Q==} dependencies: @@ -6363,7 +5713,7 @@ packages: is-alphanumerical: 2.0.1 is-decimal: 2.0.1 is-hexadecimal: 2.0.1 - dev: false + dev: true /parse-json@5.2.0: resolution: {integrity: sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==} @@ -6381,13 +5731,13 @@ packages: /parse5@6.0.1: resolution: {integrity: sha512-Ofn/CTFzRGTTxwpNEs9PP93gXShHcTq255nzRYSKe8AkVpZY7e1fpmTfOyoIvjP5HG7Z2ZM7VS9PPhQGW2pOpw==} + dev: true - /pascal-case@3.1.2: - resolution: {integrity: sha512-uWlGT3YSnK9x3BQJaOdcZwrnV6hPpd8jFH1/ucpiLRPh/2zCVJKS19E4GvYHvaCcACn3foXZ0cLB9Wrx1KGe5g==} + /parse5@7.1.2: + resolution: {integrity: sha512-Czj1WaSVpaoj0wbhMzLmWD69anp2WH7FXMB9n1Sy8/ZFF9jolSQVMu1Ij5WIyGmcBmhk7EOndpO4mIpihVqAXw==} dependencies: - no-case: 3.0.4 - tslib: 2.5.0 - dev: false + entities: 4.5.0 + dev: true /path-exists@4.0.0: resolution: {integrity: sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==} @@ -6411,10 +5761,10 @@ packages: /periscopic@3.1.0: resolution: {integrity: sha512-vKiQ8RRtkl9P+r/+oefh25C3fhybptkHKCZSPlcXiJux2tJF55GnEj3BVn4A5gKfq9NWWXXrxkHBwVPUfH0opw==} dependencies: - '@types/estree': 1.0.1 + '@types/estree': 1.0.5 estree-walker: 3.0.3 - is-reference: 3.0.1 - dev: false + is-reference: 3.0.2 + dev: true /picocolors@1.0.0: resolution: {integrity: sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==} @@ -6533,25 +5883,6 @@ packages: resolution: {integrity: sha512-q44QFLhOhty2Bd0Y46fnYW0gD/cbVM9dUVtNTDKPcdXSMA7jfY+Jpd6rk3GB0lcQss0z5s/6CmVP0Z/hV+g6pw==} dev: false - /prebuild-install@7.1.1: - resolution: {integrity: sha512-jAXscXWMcCK8GgCoHOfIr0ODh5ai8mj63L2nWrjuAgXE6tDyYGnx4/8o/rCgU+B4JSyZBKbeZqzhtwtC3ovxjw==} - engines: {node: '>=10'} - hasBin: true - dependencies: - detect-libc: 2.0.1 - expand-template: 2.0.3 - github-from-package: 0.0.0 - minimist: 1.2.8 - mkdirp-classic: 0.5.3 - napi-build-utils: 1.0.2 - node-abi: 3.40.0 - pump: 3.0.0 - rc: 1.2.8 - simple-get: 4.0.1 - tar-fs: 2.1.1 - tunnel-agent: 0.6.0 - dev: false - /prelude-ls@1.2.1: resolution: {integrity: sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==} engines: {node: '>= 0.8.0'} @@ -6608,51 +5939,14 @@ packages: /property-information@6.2.0: resolution: {integrity: sha512-kma4U7AFCTwpqq5twzC1YVIDXSqg6qQK6JN0smOw8fgRy1OkMi0CYSzFmsy6dnqSenamAtj0CyXMUJ1Mf6oROg==} - - /protobufjs@6.11.3: - resolution: {integrity: sha512-xL96WDdCZYdU7Slin569tFX712BxsxslWwAfAhCYjQKGTq7dAU91Lomy6nLLhh/dyGhk/YH4TwTSRxTzhuHyZg==} - hasBin: true - requiresBuild: true - dependencies: - '@protobufjs/aspromise': 1.1.2 - '@protobufjs/base64': 1.1.2 - '@protobufjs/codegen': 2.0.4 - '@protobufjs/eventemitter': 1.1.0 - '@protobufjs/fetch': 1.1.0 - '@protobufjs/float': 1.0.2 - '@protobufjs/inquire': 1.1.0 - '@protobufjs/path': 1.1.2 - '@protobufjs/pool': 1.1.0 - '@protobufjs/utf8': 1.1.0 - '@types/long': 4.0.2 - '@types/node': 18.16.0 - long: 4.0.0 - dev: false - - /protobufjs@7.2.3: - resolution: {integrity: sha512-TtpvOqwB5Gdz/PQmOjgsrGH1nHjAQVCN7JG4A6r1sXRWESL5rNMAiRcBQlCAdKxZcAbstExQePYG8xof/JVRgg==} - engines: {node: '>=12.0.0'} - requiresBuild: true - dependencies: - '@protobufjs/aspromise': 1.1.2 - '@protobufjs/base64': 1.1.2 - '@protobufjs/codegen': 2.0.4 - '@protobufjs/eventemitter': 1.1.0 - '@protobufjs/fetch': 1.1.0 - '@protobufjs/float': 1.0.2 - '@protobufjs/inquire': 1.1.0 - '@protobufjs/path': 1.1.2 - '@protobufjs/pool': 1.1.0 - '@protobufjs/utf8': 1.1.0 - '@types/node': 18.16.0 - long: 5.2.3 - dev: false + dev: true /pump@3.0.0: resolution: {integrity: sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==} dependencies: end-of-stream: 1.4.4 once: 1.4.0 + dev: true /punycode@2.3.0: resolution: {integrity: sha512-rRV+zQD8tVFys26lAGR9WUuS4iUAngJScM+ZRSKtvl5tKeZ2t5bvdNFdNHBW9FWR4guGHlgmsZ1G7BSm2wTbuA==} @@ -6682,16 +5976,6 @@ packages: resolution: {integrity: sha512-WuyALRjWPDGtt/wzJiadO5AXY+8hZ80hVpe6MyivgraREW751X3SbhRvG3eLKOYN+8VEvqLcf3wdnt44Z4S4SA==} engines: {node: '>=10'} - /rc@1.2.8: - resolution: {integrity: sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==} - hasBin: true - dependencies: - deep-extend: 0.6.0 - ini: 1.3.8 - minimist: 1.2.8 - strip-json-comments: 2.0.1 - dev: false - /react-day-picker@8.7.1(date-fns@2.29.3)(react@18.2.0): resolution: {integrity: sha512-Gv426AW8b151CZfh3aP5RUGztLwHB/EyJgWZ5iMgtzbFBkjHfG6Y66CIQFMWGLnYjsQ9DYSJRmJ5S0Pg5HWKjA==} peerDependencies: @@ -6859,6 +6143,7 @@ packages: inherits: 2.0.4 string_decoder: 1.3.0 util-deprecate: 1.0.2 + dev: true /readdirp@3.6.0: resolution: {integrity: sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==} @@ -6907,15 +6192,27 @@ packages: unified: 10.1.2 dev: true - /rehype-pretty-code@0.9.5(shiki@0.11.1): - resolution: {integrity: sha512-TYA4oDxxn4z/YZ6ZNz7BX5BuyeJzi7D6XxI44T/eqUOBYypwwOd7RZ+IBb1NkERpian/k7sZ1+KsdIbWDRenQw==} - engines: {node: ^12.16.0 || >=13.2.0} + /rehype-parse@9.0.0: + resolution: {integrity: sha512-WG7nfvmWWkCR++KEkZevZb/uw41E8TsH4DsY9UxsTbIXCVGbAs4S+r8FrQ+OtH5EEQAs+5UxKC42VinkmpA1Yw==} + dependencies: + '@types/hast': 3.0.4 + hast-util-from-html: 2.0.1 + unified: 11.0.4 + dev: true + + /rehype-pretty-code@0.13.0(shiki@1.1.7): + resolution: {integrity: sha512-+22dz1StXlF7dlMyOySNaVxgcGhMI4BCxq0JxJJPWYGiKsI6cu5jyuIKGHXHvH18D8sv1rdKtvsY9UEfN3++SQ==} + engines: {node: '>=18'} peerDependencies: - shiki: '*' + shiki: ^1.0.0 dependencies: - hash-obj: 4.0.0 + '@types/hast': 3.0.4 + hast-util-to-string: 3.0.0 parse-numeric-range: 1.3.0 - shiki: 0.11.1 + rehype-parse: 9.0.0 + shiki: 1.1.7 + unified: 11.0.4 + unist-util-visit: 5.0.0 dev: true /rehype-slug@5.1.0: @@ -6936,6 +6233,7 @@ packages: '@types/hast': 2.3.4 hast-util-to-html: 8.0.4 unified: 10.1.2 + dev: true /rehype@12.0.1: resolution: {integrity: sha512-ey6kAqwLM3X6QnMDILJthGvG1m1ULROS9NT4uG9IDCuv08SFyLlreSuvOa//DgEvbXx62DS6elGVqusWhRUbgw==} @@ -6946,90 +6244,58 @@ packages: unified: 10.1.2 dev: true - /remark-frontmatter@4.0.1: - resolution: {integrity: sha512-38fJrB0KnmD3E33a5jZC/5+gGAC2WKNiPw1/fdXJvijBlhA7RCsvJklrYJakS0HedninvaCYW8lQGf9C918GfA==} - dependencies: - '@types/mdast': 3.0.11 - mdast-util-frontmatter: 1.0.1 - micromark-extension-frontmatter: 1.1.0 - unified: 10.1.2 - dev: false - - /remark-gfm@3.0.1: - resolution: {integrity: sha512-lEFDoi2PICJyNrACFOfDD3JlLkuSbOa5Wd8EPt06HUdptv8Gn0bxYTdbU/XXQ3swAPkEaGxxPN9cbnMHvVu1Ig==} + /remark-mdx@3.0.1: + resolution: {integrity: sha512-3Pz3yPQ5Rht2pM5R+0J2MrGoBSrzf+tJG94N+t/ilfdh8YLyyKYtidAYwTveB20BoHAcwIopOUqhcmh2F7hGYA==} dependencies: - '@types/mdast': 3.0.11 - mdast-util-gfm: 2.0.2 - micromark-extension-gfm: 2.0.1 - unified: 10.1.2 + mdast-util-mdx: 3.0.0 + micromark-extension-mdxjs: 3.0.0 transitivePeerDependencies: - supports-color dev: true - /remark-mdx-frontmatter@1.1.1: - resolution: {integrity: sha512-7teX9DW4tI2WZkXS4DBxneYSY7NHiXl4AKdWDO9LXVweULlCT8OPWsOjLEnMIXViN1j+QcY8mfbq3k0EK6x3uA==} - engines: {node: '>=12.2.0'} - dependencies: - estree-util-is-identifier-name: 1.1.0 - estree-util-value-to-estree: 1.3.0 - js-yaml: 4.1.0 - toml: 3.0.0 - dev: false - - /remark-mdx@2.3.0: - resolution: {integrity: sha512-g53hMkpM0I98MU266IzDFMrTD980gNF3BJnkyFcmN+dD873mQeD5rdMO3Y2X+x8umQfbSE0PcoEDl7ledSA+2g==} + /remark-parse@11.0.0: + resolution: {integrity: sha512-FCxlKLNGknS5ba/1lmpYijMUzX2esxW5xQqjWxw2eHFfS2MSdaHVINFmhjo+qN1WhZhNimq0dZATN9pH0IDrpA==} dependencies: - mdast-util-mdx: 2.0.1 - micromark-extension-mdxjs: 1.0.0 + '@types/mdast': 4.0.3 + mdast-util-from-markdown: 2.0.0 + micromark-util-types: 2.0.0 + unified: 11.0.4 transitivePeerDependencies: - supports-color - dev: false - /remark-parse@10.0.1: - resolution: {integrity: sha512-1fUyHr2jLsVOkhbvPRBJ5zTKZZyD6yZzYaWCS6BPBdQ8vEMBCH+9zNCDA6tET/zHCi/jLqjCWtlJZUPk+DbnFw==} + /remark-rehype@11.1.0: + resolution: {integrity: sha512-z3tJrAs2kIs1AqIIy6pzHmAHlF1hWQ+OdY4/hv+Wxe35EhyLKcajL33iUEn3ScxtFox9nUvRufR/Zre8Q08H/g==} dependencies: - '@types/mdast': 3.0.11 - mdast-util-from-markdown: 1.3.0 - unified: 10.1.2 - transitivePeerDependencies: - - supports-color + '@types/hast': 3.0.4 + '@types/mdast': 4.0.3 + mdast-util-to-hast: 13.1.0 + unified: 11.0.4 + vfile: 6.0.1 + dev: true - /remark-rehype@10.1.0: - resolution: {integrity: sha512-EFmR5zppdBp0WQeDVZ/b66CWJipB2q2VLNFMabzDSGR66Z2fQii83G5gTBbgGEnEEA0QRussvrFHxk1HWGJskw==} + /remark-stringify@11.0.0: + resolution: {integrity: sha512-1OSmLd3awB/t8qdoEOMazZkNsfVTeY4fTsgzcQFdXNq8ToTN4ZGwrMnlda4K6smTFKD+GRV6O48i6Z4iKgPPpw==} dependencies: - '@types/hast': 2.3.4 - '@types/mdast': 3.0.11 - mdast-util-to-hast: 12.3.0 - unified: 10.1.2 + '@types/mdast': 4.0.3 + mdast-util-to-markdown: 2.1.0 + unified: 11.0.4 dev: false - /remark-stringify@10.0.2: - resolution: {integrity: sha512-6wV3pvbPvHkbNnWB0wdDvVFHOe1hBRAx1Q/5g/EpH4RppAII6J8Gnwe7VbHuXaoKIF6LAg6ExTel/+kNqSQ7lw==} - dependencies: - '@types/mdast': 3.0.11 - mdast-util-to-markdown: 1.5.0 - unified: 10.1.2 - dev: true - - /remark@14.0.2: - resolution: {integrity: sha512-A3ARm2V4BgiRXaUo5K0dRvJ1lbogrbXnhkJRmD0yw092/Yl0kOCZt1k9ZeElEwkZsWGsMumz6qL5MfNJH9nOBA==} + /remark@15.0.1: + resolution: {integrity: sha512-Eht5w30ruCXgFmxVUSlNWQ9iiimq07URKeFS3hNc8cUWy1llX4KDWfyEDZRycMc+znsN9Ux5/tJ/BFdgdOwA3A==} dependencies: - '@types/mdast': 3.0.11 - remark-parse: 10.0.1 - remark-stringify: 10.0.2 - unified: 10.1.2 + '@types/mdast': 4.0.3 + remark-parse: 11.0.0 + remark-stringify: 11.0.0 + unified: 11.0.4 transitivePeerDependencies: - supports-color - dev: true - - /repeat-string@1.6.1: - resolution: {integrity: sha512-PV0dzCYDNfRi1jCDbJzpW7jNNDRuCOG/jI5ctQcGKt/clZD+YcPS3yIlWuTJMmESC8aevCFmWJy5wjAFgNqN6w==} - engines: {node: '>=0.10'} dev: false /require-directory@2.1.1: resolution: {integrity: sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==} engines: {node: '>=0.10.0'} + dev: true /require-from-string@2.0.2: resolution: {integrity: sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==} @@ -7084,20 +6350,9 @@ packages: dependencies: queue-microtask: 1.2.3 - /rxjs@7.8.0: - resolution: {integrity: sha512-F2+gxDshqmIub1KdvZkaEfGDwLNpPvk9Fs6LD/MyQxNgMds/WH9OdDDXOmxUZpME+iSK3rQCctkL0DYyytUqMg==} - dependencies: - tslib: 2.5.0 - dev: false - - /sade@1.8.1: - resolution: {integrity: sha512-xal3CZX1Xlo/k4ApwCFrHVACi9fBqJ7V+mwhBsuf/1IOKbBy098Fex+Wa/5QMubw09pSZ/u8EY8PWgevJsXp1A==} - engines: {node: '>=6'} - dependencies: - mri: 1.2.0 - /safe-buffer@5.2.1: resolution: {integrity: sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==} + dev: true /safe-regex-test@1.0.0: resolution: {integrity: sha512-JBUUzyOgEwXQY1NuPtvcj/qcBDbDmEvWufhlnXZIm75DEHp+afM1r1ujJpJsV/gSM4t59tpDyPi1sd6ZaPFfsA==} @@ -7126,14 +6381,6 @@ packages: loose-envify: 1.4.0 dev: false - /section-matter@1.0.0: - resolution: {integrity: sha512-vfD3pmTzGpufjScBh50YHKzEu2lxBWhVEHsNGoEXmCmn2hKGfeNLYMzCJpe8cD7gqX7TJluOVpBkAequ6dgMmA==} - engines: {node: '>=4'} - dependencies: - extend-shallow: 2.0.1 - kind-of: 6.0.3 - dev: false - /semver@5.7.1: resolution: {integrity: sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==} hasBin: true @@ -7158,20 +6405,41 @@ packages: dependencies: lru-cache: 6.0.0 - /sharp@0.31.3: - resolution: {integrity: sha512-XcR4+FCLBFKw1bdB+GEhnUNXNXvnt0tDo4WsBsraKymuo/IAuPuCBVAL2wIkUw2r/dwFW5Q5+g66Kwl2dgDFVg==} - engines: {node: '>=14.15.0'} + /semver@7.6.0: + resolution: {integrity: sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==} + engines: {node: '>=10'} + hasBin: true + dependencies: + lru-cache: 6.0.0 + + /sharp@0.33.2: + resolution: {integrity: sha512-WlYOPyyPDiiM07j/UO+E720ju6gtNtHjEGg5vovUk1Lgxyjm2LFO+37Nt/UI3MMh2l6hxTWQWi7qk3cXJTutcQ==} + engines: {libvips: '>=8.15.1', node: ^18.17.0 || ^20.3.0 || >=21.0.0} requiresBuild: true dependencies: color: 4.2.3 - detect-libc: 2.0.1 - node-addon-api: 5.1.0 - prebuild-install: 7.1.1 - semver: 7.5.0 - simple-get: 4.0.1 - tar-fs: 2.1.1 - tunnel-agent: 0.6.0 - dev: false + detect-libc: 2.0.2 + semver: 7.6.0 + optionalDependencies: + '@img/sharp-darwin-arm64': 0.33.2 + '@img/sharp-darwin-x64': 0.33.2 + '@img/sharp-libvips-darwin-arm64': 1.0.1 + '@img/sharp-libvips-darwin-x64': 1.0.1 + '@img/sharp-libvips-linux-arm': 1.0.1 + '@img/sharp-libvips-linux-arm64': 1.0.1 + '@img/sharp-libvips-linux-s390x': 1.0.1 + '@img/sharp-libvips-linux-x64': 1.0.1 + '@img/sharp-libvips-linuxmusl-arm64': 1.0.1 + '@img/sharp-libvips-linuxmusl-x64': 1.0.1 + '@img/sharp-linux-arm': 0.33.2 + '@img/sharp-linux-arm64': 0.33.2 + '@img/sharp-linux-s390x': 0.33.2 + '@img/sharp-linux-x64': 0.33.2 + '@img/sharp-linuxmusl-arm64': 0.33.2 + '@img/sharp-linuxmusl-x64': 0.33.2 + '@img/sharp-wasm32': 0.33.2 + '@img/sharp-win32-ia32': 0.33.2 + '@img/sharp-win32-x64': 0.33.2 /shebang-command@2.0.0: resolution: {integrity: sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==} @@ -7183,16 +6451,10 @@ packages: resolution: {integrity: sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==} engines: {node: '>=8'} - /shell-quote@1.8.1: - resolution: {integrity: sha512-6j1W9l1iAs/4xYBI1SYOVZyFcCis9b4KCLQ8fgAGG07QvzaRLVVRQvAy85yNmmZSjYjg4MWh4gNvlPujU/5LpA==} - dev: false - - /shiki@0.11.1: - resolution: {integrity: sha512-EugY9VASFuDqOexOgXR18ZV+TbFrQHeCpEYaXamO+SZlsnT/2LxuLBX25GGtIrwaEVFXUAbUQ601SWE2rMwWHA==} + /shiki@1.1.7: + resolution: {integrity: sha512-9kUTMjZtcPH3i7vHunA6EraTPpPOITYTdA5uMrvsJRexktqP0s7P3s9HVK80b4pP42FRVe03D7fT3NmJv2yYhw==} dependencies: - jsonc-parser: 3.2.0 - vscode-oniguruma: 1.7.0 - vscode-textmate: 6.0.0 + '@shikijs/core': 1.1.7 /side-channel@1.0.4: resolution: {integrity: sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==} @@ -7205,35 +6467,15 @@ packages: resolution: {integrity: sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==} dev: true - /simple-concat@1.0.1: - resolution: {integrity: sha512-cSFtAPtRhljv69IK0hTVZQ+OfE9nePi/rtJmw5UjHeVyVroEqJXP1sFztKUy1qU+xvz3u/sfYJLa947b7nAN2Q==} - dev: false - - /simple-get@4.0.1: - resolution: {integrity: sha512-brv7p5WgH0jmQJr1ZDDfKDOSeWWg+OVypG99A/5vYGPqJ6pxiaHLy8nxtFjBA7oMa01ebA9gfh1uMCFqOuXxvA==} - dependencies: - decompress-response: 6.0.0 - once: 1.4.0 - simple-concat: 1.0.1 - dev: false - /simple-swizzle@0.2.2: resolution: {integrity: sha512-JA//kQgZtbuY83m+xT+tXJkmJncGMTFT+C+g2h2R9uxkYIrE2yy9sgmcLhCnw57/WSD+Eh3J97FPEDFnbXnDUg==} dependencies: is-arrayish: 0.3.2 - dev: false /slash@3.0.0: resolution: {integrity: sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==} engines: {node: '>=8'} - /sort-keys@5.0.0: - resolution: {integrity: sha512-Pdz01AvCAottHTPQGzndktFNdbRA75BgOfeT1hH+AMnJFv8lynkPi42rfeEhpx1saTEI3YNMWxfqu0sFD1G8pw==} - engines: {node: '>=12'} - dependencies: - is-plain-obj: 4.1.0 - dev: true - /source-map-js@1.0.2: resolution: {integrity: sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==} engines: {node: '>=0.10.0'} @@ -7243,24 +6485,21 @@ packages: dependencies: buffer-from: 1.1.2 source-map: 0.6.1 - dev: false + dev: true /source-map@0.6.1: resolution: {integrity: sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==} engines: {node: '>=0.10.0'} - dev: false + dev: true /source-map@0.7.4: resolution: {integrity: sha512-l3BikUxvPOcn5E74dZiq5BGsTb5yEwhaTSzccU6t4sDOH8NWJCstKO5QT2CvtFoK6F0saL7p9xHAqHOlCPJygA==} engines: {node: '>= 8'} - dev: false + dev: true /space-separated-tokens@2.0.2: resolution: {integrity: sha512-PEGlAwrG8yXGXRjW32fGbg66JAlOAwbObuqVoJpv/mRgoWDQfgH1wDPvtzWyUSNAXBGSk8h755YDbbcEy3SH2Q==} - - /spawn-command@0.0.2-1: - resolution: {integrity: sha512-n98l9E2RMSJ9ON1AKisHzz7V42VDiBQGY6PB1BwRglz99wpVsSuGzQ+jOi6lFXBGVTCrRpltvjm+/XA+tpeJrg==} - dev: false + dev: true /spdx-correct@3.2.0: resolution: {integrity: sha512-kN9dJbvnySHULIluDHy32WHRUu3Og7B9sbY7tsFLctQkIqnMh3hErYgdMjTYuqmcXX+lK5T1lnUt3G7zNswmZA==} @@ -7290,10 +6529,6 @@ packages: readable-stream: 3.6.2 dev: true - /sprintf-js@1.0.3: - resolution: {integrity: sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==} - dev: false - /stop-iteration-iterator@1.0.0: resolution: {integrity: sha512-iCGQj+0l0HOdZ2AEeBADlsRC+vsnDsZsbdSiH1yNSjcfKM7fdpCMfqAL/dwF5BLiw/XhRft/Wax6zQbhq2BcjQ==} engines: {node: '>= 0.4'} @@ -7313,6 +6548,7 @@ packages: emoji-regex: 8.0.0 is-fullwidth-code-point: 3.0.0 strip-ansi: 6.0.1 + dev: true /string.prototype.codepointat@0.2.1: resolution: {integrity: sha512-2cBVCj6I4IOvEnjgO/hWqXjqBGsY+zwPmHl12Srk9IXSZ56Jwwmy+66XO5Iut/oQVR7t5ihYdLB0GMa4alEUcg==} @@ -7360,12 +6596,14 @@ packages: resolution: {integrity: sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==} dependencies: safe-buffer: 5.2.1 + dev: true /stringify-entities@4.0.3: resolution: {integrity: sha512-BP9nNHMhhfcMbiuQKCqMjhDP5yBCAxsPu4pHFFzJ6Alo9dZgY4VLDPutXqIjpRiMoKdp7Av85Gr73Q5uH9k7+g==} dependencies: character-entities-html4: 2.1.0 character-entities-legacy: 3.0.0 + dev: true /strip-ansi@6.0.1: resolution: {integrity: sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==} @@ -7373,11 +6611,6 @@ packages: dependencies: ansi-regex: 5.0.1 - /strip-bom-string@1.0.0: - resolution: {integrity: sha512-uCC2VHvQRYu+lMh4My/sFNmF2klFymLX1wHJeXnbEJERpV/ZsVuonzerjfrGpIGF7LBVa1O7i9kjiWvJiFck8g==} - engines: {node: '>=0.10.0'} - dev: false - /strip-bom@3.0.0: resolution: {integrity: sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==} engines: {node: '>=4'} @@ -7395,11 +6628,6 @@ packages: min-indent: 1.0.1 dev: true - /strip-json-comments@2.0.1: - resolution: {integrity: sha512-4gB8na07fecVVkOI6Rs4e7T6NOTki5EmL7TUduTs6bu3EdnSycntVJ4re8kgZA+wx9IueI2Y11bfbgwtzuE0KQ==} - engines: {node: '>=0.10.0'} - dev: false - /strip-json-comments@3.1.1: resolution: {integrity: sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==} engines: {node: '>=8'} @@ -7412,11 +6640,17 @@ packages: qs: 6.11.1 dev: false - /style-to-object@0.4.1: - resolution: {integrity: sha512-HFpbb5gr2ypci7Qw+IOhnP2zOU7e77b+rzM+wTzXzfi1PrtBCX0E7Pk4wL4iTLnhzZ+JgEGAhX81ebTg/aYjQw==} + /style-to-object@0.4.4: + resolution: {integrity: sha512-HYNoHZa2GorYNyqiCaBgsxvcJIn7OHq6inEga+E6Ke3m5JkoqpQbnFssk4jwe+K7AhGa2fcha4wSOf1Kn01dMg==} dependencies: inline-style-parser: 0.1.1 - dev: false + dev: true + + /style-to-object@1.0.5: + resolution: {integrity: sha512-rDRwHtoDD3UMMrmZ6BzOW0naTjMsVZLIjsGleSKS/0Oz+cgCfAPRspaqJuE8rDzpKha/nEvnM0IF4seEAZUTKQ==} + dependencies: + inline-style-parser: 0.2.2 + dev: true /styled-jsx@5.1.1(@babel/core@7.21.4)(react@18.2.0): resolution: {integrity: sha512-pW7uC1l4mBZ8ugbiZrcIsiIvVx1UmTfw7UkC3Um2tmfUq9Bhk8IiyEIPl6F8agHgjzku6j0xQEZbfA5uSgSaCw==} @@ -7461,13 +6695,6 @@ packages: dependencies: has-flag: 4.0.0 - /supports-color@8.1.1: - resolution: {integrity: sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==} - engines: {node: '>=10'} - dependencies: - has-flag: 4.0.0 - dev: false - /supports-preserve-symlinks-flag@1.0.0: resolution: {integrity: sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==} engines: {node: '>= 0.4'} @@ -7518,25 +6745,16 @@ packages: transitivePeerDependencies: - ts-node - /tar-fs@2.1.1: - resolution: {integrity: sha512-V0r2Y9scmbDRLCNex/+hYzvp/zyYjvFbHPNgVTKfQvVrb6guiE/fxP+XblDNR011utopbkex2nM4dHNV6GDsng==} - dependencies: - chownr: 1.1.4 - mkdirp-classic: 0.5.3 - pump: 3.0.0 - tar-stream: 2.2.0 - dev: false - - /tar-stream@2.2.0: - resolution: {integrity: sha512-ujeqbceABgwMZxEJnk2HDY2DlnUZ+9oEcb1KzTVfYHio0UE6dG71n60d8D2I4qNvleWrrXpmjpt7vZeF1LnMZQ==} - engines: {node: '>=6'} + /terser@5.27.0: + resolution: {integrity: sha512-bi1HRwVRskAjheeYl291n3JC4GgO/Ty4z1nVs5AAsmonJulGxpSektecnNedrwK9C7vpvVtcX3cw00VSLt7U2A==} + engines: {node: '>=10'} + hasBin: true dependencies: - bl: 4.1.0 - end-of-stream: 1.4.4 - fs-constants: 1.0.0 - inherits: 2.0.4 - readable-stream: 3.6.2 - dev: false + '@jridgewell/source-map': 0.3.5 + acorn: 8.8.2 + commander: 2.20.3 + source-map-support: 0.5.21 + dev: true /text-extensions@1.9.0: resolution: {integrity: sha512-wiBrwC1EhBelW12Zy26JeOUkQ5mRu+5o8rpsJk5+2t+Y5vE7e842qtZDQ2g1NpX/29HdyFeJ4nSIhI47ENSxlQ==} @@ -7577,18 +6795,9 @@ packages: dependencies: is-number: 7.0.0 - /toml@3.0.0: - resolution: {integrity: sha512-y/mWCZinnvxjTKYhJ+pYxwD0mRLVvOtdS2Awbgxln6iEnt4rk0yBxeSBHkGJcPucRiG0e55mwWp+g/05rsrd6w==} - dev: false - - /tree-kill@1.2.2: - resolution: {integrity: sha512-L0Orpi8qGpRG//Nd+H90vFB+3iHnue1zSSGmNOOCh1GLJ7rUKVwV2HvijphGQS2UmhUZewS9VgvxYIdgr+fG1A==} - hasBin: true - dev: false - /trim-lines@3.0.1: resolution: {integrity: sha512-kRj8B+YHZCc9kQYdWfJB2/oUl9rA99qbowYYBtr4ui4mZyAQ2JpvVBd/6U2YloATfqBhBTSMhTpgBHtU0Mf3Rg==} - dev: false + dev: true /trim-newlines@3.0.1: resolution: {integrity: sha512-c1PTsA3tYrIsLGkJkzHF+w9F2EyxfXGo4UyJc4pFL++FMjnq0HJS69T3M7d//gKrFKwy429bouPescbjecU+Zw==} @@ -7631,10 +6840,6 @@ packages: v8-compile-cache-lib: 3.0.1 yn: 3.1.1 - /ts-pattern@4.2.2: - resolution: {integrity: sha512-qzJMo2pbkUJWusRH5o8xR+xogn6RmvViyUgwBFTtRENLse470clCGjHDf6haWGZ1AOmk8XkEohUoBW8Uut6Scg==} - dev: false - /tsconfig-paths@3.14.2: resolution: {integrity: sha512-o/9iXgCYc5L/JxCHPe3Hvh8Q/2xm5Z+p18PESBU6Ff33695QnCHBEjcytY2q19ua7Mbl/DavtBOLq+oG0RCL+g==} dependencies: @@ -7649,7 +6854,6 @@ packages: /tslib@2.5.0: resolution: {integrity: sha512-336iVw3rtn2BUK7ORdIAHTyxHGRIHVReokCR3XjbckJMK7ms8FysBfhLR8IXnAgy7T0PTPNBWKiH514FOW/WSg==} - dev: false /tsutils@3.21.0(typescript@4.7.4): resolution: {integrity: sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==} @@ -7660,16 +6864,6 @@ packages: tslib: 1.14.1 typescript: 4.7.4 - /tunnel-agent@0.6.0: - resolution: {integrity: sha512-McnNiV1l8RYeY8tBgEpuodCC1mLUdbSN+CYBL7kJsJNInOP8UjDDEwdk6Mw60vdLLrr5NHKZhMAOSrR2NZuQ+w==} - dependencies: - safe-buffer: 5.2.1 - dev: false - - /typanion@3.12.1: - resolution: {integrity: sha512-3SJF/czpzqq6G3lprGFLa6ps12yb1uQ1EmitNnep2fDMNh1aO/Zbq9sWY+3lem0zYb2oHJnQWyabTGUZ+L1ScQ==} - dev: false - /type-check@0.4.0: resolution: {integrity: sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==} engines: {node: '>= 0.8.0'} @@ -7695,16 +6889,6 @@ packages: engines: {node: '>=8'} dev: true - /type-fest@1.4.0: - resolution: {integrity: sha512-yGSza74xk0UG8k+pLh5oeoYirvIiWo5t0/o3zHHAO2tRDiZcxWP7fywNlXhqb6/r6sWvwi+RsyQMWhVLe4BVuA==} - engines: {node: '>=10'} - dev: true - - /type-fest@3.8.0: - resolution: {integrity: sha512-FVNSzGQz9Th+/9R6Lvv7WIAkstylfHN2/JYxkyhhmKFYh9At2DST8t6L6Lref9eYO8PXFTfG9Sg1Agg0K3vq3Q==} - engines: {node: '>=14.16'} - dev: false - /typed-array-length@1.0.4: resolution: {integrity: sha512-KjZypGq+I/H7HI5HlOoGHkWUUGq+Q0TPhQurLbyrVrvnKTBgzLhIJ7j6J/XTQOi0d1RjyZ0wdas8bKs2p0x3Ng==} dependencies: @@ -7737,44 +6921,78 @@ packages: is-plain-obj: 4.1.0 trough: 2.1.0 vfile: 5.3.7 + dev: true - /unist-util-generated@2.0.1: - resolution: {integrity: sha512-qF72kLmPxAw0oN2fwpWIqbXAVyEqUzDHMsbtPvOudIlUzXYFIeQIuxXQCRCFh22B7cixvU0MG7m3MW8FTq/S+A==} - dev: false + /unified@11.0.4: + resolution: {integrity: sha512-apMPnyLjAX+ty4OrNap7yumyVAMlKx5IWU2wlzzUdYJO9A8f1p9m/gywF/GM2ZDFcjQPrx59Mc90KwmxsoklxQ==} + dependencies: + '@types/unist': 3.0.2 + bail: 2.0.2 + devlop: 1.1.0 + extend: 3.0.2 + is-plain-obj: 4.1.0 + trough: 2.1.0 + vfile: 6.0.1 /unist-util-is@5.2.1: resolution: {integrity: sha512-u9njyyfEh43npf1M+yGKDGVPbY/JWEemg5nH05ncKPfi+kBbKBJoTdsogMu33uhytuLlv9y0O7GH7fEdwLdLQw==} dependencies: '@types/unist': 2.0.6 + dev: true - /unist-util-position-from-estree@1.1.2: - resolution: {integrity: sha512-poZa0eXpS+/XpoQwGwl79UUdea4ol2ZuCYguVaJS4qzIOMDzbqz8a3erUCOmubSZkaOuGamb3tX790iwOIROww==} + /unist-util-is@6.0.0: + resolution: {integrity: sha512-2qCTHimwdxLfz+YzdGfkqNlH0tLi9xjTnHddPmJwtIG9MGsdbutfTc4P+haPD7l7Cjxf/WZj+we5qfVPvvxfYw==} dependencies: - '@types/unist': 2.0.6 - dev: false + '@types/unist': 3.0.2 + + /unist-util-position-from-estree@2.0.0: + resolution: {integrity: sha512-KaFVRjoqLyF6YXCbVLNad/eS4+OfPQQn2yOd7zF/h5T/CSL2v8NpN6a5TPvtbXthAGw5nG+PuTtq+DdIZr+cRQ==} + dependencies: + '@types/unist': 3.0.2 + dev: true /unist-util-position@4.0.4: resolution: {integrity: sha512-kUBE91efOWfIVBo8xzh/uZQ7p9ffYRtUbMRZBNFYwf0RK8koUMx6dGUfwylLOKmaT2cs4wSW96QoYUSXAyEtpg==} dependencies: '@types/unist': 2.0.6 + dev: true - /unist-util-remove-position@4.0.2: - resolution: {integrity: sha512-TkBb0HABNmxzAcfLf4qsIbFbaPDvMO6wa3b3j4VcEzFVaw1LBKwnW4/sRJ/atSLSzoIg41JWEdnE7N6DIhGDGQ==} + /unist-util-position@5.0.0: + resolution: {integrity: sha512-fucsC7HjXvkB5R3kTCO7kUjRdrS0BJt3M/FPxmHMBOm8JQi2BsHAHFsy27E0EolP8rp0NzXsJ+jNPyDWvOJZPA==} dependencies: - '@types/unist': 2.0.6 - unist-util-visit: 4.1.2 - dev: false + '@types/unist': 3.0.2 + dev: true + + /unist-util-remove-position@5.0.0: + resolution: {integrity: sha512-Hp5Kh3wLxv0PHj9m2yZhhLt58KzPtEYKQQ4yxfYFEO7EvHwzyDYnduhHnY1mDxoqr7VUwVuHXk9RXKIiYS1N8Q==} + dependencies: + '@types/unist': 3.0.2 + unist-util-visit: 5.0.0 + dev: true /unist-util-stringify-position@3.0.3: resolution: {integrity: sha512-k5GzIBZ/QatR8N5X2y+drfpWG8IDBzdnVj6OInRNWm1oXrzydiaAT2OQiA8DPRRZyAKb9b6I2a6PxYklZD0gKg==} dependencies: '@types/unist': 2.0.6 + dev: true + + /unist-util-stringify-position@4.0.0: + resolution: {integrity: sha512-0ASV06AAoKCDkS2+xw5RXJywruurpbC4JZSm7nr7MOt1ojAzvyyaO+UxZf18j8FCF6kmzCZKcAgN/yu2gm2XgQ==} + dependencies: + '@types/unist': 3.0.2 /unist-util-visit-parents@5.1.3: resolution: {integrity: sha512-x6+y8g7wWMyQhL1iZfhIPhDAs7Xwbn9nRosDXl7qoPTSCy0yNxnKc+hWokFifWQIDGi154rdUqKvbCa4+1kLhg==} dependencies: '@types/unist': 2.0.6 unist-util-is: 5.2.1 + dev: true + + /unist-util-visit-parents@6.0.1: + resolution: {integrity: sha512-L/PqWzfTP9lzzEa6CKs0k2nARxTdZduw3zyh8d2NVBnsyvHjSX4TWse388YrrQKbvI8w20fGjGlhgT96WwKykw==} + dependencies: + '@types/unist': 3.0.2 + unist-util-is: 6.0.0 /unist-util-visit@4.1.2: resolution: {integrity: sha512-MSd8OUGISqHdVvfY9TPhyK2VdUrPgxkUtWSuMHF6XAAFuL4LokseigBnZtPnJMu+FbynTkFNnFlyjxpVKujMRg==} @@ -7782,6 +7000,14 @@ packages: '@types/unist': 2.0.6 unist-util-is: 5.2.1 unist-util-visit-parents: 5.1.3 + dev: true + + /unist-util-visit@5.0.0: + resolution: {integrity: sha512-MR04uvD+07cwl/yhVuVWAtw+3GOR/knlL55Nd/wAdblk27GCVt3lqpTivy/tkJcZoNPzTwS1Y+KMojlLDhoTzg==} + dependencies: + '@types/unist': 3.0.2 + unist-util-is: 6.0.0 + unist-util-visit-parents: 6.0.1 /universalify@2.0.0: resolution: {integrity: sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ==} @@ -7877,16 +7103,6 @@ packages: hasBin: true dev: false - /uvu@0.5.6: - resolution: {integrity: sha512-+g8ENReyr8YsOc6fv/NVJs2vFdHBnBNdfE49rshrTzDWOlUx4Gq7KOS2GD8eqhy2j+Ejq29+SbKH8yjkAqXqoA==} - engines: {node: '>=8'} - hasBin: true - dependencies: - dequal: 2.0.3 - diff: 5.1.0 - kleur: 4.1.5 - sade: 1.8.1 - /v8-compile-cache-lib@3.0.1: resolution: {integrity: sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg==} @@ -7897,17 +7113,45 @@ packages: spdx-expression-parse: 3.0.1 dev: true + /velite@0.1.0-beta.8: + resolution: {integrity: sha512-9zzfkx+GidTmxUTEdxvTqItdeFmol6CENiIddFDZsCnrlX2hJGfkc3xs2A5Bwf0TNzzjotcU3dOMJTipsLyeuQ==} + engines: {node: ^18.17.0 || >=20.3.0} + hasBin: true + dependencies: + '@mdx-js/mdx': 3.0.1 + esbuild: 0.20.0 + sharp: 0.33.2 + terser: 5.27.0 + transitivePeerDependencies: + - supports-color + dev: true + /vfile-location@4.1.0: resolution: {integrity: sha512-YF23YMyASIIJXpktBa4vIGLJ5Gs88UB/XePgqPmTa7cDA+JeO3yclbpheQYCHjVHBn/yePzrXuygIL+xbvRYHw==} dependencies: '@types/unist': 2.0.6 vfile: 5.3.7 + dev: true + + /vfile-location@5.0.2: + resolution: {integrity: sha512-NXPYyxyBSH7zB5U6+3uDdd6Nybz6o6/od9rk8bp9H8GR3L+cm/fC0uUTbqBmUTnMCUDslAGBOIKNfvvb+gGlDg==} + dependencies: + '@types/unist': 3.0.2 + vfile: 6.0.1 + dev: true /vfile-message@3.1.4: resolution: {integrity: sha512-fa0Z6P8HUrQN4BZaX05SIVXic+7kE3b05PWAtPuYP9QLHsLKYR7/AlLW3NtOrpXRLeawpDLMsVkmk5DG0NXgWw==} dependencies: '@types/unist': 2.0.6 unist-util-stringify-position: 3.0.3 + dev: true + + /vfile-message@4.0.2: + resolution: {integrity: sha512-jRDZ1IMLttGj41KcZvlrYAaI3CfqpLpfpf+Mfig13viT6NKvRzWZ+lXz0Y5D60w6uJIBAOGq9mSHf0gktF0duw==} + dependencies: + '@types/unist': 3.0.2 + unist-util-stringify-position: 4.0.0 /vfile@5.3.7: resolution: {integrity: sha512-r7qlzkgErKjobAmyNIkkSpizsFPYiUPuJb5pNW1RB4JcYVZhs4lIbVqk8XPk033CV/1z8ss5pkax8SuhGpcG8g==} @@ -7916,20 +7160,18 @@ packages: is-buffer: 2.0.5 unist-util-stringify-position: 3.0.3 vfile-message: 3.1.4 + dev: true - /vscode-oniguruma@1.7.0: - resolution: {integrity: sha512-L9WMGRfrjOhgHSdOYgCt/yRMsXzLDJSL7BPrOZt73gU0iWO4mpqzqQzOz5srxqTvMBaR0XZTSrVWo4j55Rc6cA==} - - /vscode-textmate@6.0.0: - resolution: {integrity: sha512-gu73tuZfJgu+mvCSy4UZwd2JXykjK9zAZsfmDeut5dx/1a7FeTk0XwJsSuqQn+cuMCGVbIBfl+s53X4T19DnzQ==} + /vfile@6.0.1: + resolution: {integrity: sha512-1bYqc7pt6NIADBJ98UiG0Bn/CHIVOoZ/IyEkqIruLg0mE1BKzkOXY2D6CSqQIcKqgadppE5lrxgWXJmXd7zZJw==} + dependencies: + '@types/unist': 3.0.2 + unist-util-stringify-position: 4.0.0 + vfile-message: 4.0.2 /web-namespaces@2.0.1: resolution: {integrity: sha512-bKr1DkiNa2krS7qxNtdrtHAmzuYGFQLiQ13TsorsdT6ULTkPLKuu5+GsFpDlg6JFjUTwX2DyhMPG2be8uPrqsQ==} - - /web-streams-polyfill@3.2.1: - resolution: {integrity: sha512-e0MO3wdXWKrLbL0DgGnUV7WHVuw9OUvL4hjgnPkIeEvESk74gAITi5G606JtZPp39cd8HA9VQzCIvA49LpPN5Q==} - engines: {node: '>= 8'} - dev: false + dev: true /which-boxed-primitive@1.0.2: resolution: {integrity: sha512-bwZdv0AKLpplFY2KZRX6TvyuN7ojjr7lwkg6ml0roIy9YeuSr7JS372qlNW18UQYzgYK9ziGcerWqZOmEn9VNg==} @@ -7980,6 +7222,7 @@ packages: ansi-styles: 4.3.0 string-width: 4.2.3 strip-ansi: 6.0.1 + dev: true /wrappy@1.0.2: resolution: {integrity: sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==} @@ -7987,6 +7230,7 @@ packages: /y18n@5.0.8: resolution: {integrity: sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==} engines: {node: '>=10'} + dev: true /yallist@3.1.1: resolution: {integrity: sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==} @@ -8001,23 +7245,12 @@ packages: /yargs-parser@20.2.9: resolution: {integrity: sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==} engines: {node: '>=10'} + dev: true /yargs-parser@21.1.1: resolution: {integrity: sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==} engines: {node: '>=12'} - - /yargs@16.2.0: - resolution: {integrity: sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==} - engines: {node: '>=10'} - dependencies: - cliui: 7.0.4 - escalade: 3.1.1 - get-caller-file: 2.0.5 - require-directory: 2.1.1 - string-width: 4.2.3 - y18n: 5.0.8 - yargs-parser: 20.2.9 - dev: false + dev: true /yargs@17.7.1: resolution: {integrity: sha512-cwiTb08Xuv5fqF4AovYacTFNxk62th7LKJ6BL9IGUpTJrWoU7/7WdQGTP2SjKf1dUNBGzDd28p/Yfs/GI6JrLw==} @@ -8030,6 +7263,7 @@ packages: string-width: 4.2.3 y18n: 5.0.8 yargs-parser: 21.1.1 + dev: true /yn@3.1.1: resolution: {integrity: sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==} @@ -8050,8 +7284,8 @@ packages: resolution: {integrity: sha512-8SkgawHcA0RUbMrnhxbaQkZDBi8rMed8pQHixkFF9w32zGhAwZ9/cOHWlpYfr6RCx42Yp3siV45/jPEkJxsk6w==} dev: false - /zod@3.21.4: - resolution: {integrity: sha512-m46AKbrzKVzOzs/DZgVnG5H55N1sv1M8qZU3A8RIKbs3mrACDNeIOeilDymVb2HdmP8uwshOCF4uJ8uM9rCqJw==} + /zod@3.22.4: + resolution: {integrity: sha512-iC+8Io04lddc+mVqQ9AZ7OQ2MrUKGN+oIQyq1vemgt46jwCwLfhq7/pwnBnNXXXZb8VTVLKwp9EDkx+ryxIWmg==} dev: false /zwitch@2.0.4: diff --git a/prisma/schema.prisma b/prisma/schema.prisma index 12d8a444d..bdfe1b8f4 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -6,7 +6,7 @@ generator client { } datasource db { - provider = "mysql" + provider = "postgres" url = env("DATABASE_URL") } diff --git a/tsconfig.json b/tsconfig.json index e9ae1588d..e146a97fd 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -17,7 +17,7 @@ "baseUrl": ".", "paths": { "@/*": ["./*"], - "contentlayer/generated": ["./.contentlayer/generated"] + "#site/content": ["./.velite"] }, "plugins": [ { @@ -31,7 +31,7 @@ "**/*.ts", "**/*.tsx", ".next/types/**/*.ts", - ".contentlayer/generated" + "./.velite" ], "exclude": ["node_modules"] } diff --git a/velite.config.ts b/velite.config.ts new file mode 100644 index 000000000..b0bd83793 --- /dev/null +++ b/velite.config.ts @@ -0,0 +1,168 @@ +import rehypeAutolinkHeadings from "rehype-autolink-headings" +import rehypePrettyCode from "rehype-pretty-code" +import rehypeSlug from "rehype-slug" +import { defineCollection, defineConfig, s } from 'velite' + +const computedFields = (data, ctx) => { + console.log(ctx.meta.file.stem) + return { + ...data, + slug: `/${ctx.meta.file.stem?.replace('/index', '')}`, + slugAsParams: ctx.meta.file.stem?.replace('/index', '').split('/').slice(1).join('/'), + } +} + +const docs = defineCollection({ + name: 'Doc', + pattern: 'docs/**/*.mdx', + schema: s.object({ + title: s.string().max(99), + description: s.string().max(999).optional(), + published: s.boolean().default(true), + body: s.mdx() + }).transform(computedFields) +}) + +const guides = defineCollection({ + name: 'Guide', + pattern: 'guides/**/*.mdx', + schema: s.object({ + title: s.string().max(99), + description: s.string().max(999).optional(), + date: s.isodate(), + published: s.boolean().default(true), + featured: s.boolean().default(false), + body: s.mdx() + }).transform(computedFields) +}) + +const posts = defineCollection({ + name: 'Post', + pattern: 'blog/**/*.mdx', + schema: s.object({ + title: s.string().max(99), + description: s.string().max(999).optional(), + date: s.isodate(), + published: s.boolean().default(true), + image: s.string().max(99), + authors: s.array(s.string()), + body: s.mdx() + }).transform(computedFields) +}) + +const authors = defineCollection({ + name: 'Author', + pattern: 'authors/**/*.mdx', + schema: s.object({ + title: s.string().max(99), + description: s.string().max(999).optional(), + avatar: s.string().max(99), + twitter: s.string().max(99), + body: s.mdx() + }).transform(computedFields) +}) + +const pages = defineCollection({ + name: 'Page', + pattern: 'pages/**/*.mdx', + schema: s.object({ + title: s.string().max(99), + description: s.string().max(999).optional(), + body: s.mdx() + }).transform(computedFields) +}) + +export default defineConfig({ + root: 'content', + output: { + data: '.velite', + assets: 'public/static', + base: '/static/', + name: '[name]-[hash:6].[ext]', + clean: true + }, + collections: { pages: { + name: 'Page', + pattern: 'pages/**/*.mdx', + schema: s.object({ + title: s.string().max(99), + description: s.string().max(999).optional(), + body: s.mdx() + }).transform(computedFields) + }, authors: { + name: 'Author', + pattern: 'authors/**/*.mdx', + schema: s.object({ + title: s.string().max(99), + description: s.string().max(999).optional(), + avatar: s.string().max(99), + twitter: s.string().max(99), + body: s.mdx() + }).transform(computedFields) + }, posts: { + name: 'Post', + pattern: 'blog/**/*.mdx', + schema: s.object({ + title: s.string().max(99), + description: s.string().max(999).optional(), + date: s.isodate(), + published: s.boolean().default(true), + image: s.string().max(99), + authors: s.array(s.string()), + body: s.mdx() + }).transform(computedFields) + }, guides: { + name: 'Guide', + pattern: 'guides/**/*.mdx', + schema: s.object({ + title: s.string().max(99), + description: s.string().max(999).optional(), + date: s.isodate(), + published: s.boolean().default(true), + featured: s.boolean().default(false), + body: s.mdx() + }).transform(computedFields) + }, docs: { + name: 'Doc', + pattern: 'docs/**/*.mdx', + schema: s.object({ + title: s.string().max(99), + description: s.string().max(999).optional(), + published: s.boolean().default(true), + body: s.mdx() + }).transform(computedFields) + } }, + mdx: { + rehypePlugins: [ + rehypeSlug as any, + [ + rehypePrettyCode, + { + theme: "github-dark", + onVisitLine(node) { + // Prevent lines from collapsing in `display: grid` mode, and allow empty + // lines to be copy/pasted + if (node.children.length === 0) { + node.children = [{ type: "text", value: " " }] + } + }, + onVisitHighlightedLine(node) { + node.properties.className.push("line--highlighted") + }, + onVisitHighlightedWord(node) { + node.properties.className = ["word--highlighted"] + }, + }, + ], + [ + rehypeAutolinkHeadings, + { + properties: { + className: ["subheading-anchor"], + ariaLabel: "Link to section", + }, + }, + ], + ], + } +}) From 7b78b29df478292f90254cde026c5efd22552fa6 Mon Sep 17 00:00:00 2001 From: zce Date: Wed, 28 Feb 2024 09:44:36 +0800 Subject: [PATCH 2/7] feat: contentlayer -> velite --- .gitignore | 5 +- .velite/authors.json | 10 - .velite/docs.json | 34 -- .velite/guide.json | 20 -- .velite/guides.json | 22 -- .velite/index.d.ts | 20 -- .velite/index.js | 7 - .velite/pages.json | 16 - .velite/posts.json | 54 ---- app/(docs)/docs/[[...slug]]/page.tsx | 4 +- app/(docs)/guides/[...slug]/page.tsx | 5 +- app/(docs)/guides/page.tsx | 2 +- app/(marketing)/blog/[...slug]/page.tsx | 2 +- app/(marketing)/blog/page.tsx | 2 +- components/toc.tsx | 29 +- contentlayer.config.js | 181 ----------- lib/toc.ts | 79 ----- next.config.mjs | 2 +- package.json | 7 +- pnpm-lock.yaml | 411 ++++++++---------------- styles/mdx.css | 49 +-- velite.config.ts | 207 +++++------- 22 files changed, 271 insertions(+), 897 deletions(-) delete mode 100644 .velite/authors.json delete mode 100644 .velite/docs.json delete mode 100644 .velite/guide.json delete mode 100644 .velite/guides.json delete mode 100644 .velite/index.d.ts delete mode 100644 .velite/index.js delete mode 100644 .velite/pages.json delete mode 100644 .velite/posts.json delete mode 100644 contentlayer.config.js delete mode 100644 lib/toc.ts diff --git a/.gitignore b/.gitignore index 11a314aa1..4a5fdbf8b 100644 --- a/.gitignore +++ b/.gitignore @@ -37,4 +37,7 @@ yarn-error.log* next-env.d.ts .vscode -.contentlayer \ No newline at end of file + +# velite generated files +.velite +public/static diff --git a/.velite/authors.json b/.velite/authors.json deleted file mode 100644 index d9376196b..000000000 --- a/.velite/authors.json +++ /dev/null @@ -1,10 +0,0 @@ -[ - { - "title": "shadcn", - "avatar": "/images/avatars/shadcn.png", - "twitter": "shadcn", - "body": "const{Fragment:n,jsx:t}=arguments[0];function _createMdxContent(e){return t(n,{})}return{default:function(n={}){const{wrapper:e}=n.components||{};return e?t(e,{...n,children:t(_createMdxContent,{...n})}):_createMdxContent()}};", - "slug": "/D:\\Coding\\forks\\taxonomy\\content\\authors\\shadcn", - "slugAsParams": "" - } -] \ No newline at end of file diff --git a/.velite/docs.json b/.velite/docs.json deleted file mode 100644 index 276ea44c6..000000000 --- a/.velite/docs.json +++ /dev/null @@ -1,34 +0,0 @@ -[ - { - "title": "Not Implemented", - "description": "This page is in progress.", - "published": true, - "body": "const{jsx:t,jsxs:e}=arguments[0];function _createMdxContent(n){const o={a:\"a\",p:\"p\",...n.components},{Callout:r}=o;return r||function(t,e){throw new Error(\"Expected \"+(e?\"component\":\"object\")+\" `\"+t+\"` to be defined: you likely forgot to import, pass, or provide it.\")}(\"Callout\",!0),t(r,{children:e(o.p,{children:[\"This site is a work in progress. If you see dummy text on a page, it means I'm still working on it. You can follow updates on Twitter \",t(o.a,{href:\"https://twitter.com/shadcn\",children:\"@shadcn\"}),\".\"]})})}return{default:function(e={}){const{wrapper:n}=e.components||{};return n?t(n,{...e,children:t(_createMdxContent,{...e})}):_createMdxContent(e)}};", - "slug": "/D:\\Coding\\forks\\taxonomy\\content\\docs\\in-progress", - "slugAsParams": "" - }, - { - "title": "Documentation", - "description": "Welcome to the Taxonomy documentation.", - "published": true, - "body": "const{Fragment:e,jsx:n,jsxs:i}=arguments[0];function _createMdxContent(a){const t={a:\"a\",h2:\"h2\",h3:\"h3\",p:\"p\",span:\"span\",...a.components},{Callout:o,Card:r}=t;return o||_missingMdxReference(\"Callout\",!0),r||_missingMdxReference(\"Card\",!0),i(e,{children:[n(t.p,{children:\"This is the documentation for the Taxonomy site.\"}),\"\\n\",i(t.p,{children:[\"This is an example of a doc site built using \",n(t.a,{href:\"/docs/documentation/contentlayer\",children:\"ContentLayer\"}),\" and MDX.\"]}),\"\\n\",n(o,{children:i(t.p,{children:[\"This site is a work in progress. If you see dummy text on a page, it means I'm still working on it. You can follow updates on Twitter \",n(t.a,{href:\"https://twitter.com/shadcn\",children:\"@shadcn\"}),\".\"]})}),\"\\n\",i(t.h2,{id:\"features\",children:[n(t.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#features\",children:n(t.span,{className:\"icon icon-link\"})}),\"Features\"]}),\"\\n\",n(t.p,{children:\"Select a feature below to learn more about it.\"}),\"\\n\",i(\"div\",{className:\"grid sm:grid-cols-2 gap-4 mt-6\",children:[i(r,{href:\"/docs/documentation\",children:[i(t.h3,{id:\"documentation\",children:[n(t.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#documentation\",children:n(t.span,{className:\"icon icon-link\"})}),\"Documentation\"]}),n(t.p,{children:\"This documentation site built using Contentlayer.\"})]}),i(r,{href:\"/docs/marketing\",disabled:!0,children:[i(t.h3,{id:\"marketing\",children:[n(t.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#marketing\",children:n(t.span,{className:\"icon icon-link\"})}),\"Marketing\"]}),n(t.p,{children:\"The marketing site with landing pages.\"})]}),i(r,{href:\"/docs/app\",disabled:!0,children:[i(t.h3,{id:\"app\",children:[n(t.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#app\",children:n(t.span,{className:\"icon icon-link\"})}),\"App\"]}),n(t.p,{children:\"The dashboard with auth and subscriptions.\"})]}),i(r,{href:\"/docs/blog\",disabled:!0,children:[i(t.h3,{id:\"blog\",children:[n(t.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#blog\",children:n(t.span,{className:\"icon icon-link\"})}),\"Blog\"]}),n(t.p,{children:\"The blog built using Contentlayer and MDX.\"})]})]})]})}return{default:function(e={}){const{wrapper:i}=e.components||{};return i?n(i,{...e,children:n(_createMdxContent,{...e})}):_createMdxContent(e)}};function _missingMdxReference(e,n){throw new Error(\"Expected \"+(n?\"component\":\"object\")+\" `\"+e+\"` to be defined: you likely forgot to import, pass, or provide it.\")}", - "slug": "/D:\\Coding\\forks\\taxonomy\\content\\docs\\index", - "slugAsParams": "" - }, - { - "title": "Documentation", - "description": "Build your documentation site using Contentlayer and MDX.", - "published": true, - "body": "const{Fragment:n,jsx:e,jsxs:i}=arguments[0];function _createMdxContent(o){const c={a:\"a\",code:\"code\",em:\"em\",h2:\"h2\",h3:\"h3\",li:\"li\",ol:\"ol\",p:\"p\",span:\"span\",...o.components},{Card:t}=c;return t||function(n,e){throw new Error(\"Expected \"+(e?\"component\":\"object\")+\" `\"+n+\"` to be defined: you likely forgot to import, pass, or provide it.\")}(\"Card\",!0),i(n,{children:[i(c.p,{children:[\"Taxonomy includes a documentation site built using \",e(c.a,{href:\"https://contentlayer.dev\",children:\"Contentlayer\"}),\" and \",e(c.a,{href:\"http://mdxjs.com\",children:\"MDX\"}),\".\"]}),\"\\n\",i(c.h2,{id:\"features\",children:[e(c.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#features\",children:e(c.span,{className:\"icon icon-link\"})}),\"Features\"]}),\"\\n\",e(c.p,{children:\"It comes with the following features out of the box:\"}),\"\\n\",i(c.ol,{children:[\"\\n\",e(c.li,{children:\"Write content using MDX.\"}),\"\\n\",e(c.li,{children:\"Transform and validate content using Contentlayer.\"}),\"\\n\",i(c.li,{children:[\"MDX components such as \",e(c.code,{children:\"\"}),\" and \",e(c.code,{children:\"\"}),\".\"]}),\"\\n\",e(c.li,{children:\"Support for table of contents.\"}),\"\\n\",e(c.li,{children:\"Custom navigation with prev and next pager.\"}),\"\\n\",i(c.li,{children:[\"Beautiful code blocks using \",e(c.code,{children:\"rehype-pretty-code\"}),\".\"]}),\"\\n\",i(c.li,{children:[\"Syntax highlighting using \",e(c.code,{children:\"shiki\"}),\".\"]}),\"\\n\",i(c.li,{children:[\"Built-in search (\",e(c.em,{children:\"in progress\"}),\").\"]}),\"\\n\",i(c.li,{children:[\"Dark mode (\",e(c.em,{children:\"in progress\"}),\").\"]}),\"\\n\"]}),\"\\n\",i(c.h2,{id:\"how-is-it-built\",children:[e(c.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#how-is-it-built\",children:e(c.span,{className:\"icon icon-link\"})}),\"How is it built\"]}),\"\\n\",e(c.p,{children:\"Click on a section below to learn how the documentation site built.\"}),\"\\n\",i(\"div\",{className:\"grid gap-4 mt-6\",children:[i(t,{href:\"/docs/documentation\",children:[i(c.h3,{id:\"contentlayer\",children:[e(c.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#contentlayer\",children:e(c.span,{className:\"icon icon-link\"})}),\"Contentlayer\"]}),e(c.p,{children:\"Learn how to use MDX with Contentlayer.\"})]}),i(t,{href:\"/docs/documentation/components\",children:[i(c.h3,{id:\"components\",children:[e(c.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#components\",children:e(c.span,{className:\"icon icon-link\"})}),\"Components\"]}),e(c.p,{children:\"Using React components in Mardown.\"})]}),i(t,{href:\"/docs/documentation/components\",children:[i(c.h3,{id:\"code-blocks\",children:[e(c.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#code-blocks\",children:e(c.span,{className:\"icon icon-link\"})}),\"Code Blocks\"]}),e(c.p,{children:\"Beautiful code blocks with syntax highlighting.\"})]}),i(t,{href:\"/docs/documentation/components\",children:[i(c.h3,{id:\"style-guide\",children:[e(c.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#style-guide\",children:e(c.span,{className:\"icon icon-link\"})}),\"Style Guide\"]}),e(c.p,{children:\"View a sample page with all the styles.\"})]})]})]})}return{default:function(n={}){const{wrapper:i}=n.components||{};return i?e(i,{...n,children:e(_createMdxContent,{...n})}):_createMdxContent(n)}};", - "slug": "/D:\\Coding\\forks\\taxonomy\\content\\docs\\documentation\\index", - "slugAsParams": "" - }, - { - "title": "Style Guide", - "description": "Testing the MDX style guide with Tailwind Typography", - "published": true, - "body": "const{Fragment:e,jsx:n,jsxs:t}=arguments[0];function _createMdxContent(i){const a={a:\"a\",blockquote:\"blockquote\",code:\"code\",em:\"em\",figure:\"figure\",h2:\"h2\",h3:\"h3\",h4:\"h4\",hr:\"hr\",li:\"li\",ol:\"ol\",p:\"p\",pre:\"pre\",span:\"span\",strong:\"strong\",table:\"table\",tbody:\"tbody\",td:\"td\",th:\"th\",thead:\"thead\",tr:\"tr\",ul:\"ul\",...i.components},{Callout:o,Image:l}=a;return o||_missingMdxReference(\"Callout\",!0),l||_missingMdxReference(\"Image\",!0),t(e,{children:[n(o,{children:t(a.ul,{children:[\"\\n\",t(a.li,{children:[\"The text below is from the \",n(a.a,{href:\"https://play.tailwindcss.com/uj1vGACRJA?layout=preview\",children:\"Tailwind CSS\"}),\" docs. I copied it here to test the markdown styles. \",n(a.strong,{children:\"Tailwind is awesome. You should use it.\"})]}),\"\\n\",t(a.li,{children:[\"The CSS is from MDX sites I've built through the years. I copied this from \",n(a.a,{href:\"https://github.com/shuding/nextra\",children:\"Nextra\"}),\" and tweaked it a bit to fit the styles of this site.\"]}),\"\\n\"]})}),\"\\n\",n(a.p,{children:\"Until now, trying to style an article, document, or blog post with Tailwind has been a tedious task that required a keen eye for typography and a lot of complex custom CSS.\"}),\"\\n\",t(a.p,{children:[\"By default, Tailwind removes all of the default browser styling from paragraphs, headings, lists and more. This ends up being really useful for building application UIs because you spend less time undoing user-agent styles, but when you \",n(a.em,{children:\"really are\"}),\" just trying to style some content that came from a rich-text editor in a CMS or a markdown file, it can be surprising and unintuitive.\"]}),\"\\n\",n(a.p,{children:\"We get lots of complaints about it actually, with people regularly asking us things like:\"}),\"\\n\",t(a.blockquote,{children:[\"\\n\",t(a.p,{children:[\"Why is Tailwind removing the default styles on my \",n(a.code,{children:\"h1\"}),\" elements? How do I disable this? What do you mean I lose all the other base styles too?\\nWe hear you, but we're not convinced that simply disabling our base styles is what you really want. You don't want to have to remove annoying margins every time you use a \",n(a.code,{children:\"p\"}),\" element in a piece of your dashboard UI. And I doubt you really want your blog posts to use the user-agent styles either — you want them to look \",n(a.em,{children:\"awesome\"}),\", not awful.\"]}),\"\\n\"]}),\"\\n\",t(a.p,{children:[\"The \",n(a.code,{children:\"@tailwindcss/typography\"}),\" plugin is our attempt to give you what you \",n(a.em,{children:\"actually\"}),\" want, without any of the downsides of doing something stupid like disabling our base styles.\"]}),\"\\n\",t(a.p,{children:[\"It adds a new \",n(a.code,{children:\"prose\"}),\" class that you can slap on any block of vanilla HTML content and turn it into a beautiful, well-formatted document:\"]}),\"\\n\",n(a.figure,{\"data-rehype-pretty-code-figure\":\"\",children:n(a.pre,{style:{backgroundColor:\"#24292e\",color:\"#e1e4e8\"},tabIndex:\"0\",\"data-language\":\"html\",\"data-theme\":\"github-dark\",children:t(a.code,{\"data-language\":\"html\",\"data-theme\":\"github-dark\",style:{display:\"grid\"},children:[t(a.span,{\"data-line\":\"\",children:[n(a.span,{style:{color:\"#E1E4E8\"},children:\"<\"}),n(a.span,{style:{color:\"#85E89D\"},children:\"article\"}),n(a.span,{style:{color:\"#B392F0\"},children:\" class\"}),n(a.span,{style:{color:\"#E1E4E8\"},children:\"=\"}),n(a.span,{style:{color:\"#9ECBFF\"},children:'\"prose\"'}),n(a.span,{style:{color:\"#E1E4E8\"},children:\">\"})]}),\"\\n\",t(a.span,{\"data-line\":\"\",children:[n(a.span,{style:{color:\"#E1E4E8\"},children:\" <\"}),n(a.span,{style:{color:\"#85E89D\"},children:\"h1\"}),n(a.span,{style:{color:\"#E1E4E8\"},children:\">Garlic bread with cheese: What the science tells us\"})]}),\"\\n\",t(a.span,{\"data-line\":\"\",children:[n(a.span,{style:{color:\"#E1E4E8\"},children:\" <\"}),n(a.span,{style:{color:\"#85E89D\"},children:\"p\"}),n(a.span,{style:{color:\"#E1E4E8\"},children:\">\"})]}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" For years parents have espoused the health benefits of eating garlic bread\"})}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" with cheese to their children, with the food earning such an iconic status\"})}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" in our culture that kids will often dress up as warm, cheesy loaf for\"})}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" Halloween.\"})}),\"\\n\",t(a.span,{\"data-line\":\"\",children:[n(a.span,{style:{color:\"#E1E4E8\"},children:\" \"})]}),\"\\n\",t(a.span,{\"data-line\":\"\",children:[n(a.span,{style:{color:\"#E1E4E8\"},children:\" <\"}),n(a.span,{style:{color:\"#85E89D\"},children:\"p\"}),n(a.span,{style:{color:\"#E1E4E8\"},children:\">\"})]}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" But a recent study shows that the celebrated appetizer may be linked to a\"})}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" series of rabies cases springing up around the country.\"})}),\"\\n\",t(a.span,{\"data-line\":\"\",children:[n(a.span,{style:{color:\"#E1E4E8\"},children:\" \"})]}),\"\\n\",t(a.span,{\"data-line\":\"\",children:[n(a.span,{style:{color:\"#E1E4E8\"},children:\"\"})]})]})})}),\"\\n\",t(a.p,{children:[\"For more information about how to use the plugin and the features it includes, \",n(a.a,{href:\"https://github.com/tailwindcss/typography/blob/master/README.md\",children:\"read the documentation\"}),\".\"]}),\"\\n\",n(a.hr,{}),\"\\n\",t(a.h2,{id:\"what-to-expect-from-here-on-out\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#what-to-expect-from-here-on-out\",children:n(a.span,{className:\"icon icon-link\"})}),\"What to expect from here on out\"]}),\"\\n\",t(a.p,{children:[\"What follows from here is just a bunch of absolute nonsense I've written to dogfood the plugin itself. It includes every sensible typographic element I could think of, like \",n(a.strong,{children:\"bold text\"}),\", unordered lists, ordered lists, code blocks, block quotes, \",n(a.em,{children:\"and even italics\"}),\".\"]}),\"\\n\",n(a.p,{children:\"It's important to cover all of these use cases for a few reasons:\"}),\"\\n\",t(a.ol,{children:[\"\\n\",n(a.li,{children:\"We want everything to look good out of the box.\"}),\"\\n\",n(a.li,{children:\"Really just the first reason, that's the whole point of the plugin.\"}),\"\\n\",n(a.li,{children:\"Here's a third pretend reason though a list with three items looks more realistic than a list with two items.\"}),\"\\n\"]}),\"\\n\",n(a.p,{children:\"Now we're going to try out another header style.\"}),\"\\n\",t(a.h3,{id:\"typography-should-be-easy\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#typography-should-be-easy\",children:n(a.span,{className:\"icon icon-link\"})}),\"Typography should be easy\"]}),\"\\n\",n(a.p,{children:\"So that's a header for you — with any luck if we've done our job correctly that will look pretty reasonable.\"}),\"\\n\",n(a.p,{children:\"Something a wise person once told me about typography is:\"}),\"\\n\",t(a.blockquote,{children:[\"\\n\",n(a.p,{children:\"Typography is pretty important if you don't want your stuff to look like trash. Make it good then it won't be bad.\"}),\"\\n\"]}),\"\\n\",n(a.p,{children:\"It's probably important that images look okay here by default as well:\"}),\"\\n\",n(l,{src:\"/images/blog/blog-post-4.jpg\",width:\"718\",height:\"404\",alt:\"Image\"}),\"\\n\",n(a.p,{children:\"Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old.\"}),\"\\n\",n(a.p,{children:\"Now I'm going to show you an example of an unordered list to make sure that looks good, too:\"}),\"\\n\",t(a.ul,{children:[\"\\n\",n(a.li,{children:\"So here is the first item in this list.\"}),\"\\n\",n(a.li,{children:\"In this example we're keeping the items short.\"}),\"\\n\",n(a.li,{children:\"Later, we'll use longer, more complex list items.\"}),\"\\n\"]}),\"\\n\",n(a.p,{children:\"And that's the end of this section.\"}),\"\\n\",t(a.h2,{id:\"what-if-we-stack-headings\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#what-if-we-stack-headings\",children:n(a.span,{className:\"icon icon-link\"})}),\"What if we stack headings?\"]}),\"\\n\",t(a.h3,{id:\"we-should-make-sure-that-looks-good-too\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#we-should-make-sure-that-looks-good-too\",children:n(a.span,{className:\"icon icon-link\"})}),\"We should make sure that looks good, too.\"]}),\"\\n\",n(a.p,{children:\"Sometimes you have headings directly underneath each other. In those cases you often have to undo the top margin on the second heading because it usually looks better for the headings to be closer together than a paragraph followed by a heading should be.\"}),\"\\n\",t(a.h3,{id:\"when-a-heading-comes-after-a-paragraph-\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#when-a-heading-comes-after-a-paragraph-\",children:n(a.span,{className:\"icon icon-link\"})}),\"When a heading comes after a paragraph …\"]}),\"\\n\",n(a.p,{children:\"When a heading comes after a paragraph, we need a bit more space, like I already mentioned above. Now let's see what a more complex list would look like.\"}),\"\\n\",t(a.ul,{children:[\"\\n\",t(a.li,{children:[\"\\n\",n(a.p,{children:n(a.strong,{children:\"I often do this thing where list items have headings.\"})}),\"\\n\",n(a.p,{children:\"For some reason I think this looks cool which is unfortunate because it's pretty annoying to get the styles right.\"}),\"\\n\",n(a.p,{children:\"I often have two or three paragraphs in these list items, too, so the hard part is getting the spacing between the paragraphs, list item heading, and separate list items to all make sense. Pretty tough honestly, you could make a strong argument that you just shouldn't write this way.\"}),\"\\n\"]}),\"\\n\",t(a.li,{children:[\"\\n\",n(a.p,{children:n(a.strong,{children:\"Since this is a list, I need at least two items.\"})}),\"\\n\",n(a.p,{children:\"I explained what I'm doing already in the previous list item, but a list wouldn't be a list if it only had one item, and we really want this to look realistic. That's why I've added this second list item so I actually have something to look at when writing the styles.\"}),\"\\n\"]}),\"\\n\",t(a.li,{children:[\"\\n\",n(a.p,{children:n(a.strong,{children:\"It's not a bad idea to add a third item either.\"})}),\"\\n\",n(a.p,{children:\"I think it probably would've been fine to just use two items but three is definitely not worse, and since I seem to be having no trouble making up arbitrary things to type, I might as well include it.\"}),\"\\n\"]}),\"\\n\"]}),\"\\n\",n(a.p,{children:\"After this sort of list I usually have a closing statement or paragraph, because it kinda looks weird jumping right to a heading.\"}),\"\\n\",t(a.h2,{id:\"code-should-look-okay-by-default\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#code-should-look-okay-by-default\",children:n(a.span,{className:\"icon icon-link\"})}),\"Code should look okay by default.\"]}),\"\\n\",t(a.p,{children:[\"I think most people are going to use \",n(a.a,{href:\"https://highlightjs.org/\",children:\"highlight.js\"}),\" or \",n(a.a,{href:\"https://prismjs.com/\",children:\"Prism\"}),\" or something if they want to style their code blocks but it wouldn't hurt to make them look \",n(a.em,{children:\"okay\"}),\" out of the box, even with no syntax highlighting.\"]}),\"\\n\",t(a.p,{children:[\"Here's what a default \",n(a.code,{children:\"tailwind.config.js\"}),\" file looks like at the time of writing:\"]}),\"\\n\",n(a.figure,{\"data-rehype-pretty-code-figure\":\"\",children:n(a.pre,{style:{backgroundColor:\"#24292e\",color:\"#e1e4e8\"},tabIndex:\"0\",\"data-language\":\"js\",\"data-theme\":\"github-dark\",children:t(a.code,{\"data-language\":\"js\",\"data-theme\":\"github-dark\",style:{display:\"grid\"},children:[t(a.span,{\"data-line\":\"\",children:[n(a.span,{style:{color:\"#79B8FF\"},children:\"module\"}),n(a.span,{style:{color:\"#E1E4E8\"},children:\".\"}),n(a.span,{style:{color:\"#79B8FF\"},children:\"exports\"}),n(a.span,{style:{color:\"#F97583\"},children:\" =\"}),n(a.span,{style:{color:\"#E1E4E8\"},children:\" {\"})]}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" purge: [],\"})}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" theme: {\"})}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" extend: {},\"})}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" },\"})}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" variants: {},\"})}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" plugins: [],\"})}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\"}\"})})]})})}),\"\\n\",n(a.p,{children:\"Hopefully that looks good enough to you.\"}),\"\\n\",t(a.h3,{id:\"what-about-nested-lists\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#what-about-nested-lists\",children:n(a.span,{className:\"icon icon-link\"})}),\"What about nested lists?\"]}),\"\\n\",n(a.p,{children:\"Nested lists basically always look bad which is why editors like Medium don't even let you do it, but I guess since some of you goofballs are going to do it we have to carry the burden of at least making it work.\"}),\"\\n\",t(a.ol,{children:[\"\\n\",t(a.li,{children:[n(a.strong,{children:\"Nested lists are rarely a good idea.\"}),\"\\n\",t(a.ul,{children:[\"\\n\",n(a.li,{children:'You might feel like you are being really \"organized\" or something but you are just creating a gross shape on the screen that is hard to read.'}),\"\\n\",n(a.li,{children:\"Nested navigation in UIs is a bad idea too, keep things as flat as possible.\"}),\"\\n\",n(a.li,{children:\"Nesting tons of folders in your source code is also not helpful.\"}),\"\\n\"]}),\"\\n\"]}),\"\\n\",t(a.li,{children:[n(a.strong,{children:\"Since we need to have more items, here's another one.\"}),\"\\n\",t(a.ul,{children:[\"\\n\",n(a.li,{children:\"I'm not sure if we'll bother styling more than two levels deep.\"}),\"\\n\",n(a.li,{children:\"Two is already too much, three is guaranteed to be a bad idea.\"}),\"\\n\",n(a.li,{children:\"If you nest four levels deep you belong in prison.\"}),\"\\n\"]}),\"\\n\"]}),\"\\n\",t(a.li,{children:[n(a.strong,{children:\"Two items isn't really a list, three is good though.\"}),\"\\n\",t(a.ul,{children:[\"\\n\",n(a.li,{children:\"Again please don't nest lists if you want people to actually read your content.\"}),\"\\n\",n(a.li,{children:\"Nobody wants to look at this.\"}),\"\\n\",n(a.li,{children:\"I'm upset that we even have to bother styling this.\"}),\"\\n\"]}),\"\\n\"]}),\"\\n\"]}),\"\\n\",t(a.p,{children:[\"The most annoying thing about lists in Markdown is that \",n(a.code,{children:\"
  • \"}),\" elements aren't given a child \",n(a.code,{children:\"

    \"}),\" tag unless there are multiple paragraphs in the list item. That means I have to worry about styling that annoying situation too.\"]}),\"\\n\",t(a.ul,{children:[\"\\n\",t(a.li,{children:[\"\\n\",n(a.p,{children:n(a.strong,{children:\"For example, here's another nested list.\"})}),\"\\n\",n(a.p,{children:\"But this time with a second paragraph.\"}),\"\\n\",t(a.ul,{children:[\"\\n\",t(a.li,{children:[\"These list items won't have \",n(a.code,{children:\"

    \"}),\" tags\"]}),\"\\n\",n(a.li,{children:\"Because they are only one line each\"}),\"\\n\"]}),\"\\n\"]}),\"\\n\",t(a.li,{children:[\"\\n\",n(a.p,{children:n(a.strong,{children:\"But in this second top-level list item, they will.\"})}),\"\\n\",n(a.p,{children:\"This is especially annoying because of the spacing on this paragraph.\"}),\"\\n\",t(a.ul,{children:[\"\\n\",t(a.li,{children:[\"\\n\",t(a.p,{children:[\"As you can see here, because I've added a second line, this list item now has a \",n(a.code,{children:\"

    \"}),\" tag.\"]}),\"\\n\",n(a.p,{children:\"This is the second line I'm talking about by the way.\"}),\"\\n\"]}),\"\\n\",t(a.li,{children:[\"\\n\",n(a.p,{children:\"Finally here's another list item so it's more like a list.\"}),\"\\n\"]}),\"\\n\"]}),\"\\n\"]}),\"\\n\",t(a.li,{children:[\"\\n\",n(a.p,{children:\"A closing list item, but with no nested list, because why not?\"}),\"\\n\"]}),\"\\n\"]}),\"\\n\",n(a.p,{children:\"And finally a sentence to close off this section.\"}),\"\\n\",t(a.h2,{id:\"there-are-other-elements-we-need-to-style\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#there-are-other-elements-we-need-to-style\",children:n(a.span,{className:\"icon icon-link\"})}),\"There are other elements we need to style\"]}),\"\\n\",t(a.p,{children:[\"I almost forgot to mention links, like \",n(a.a,{href:\"https://tailwindcss.com\",children:\"this link to the Tailwind CSS website\"}),\". We almost made them blue but that's so yesterday, so we went with dark gray, feels edgier.\"]}),\"\\n\",n(a.p,{children:\"We even included table styles, check it out:\"}),\"\\n\",t(a.table,{children:[n(a.thead,{children:t(a.tr,{children:[n(a.th,{children:\"Wrestler\"}),n(a.th,{children:\"Origin\"}),n(a.th,{children:\"Finisher\"})]})}),t(a.tbody,{children:[t(a.tr,{children:[n(a.td,{children:'Bret \"The Hitman\" Hart'}),n(a.td,{children:\"Calgary, AB\"}),n(a.td,{children:\"Sharpshooter\"})]}),t(a.tr,{children:[n(a.td,{children:\"Stone Cold Steve Austin\"}),n(a.td,{children:\"Austin, TX\"}),n(a.td,{children:\"Stone Cold Stunner\"})]}),t(a.tr,{children:[n(a.td,{children:\"Randy Savage\"}),n(a.td,{children:\"Sarasota, FL\"}),n(a.td,{children:\"Elbow Drop\"})]}),t(a.tr,{children:[n(a.td,{children:\"Vader\"}),n(a.td,{children:\"Boulder, CO\"}),n(a.td,{children:\"Vader Bomb\"})]}),t(a.tr,{children:[n(a.td,{children:\"Razor Ramon\"}),n(a.td,{children:\"Chuluota, FL\"}),n(a.td,{children:\"Razor's Edge\"})]})]})]}),\"\\n\",t(a.p,{children:[\"We also need to make sure inline code looks good, like if I wanted to talk about \",n(a.code,{children:\"\"}),\" elements or tell you the good news about \",n(a.code,{children:\"@tailwindcss/typography\"}),\".\"]}),\"\\n\",t(a.h3,{id:\"sometimes-i-even-use-code-in-headings\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#sometimes-i-even-use-code-in-headings\",children:n(a.span,{className:\"icon icon-link\"})}),\"Sometimes I even use \",n(a.code,{children:\"code\"}),\" in headings\"]}),\"\\n\",t(a.p,{children:[\"Even though it's probably a bad idea, and historically I've had a hard time making it look good. This \",n(a.em,{children:'\"wrap the code blocks in backticks\"'}),\" trick works pretty well though really.\"]}),\"\\n\",t(a.p,{children:[\"Another thing I've done in the past is put a \",n(a.code,{children:\"code\"}),\" tag inside of a link, like if I wanted to tell you about the \",n(a.a,{href:\"https://github.com/tailwindcss/docs\",children:n(a.code,{children:\"tailwindcss/docs\"})}),\" repository. I don't love that there is an underline below the backticks but it is absolutely not worth the madness it would require to avoid it.\"]}),\"\\n\",t(a.h4,{id:\"we-havent-used-an-h4-yet\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#we-havent-used-an-h4-yet\",children:n(a.span,{className:\"icon icon-link\"})}),\"We haven't used an \",n(a.code,{children:\"h4\"}),\" yet\"]}),\"\\n\",t(a.p,{children:[\"But now we have. Please don't use \",n(a.code,{children:\"h5\"}),\" or \",n(a.code,{children:\"h6\"}),\" in your content, Medium only supports two heading levels for a reason, you animals. I honestly considered using a \",n(a.code,{children:\"before\"}),\" pseudo-element to scream at you if you use an \",n(a.code,{children:\"h5\"}),\" or \",n(a.code,{children:\"h6\"}),\".\"]}),\"\\n\",t(a.p,{children:[\"We don't style them at all out of the box because \",n(a.code,{children:\"h4\"}),\" elements are already so small that they are the same size as the body copy. What are we supposed to do with an \",n(a.code,{children:\"h5\"}),\", make it \",n(a.em,{children:\"smaller\"}),\" than the body copy? No thanks.\"]}),\"\\n\",t(a.h3,{id:\"we-still-need-to-think-about-stacked-headings-though\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#we-still-need-to-think-about-stacked-headings-though\",children:n(a.span,{className:\"icon icon-link\"})}),\"We still need to think about stacked headings though.\"]}),\"\\n\",t(a.h4,{id:\"lets-make-sure-we-dont-screw-that-up-with-h4-elements-either\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#lets-make-sure-we-dont-screw-that-up-with-h4-elements-either\",children:n(a.span,{className:\"icon icon-link\"})}),\"Let's make sure we don't screw that up with \",n(a.code,{children:\"h4\"}),\" elements, either.\"]}),\"\\n\",n(a.p,{children:\"Phew, with any luck we have styled the headings above this text and they look pretty good.\"}),\"\\n\",n(a.p,{children:\"Let's add a closing paragraph here so things end with a decently sized block of text. I can't explain why I want things to end that way but I have to assume it's because I think things will look weird or unbalanced if there is a heading too close to the end of the document.\"}),\"\\n\",n(a.p,{children:\"What I've written here is probably long enough, but adding this final sentence can't hurt.\"}),\"\\n\",t(a.h2,{id:\"github-flavored-markdown\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#github-flavored-markdown\",children:n(a.span,{className:\"icon icon-link\"})}),\"GitHub Flavored Markdown\"]}),\"\\n\",t(a.p,{children:[\"I've also added support for GitHub Flavored Mardown using \",n(a.code,{children:\"remark-gfm\"}),\".\"]}),\"\\n\",t(a.p,{children:[\"With \",n(a.code,{children:\"remark-gfm\"}),\", we get a few extra features in our markdown. Example: autolink literals.\"]}),\"\\n\",t(a.p,{children:[\"A link like \",n(a.a,{href:\"http://www.example.com\",children:\"www.example.com\"}),\" or \",n(a.a,{href:\"https://example.com\",children:\"https://example.com\"}),\" would automatically be converted into an \",n(a.code,{children:\"a\"}),\" tag.\"]}),\"\\n\",t(a.p,{children:[\"This works for email links too: \",n(a.a,{href:\"mailto:contact@example.com\",children:\"contact@example.com\"}),\".\"]})]})}return{default:function(e={}){const{wrapper:t}=e.components||{};return t?n(t,{...e,children:n(_createMdxContent,{...e})}):_createMdxContent(e)}};function _missingMdxReference(e,n){throw new Error(\"Expected \"+(n?\"component\":\"object\")+\" `\"+e+\"` to be defined: you likely forgot to import, pass, or provide it.\")}", - "slug": "/D:\\Coding\\forks\\taxonomy\\content\\docs\\documentation\\style-guide", - "slugAsParams": "" - } -] \ No newline at end of file diff --git a/.velite/guide.json b/.velite/guide.json deleted file mode 100644 index eee6d60c2..000000000 --- a/.velite/guide.json +++ /dev/null @@ -1,20 +0,0 @@ -[ - { - "title": "Build a blog using ContentLayer and MDX.", - "description": "Learn how to use ContentLayer to build a blog with Next.js", - "date": "2022-11-18T00:00:00.000Z", - "published": true, - "featured": false, - "slug": "/D:\\Coding\\forks\\taxonomy\\content\\guides\\build-blog-using-contentlayer-mdx", - "slugAsParams": "" - }, - { - "title": "Using NextAuth.js with Next.13", - "description": "How to use NextAuth.js in server components.", - "date": "2022-11-23T00:00:00.000Z", - "published": true, - "featured": false, - "slug": "/D:\\Coding\\forks\\taxonomy\\content\\guides\\using-next-auth-next-13", - "slugAsParams": "" - } -] \ No newline at end of file diff --git a/.velite/guides.json b/.velite/guides.json deleted file mode 100644 index 18718f68b..000000000 --- a/.velite/guides.json +++ /dev/null @@ -1,22 +0,0 @@ -[ - { - "title": "Build a blog using ContentLayer and MDX.", - "description": "Learn how to use ContentLayer to build a blog with Next.js", - "date": "2022-11-18T00:00:00.000Z", - "published": true, - "featured": false, - "body": "const{Fragment:e,jsx:n,jsxs:t}=arguments[0];function _createMdxContent(i){const a={a:\"a\",blockquote:\"blockquote\",code:\"code\",em:\"em\",figure:\"figure\",h2:\"h2\",h3:\"h3\",h4:\"h4\",hr:\"hr\",li:\"li\",ol:\"ol\",p:\"p\",pre:\"pre\",span:\"span\",strong:\"strong\",table:\"table\",tbody:\"tbody\",td:\"td\",th:\"th\",thead:\"thead\",tr:\"tr\",ul:\"ul\",...i.components},{Callout:o,Image:l}=a;return o||_missingMdxReference(\"Callout\",!0),l||_missingMdxReference(\"Image\",!0),t(e,{children:[n(o,{children:t(a.p,{children:[\"This site is a work in progress. If you see dummy text on a page, it means I'm still working on it. You can follow updates on Twitter \",n(a.a,{href:\"https://twitter.com/shadcn\",children:\"@shadcn\"}),\".\"]})}),\"\\n\",n(o,{children:t(a.p,{children:[\"The text below is from the \",n(a.a,{href:\"https://play.tailwindcss.com/uj1vGACRJA?layout=preview\",children:\"Tailwind\\nCSS\"}),\" docs. I copied it\\nhere to test the markdown styles. \",n(a.strong,{children:\"Tailwind is awesome. You should use it.\"})]})}),\"\\n\",n(a.p,{children:\"Until now, trying to style an article, document, or blog post with Tailwind has been a tedious task that required a keen eye for typography and a lot of complex custom CSS.\"}),\"\\n\",t(a.p,{children:[\"By default, Tailwind removes all of the default browser styling from paragraphs, headings, lists and more. This ends up being really useful for building application UIs because you spend less time undoing user-agent styles, but when you \",n(a.em,{children:\"really are\"}),\" just trying to style some content that came from a rich-text editor in a CMS or a markdown file, it can be surprising and unintuitive.\"]}),\"\\n\",n(a.p,{children:\"We get lots of complaints about it actually, with people regularly asking us things like:\"}),\"\\n\",t(a.blockquote,{children:[\"\\n\",t(a.p,{children:[\"Why is Tailwind removing the default styles on my \",n(a.code,{children:\"h1\"}),\" elements? How do I disable this? What do you mean I lose all the other base styles too?\\nWe hear you, but we're not convinced that simply disabling our base styles is what you really want. You don't want to have to remove annoying margins every time you use a \",n(a.code,{children:\"p\"}),\" element in a piece of your dashboard UI. And I doubt you really want your blog posts to use the user-agent styles either — you want them to look \",n(a.em,{children:\"awesome\"}),\", not awful.\"]}),\"\\n\"]}),\"\\n\",t(a.p,{children:[\"The \",n(a.code,{children:\"@tailwindcss/typography\"}),\" plugin is our attempt to give you what you \",n(a.em,{children:\"actually\"}),\" want, without any of the downsides of doing something stupid like disabling our base styles.\"]}),\"\\n\",t(a.p,{children:[\"It adds a new \",n(a.code,{children:\"prose\"}),\" class that you can slap on any block of vanilla HTML content and turn it into a beautiful, well-formatted document:\"]}),\"\\n\",n(a.figure,{\"data-rehype-pretty-code-figure\":\"\",children:n(a.pre,{style:{backgroundColor:\"#24292e\",color:\"#e1e4e8\"},tabIndex:\"0\",\"data-language\":\"html\",\"data-theme\":\"github-dark\",children:t(a.code,{\"data-language\":\"html\",\"data-theme\":\"github-dark\",style:{display:\"grid\"},children:[t(a.span,{\"data-line\":\"\",children:[n(a.span,{style:{color:\"#E1E4E8\"},children:\"<\"}),n(a.span,{style:{color:\"#85E89D\"},children:\"article\"}),n(a.span,{style:{color:\"#B392F0\"},children:\" class\"}),n(a.span,{style:{color:\"#E1E4E8\"},children:\"=\"}),n(a.span,{style:{color:\"#9ECBFF\"},children:'\"prose\"'}),n(a.span,{style:{color:\"#E1E4E8\"},children:\">\"})]}),\"\\n\",t(a.span,{\"data-line\":\"\",children:[n(a.span,{style:{color:\"#E1E4E8\"},children:\" <\"}),n(a.span,{style:{color:\"#85E89D\"},children:\"h1\"}),n(a.span,{style:{color:\"#E1E4E8\"},children:\">Garlic bread with cheese: What the science tells us\"})]}),\"\\n\",t(a.span,{\"data-line\":\"\",children:[n(a.span,{style:{color:\"#E1E4E8\"},children:\" <\"}),n(a.span,{style:{color:\"#85E89D\"},children:\"p\"}),n(a.span,{style:{color:\"#E1E4E8\"},children:\">\"})]}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" For years parents have espoused the health benefits of eating garlic bread\"})}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" with cheese to their children, with the food earning such an iconic status\"})}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" in our culture that kids will often dress up as warm, cheesy loaf for\"})}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" Halloween.\"})}),\"\\n\",t(a.span,{\"data-line\":\"\",children:[n(a.span,{style:{color:\"#E1E4E8\"},children:\" \"})]}),\"\\n\",t(a.span,{\"data-line\":\"\",children:[n(a.span,{style:{color:\"#E1E4E8\"},children:\" <\"}),n(a.span,{style:{color:\"#85E89D\"},children:\"p\"}),n(a.span,{style:{color:\"#E1E4E8\"},children:\">\"})]}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" But a recent study shows that the celebrated appetizer may be linked to a\"})}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" series of rabies cases springing up around the country.\"})}),\"\\n\",t(a.span,{\"data-line\":\"\",children:[n(a.span,{style:{color:\"#E1E4E8\"},children:\" \"})]}),\"\\n\",t(a.span,{\"data-line\":\"\",children:[n(a.span,{style:{color:\"#E1E4E8\"},children:\"\"})]})]})})}),\"\\n\",t(a.p,{children:[\"For more information about how to use the plugin and the features it includes, \",n(a.a,{href:\"https://github.com/tailwindcss/typography/blob/master/README.md\",children:\"read the documentation\"}),\".\"]}),\"\\n\",n(a.hr,{}),\"\\n\",t(a.h2,{id:\"what-to-expect-from-here-on-out\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#what-to-expect-from-here-on-out\",children:n(a.span,{className:\"icon icon-link\"})}),\"What to expect from here on out\"]}),\"\\n\",t(a.p,{children:[\"What follows from here is just a bunch of absolute nonsense I've written to dogfood the plugin itself. It includes every sensible typographic element I could think of, like \",n(a.strong,{children:\"bold text\"}),\", unordered lists, ordered lists, code blocks, block quotes, \",n(a.em,{children:\"and even italics\"}),\".\"]}),\"\\n\",n(a.p,{children:\"It's important to cover all of these use cases for a few reasons:\"}),\"\\n\",t(a.ol,{children:[\"\\n\",n(a.li,{children:\"We want everything to look good out of the box.\"}),\"\\n\",n(a.li,{children:\"Really just the first reason, that's the whole point of the plugin.\"}),\"\\n\",n(a.li,{children:\"Here's a third pretend reason though a list with three items looks more realistic than a list with two items.\"}),\"\\n\"]}),\"\\n\",n(a.p,{children:\"Now we're going to try out another header style.\"}),\"\\n\",t(a.h3,{id:\"typography-should-be-easy\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#typography-should-be-easy\",children:n(a.span,{className:\"icon icon-link\"})}),\"Typography should be easy\"]}),\"\\n\",n(a.p,{children:\"So that's a header for you — with any luck if we've done our job correctly that will look pretty reasonable.\"}),\"\\n\",n(a.p,{children:\"Something a wise person once told me about typography is:\"}),\"\\n\",t(a.blockquote,{children:[\"\\n\",n(a.p,{children:\"Typography is pretty important if you don't want your stuff to look like trash. Make it good then it won't be bad.\"}),\"\\n\"]}),\"\\n\",n(a.p,{children:\"It's probably important that images look okay here by default as well:\"}),\"\\n\",n(l,{src:\"/images/blog/blog-post-4.jpg\",width:\"718\",height:\"404\",alt:\"Image\"}),\"\\n\",n(a.p,{children:\"Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old.\"}),\"\\n\",n(a.p,{children:\"Now I'm going to show you an example of an unordered list to make sure that looks good, too:\"}),\"\\n\",t(a.ul,{children:[\"\\n\",n(a.li,{children:\"So here is the first item in this list.\"}),\"\\n\",n(a.li,{children:\"In this example we're keeping the items short.\"}),\"\\n\",n(a.li,{children:\"Later, we'll use longer, more complex list items.\"}),\"\\n\"]}),\"\\n\",n(a.p,{children:\"And that's the end of this section.\"}),\"\\n\",t(a.h2,{id:\"what-if-we-stack-headings\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#what-if-we-stack-headings\",children:n(a.span,{className:\"icon icon-link\"})}),\"What if we stack headings?\"]}),\"\\n\",t(a.h3,{id:\"we-should-make-sure-that-looks-good-too\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#we-should-make-sure-that-looks-good-too\",children:n(a.span,{className:\"icon icon-link\"})}),\"We should make sure that looks good, too.\"]}),\"\\n\",n(a.p,{children:\"Sometimes you have headings directly underneath each other. In those cases you often have to undo the top margin on the second heading because it usually looks better for the headings to be closer together than a paragraph followed by a heading should be.\"}),\"\\n\",t(a.h3,{id:\"when-a-heading-comes-after-a-paragraph-\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#when-a-heading-comes-after-a-paragraph-\",children:n(a.span,{className:\"icon icon-link\"})}),\"When a heading comes after a paragraph …\"]}),\"\\n\",n(a.p,{children:\"When a heading comes after a paragraph, we need a bit more space, like I already mentioned above. Now let's see what a more complex list would look like.\"}),\"\\n\",t(a.ul,{children:[\"\\n\",t(a.li,{children:[\"\\n\",n(a.p,{children:n(a.strong,{children:\"I often do this thing where list items have headings.\"})}),\"\\n\",n(a.p,{children:\"For some reason I think this looks cool which is unfortunate because it's pretty annoying to get the styles right.\"}),\"\\n\",n(a.p,{children:\"I often have two or three paragraphs in these list items, too, so the hard part is getting the spacing between the paragraphs, list item heading, and separate list items to all make sense. Pretty tough honestly, you could make a strong argument that you just shouldn't write this way.\"}),\"\\n\"]}),\"\\n\",t(a.li,{children:[\"\\n\",n(a.p,{children:n(a.strong,{children:\"Since this is a list, I need at least two items.\"})}),\"\\n\",n(a.p,{children:\"I explained what I'm doing already in the previous list item, but a list wouldn't be a list if it only had one item, and we really want this to look realistic. That's why I've added this second list item so I actually have something to look at when writing the styles.\"}),\"\\n\"]}),\"\\n\",t(a.li,{children:[\"\\n\",n(a.p,{children:n(a.strong,{children:\"It's not a bad idea to add a third item either.\"})}),\"\\n\",n(a.p,{children:\"I think it probably would've been fine to just use two items but three is definitely not worse, and since I seem to be having no trouble making up arbitrary things to type, I might as well include it.\"}),\"\\n\"]}),\"\\n\"]}),\"\\n\",n(a.p,{children:\"After this sort of list I usually have a closing statement or paragraph, because it kinda looks weird jumping right to a heading.\"}),\"\\n\",t(a.h2,{id:\"code-should-look-okay-by-default\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#code-should-look-okay-by-default\",children:n(a.span,{className:\"icon icon-link\"})}),\"Code should look okay by default.\"]}),\"\\n\",t(a.p,{children:[\"I think most people are going to use \",n(a.a,{href:\"https://highlightjs.org/\",children:\"highlight.js\"}),\" or \",n(a.a,{href:\"https://prismjs.com/\",children:\"Prism\"}),\" or something if they want to style their code blocks but it wouldn't hurt to make them look \",n(a.em,{children:\"okay\"}),\" out of the box, even with no syntax highlighting.\"]}),\"\\n\",t(a.p,{children:[\"Here's what a default \",n(a.code,{children:\"tailwind.config.js\"}),\" file looks like at the time of writing:\"]}),\"\\n\",n(a.figure,{\"data-rehype-pretty-code-figure\":\"\",children:n(a.pre,{style:{backgroundColor:\"#24292e\",color:\"#e1e4e8\"},tabIndex:\"0\",\"data-language\":\"js\",\"data-theme\":\"github-dark\",children:t(a.code,{\"data-language\":\"js\",\"data-theme\":\"github-dark\",style:{display:\"grid\"},children:[t(a.span,{\"data-line\":\"\",children:[n(a.span,{style:{color:\"#79B8FF\"},children:\"module\"}),n(a.span,{style:{color:\"#E1E4E8\"},children:\".\"}),n(a.span,{style:{color:\"#79B8FF\"},children:\"exports\"}),n(a.span,{style:{color:\"#F97583\"},children:\" =\"}),n(a.span,{style:{color:\"#E1E4E8\"},children:\" {\"})]}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" purge: [],\"})}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" theme: {\"})}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" extend: {},\"})}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" },\"})}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" variants: {},\"})}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" plugins: [],\"})}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\"}\"})})]})})}),\"\\n\",n(a.p,{children:\"Hopefully that looks good enough to you.\"}),\"\\n\",t(a.h3,{id:\"what-about-nested-lists\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#what-about-nested-lists\",children:n(a.span,{className:\"icon icon-link\"})}),\"What about nested lists?\"]}),\"\\n\",n(a.p,{children:\"Nested lists basically always look bad which is why editors like Medium don't even let you do it, but I guess since some of you goofballs are going to do it we have to carry the burden of at least making it work.\"}),\"\\n\",t(a.ol,{children:[\"\\n\",t(a.li,{children:[n(a.strong,{children:\"Nested lists are rarely a good idea.\"}),\"\\n\",t(a.ul,{children:[\"\\n\",n(a.li,{children:'You might feel like you are being really \"organized\" or something but you are just creating a gross shape on the screen that is hard to read.'}),\"\\n\",n(a.li,{children:\"Nested navigation in UIs is a bad idea too, keep things as flat as possible.\"}),\"\\n\",n(a.li,{children:\"Nesting tons of folders in your source code is also not helpful.\"}),\"\\n\"]}),\"\\n\"]}),\"\\n\",t(a.li,{children:[n(a.strong,{children:\"Since we need to have more items, here's another one.\"}),\"\\n\",t(a.ul,{children:[\"\\n\",n(a.li,{children:\"I'm not sure if we'll bother styling more than two levels deep.\"}),\"\\n\",n(a.li,{children:\"Two is already too much, three is guaranteed to be a bad idea.\"}),\"\\n\",n(a.li,{children:\"If you nest four levels deep you belong in prison.\"}),\"\\n\"]}),\"\\n\"]}),\"\\n\",t(a.li,{children:[n(a.strong,{children:\"Two items isn't really a list, three is good though.\"}),\"\\n\",t(a.ul,{children:[\"\\n\",n(a.li,{children:\"Again please don't nest lists if you want people to actually read your content.\"}),\"\\n\",n(a.li,{children:\"Nobody wants to look at this.\"}),\"\\n\",n(a.li,{children:\"I'm upset that we even have to bother styling this.\"}),\"\\n\"]}),\"\\n\"]}),\"\\n\"]}),\"\\n\",t(a.p,{children:[\"The most annoying thing about lists in Markdown is that \",n(a.code,{children:\"

  • \"}),\" elements aren't given a child \",n(a.code,{children:\"

    \"}),\" tag unless there are multiple paragraphs in the list item. That means I have to worry about styling that annoying situation too.\"]}),\"\\n\",t(a.ul,{children:[\"\\n\",t(a.li,{children:[\"\\n\",n(a.p,{children:n(a.strong,{children:\"For example, here's another nested list.\"})}),\"\\n\",n(a.p,{children:\"But this time with a second paragraph.\"}),\"\\n\",t(a.ul,{children:[\"\\n\",t(a.li,{children:[\"These list items won't have \",n(a.code,{children:\"

    \"}),\" tags\"]}),\"\\n\",n(a.li,{children:\"Because they are only one line each\"}),\"\\n\"]}),\"\\n\"]}),\"\\n\",t(a.li,{children:[\"\\n\",n(a.p,{children:n(a.strong,{children:\"But in this second top-level list item, they will.\"})}),\"\\n\",n(a.p,{children:\"This is especially annoying because of the spacing on this paragraph.\"}),\"\\n\",t(a.ul,{children:[\"\\n\",t(a.li,{children:[\"\\n\",t(a.p,{children:[\"As you can see here, because I've added a second line, this list item now has a \",n(a.code,{children:\"

    \"}),\" tag.\"]}),\"\\n\",n(a.p,{children:\"This is the second line I'm talking about by the way.\"}),\"\\n\"]}),\"\\n\",t(a.li,{children:[\"\\n\",n(a.p,{children:\"Finally here's another list item so it's more like a list.\"}),\"\\n\"]}),\"\\n\"]}),\"\\n\"]}),\"\\n\",t(a.li,{children:[\"\\n\",n(a.p,{children:\"A closing list item, but with no nested list, because why not?\"}),\"\\n\"]}),\"\\n\"]}),\"\\n\",n(a.p,{children:\"And finally a sentence to close off this section.\"}),\"\\n\",t(a.h2,{id:\"there-are-other-elements-we-need-to-style\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#there-are-other-elements-we-need-to-style\",children:n(a.span,{className:\"icon icon-link\"})}),\"There are other elements we need to style\"]}),\"\\n\",t(a.p,{children:[\"I almost forgot to mention links, like \",n(a.a,{href:\"https://tailwindcss.com\",children:\"this link to the Tailwind CSS website\"}),\". We almost made them blue but that's so yesterday, so we went with dark gray, feels edgier.\"]}),\"\\n\",n(a.p,{children:\"We even included table styles, check it out:\"}),\"\\n\",t(a.table,{children:[n(a.thead,{children:t(a.tr,{children:[n(a.th,{children:\"Wrestler\"}),n(a.th,{children:\"Origin\"}),n(a.th,{children:\"Finisher\"})]})}),t(a.tbody,{children:[t(a.tr,{children:[n(a.td,{children:'Bret \"The Hitman\" Hart'}),n(a.td,{children:\"Calgary, AB\"}),n(a.td,{children:\"Sharpshooter\"})]}),t(a.tr,{children:[n(a.td,{children:\"Stone Cold Steve Austin\"}),n(a.td,{children:\"Austin, TX\"}),n(a.td,{children:\"Stone Cold Stunner\"})]}),t(a.tr,{children:[n(a.td,{children:\"Randy Savage\"}),n(a.td,{children:\"Sarasota, FL\"}),n(a.td,{children:\"Elbow Drop\"})]}),t(a.tr,{children:[n(a.td,{children:\"Vader\"}),n(a.td,{children:\"Boulder, CO\"}),n(a.td,{children:\"Vader Bomb\"})]}),t(a.tr,{children:[n(a.td,{children:\"Razor Ramon\"}),n(a.td,{children:\"Chuluota, FL\"}),n(a.td,{children:\"Razor's Edge\"})]})]})]}),\"\\n\",t(a.p,{children:[\"We also need to make sure inline code looks good, like if I wanted to talk about \",n(a.code,{children:\"\"}),\" elements or tell you the good news about \",n(a.code,{children:\"@tailwindcss/typography\"}),\".\"]}),\"\\n\",t(a.h3,{id:\"sometimes-i-even-use-code-in-headings\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#sometimes-i-even-use-code-in-headings\",children:n(a.span,{className:\"icon icon-link\"})}),\"Sometimes I even use \",n(a.code,{children:\"code\"}),\" in headings\"]}),\"\\n\",t(a.p,{children:[\"Even though it's probably a bad idea, and historically I've had a hard time making it look good. This \",n(a.em,{children:'\"wrap the code blocks in backticks\"'}),\" trick works pretty well though really.\"]}),\"\\n\",t(a.p,{children:[\"Another thing I've done in the past is put a \",n(a.code,{children:\"code\"}),\" tag inside of a link, like if I wanted to tell you about the \",n(a.a,{href:\"https://github.com/tailwindcss/docs\",children:n(a.code,{children:\"tailwindcss/docs\"})}),\" repository. I don't love that there is an underline below the backticks but it is absolutely not worth the madness it would require to avoid it.\"]}),\"\\n\",t(a.h4,{id:\"we-havent-used-an-h4-yet\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#we-havent-used-an-h4-yet\",children:n(a.span,{className:\"icon icon-link\"})}),\"We haven't used an \",n(a.code,{children:\"h4\"}),\" yet\"]}),\"\\n\",t(a.p,{children:[\"But now we have. Please don't use \",n(a.code,{children:\"h5\"}),\" or \",n(a.code,{children:\"h6\"}),\" in your content, Medium only supports two heading levels for a reason, you animals. I honestly considered using a \",n(a.code,{children:\"before\"}),\" pseudo-element to scream at you if you use an \",n(a.code,{children:\"h5\"}),\" or \",n(a.code,{children:\"h6\"}),\".\"]}),\"\\n\",t(a.p,{children:[\"We don't style them at all out of the box because \",n(a.code,{children:\"h4\"}),\" elements are already so small that they are the same size as the body copy. What are we supposed to do with an \",n(a.code,{children:\"h5\"}),\", make it \",n(a.em,{children:\"smaller\"}),\" than the body copy? No thanks.\"]}),\"\\n\",t(a.h3,{id:\"we-still-need-to-think-about-stacked-headings-though\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#we-still-need-to-think-about-stacked-headings-though\",children:n(a.span,{className:\"icon icon-link\"})}),\"We still need to think about stacked headings though.\"]}),\"\\n\",t(a.h4,{id:\"lets-make-sure-we-dont-screw-that-up-with-h4-elements-either\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#lets-make-sure-we-dont-screw-that-up-with-h4-elements-either\",children:n(a.span,{className:\"icon icon-link\"})}),\"Let's make sure we don't screw that up with \",n(a.code,{children:\"h4\"}),\" elements, either.\"]}),\"\\n\",n(a.p,{children:\"Phew, with any luck we have styled the headings above this text and they look pretty good.\"}),\"\\n\",n(a.p,{children:\"Let's add a closing paragraph here so things end with a decently sized block of text. I can't explain why I want things to end that way but I have to assume it's because I think things will look weird or unbalanced if there is a heading too close to the end of the document.\"}),\"\\n\",n(a.p,{children:\"What I've written here is probably long enough, but adding this final sentence can't hurt.\"}),\"\\n\",t(a.h2,{id:\"github-flavored-markdown\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#github-flavored-markdown\",children:n(a.span,{className:\"icon icon-link\"})}),\"GitHub Flavored Markdown\"]}),\"\\n\",t(a.p,{children:[\"I've also added support for GitHub Flavored Mardown using \",n(a.code,{children:\"remark-gfm\"}),\".\"]}),\"\\n\",t(a.p,{children:[\"With \",n(a.code,{children:\"remark-gfm\"}),\", we get a few extra features in our markdown. Example: autolink literals.\"]}),\"\\n\",t(a.p,{children:[\"A link like \",n(a.a,{href:\"http://www.example.com\",children:\"www.example.com\"}),\" or \",n(a.a,{href:\"https://example.com\",children:\"https://example.com\"}),\" would automatically be converted into an \",n(a.code,{children:\"a\"}),\" tag.\"]}),\"\\n\",t(a.p,{children:[\"This works for email links too: \",n(a.a,{href:\"mailto:contact@example.com\",children:\"contact@example.com\"}),\".\"]})]})}return{default:function(e={}){const{wrapper:t}=e.components||{};return t?n(t,{...e,children:n(_createMdxContent,{...e})}):_createMdxContent(e)}};function _missingMdxReference(e,n){throw new Error(\"Expected \"+(n?\"component\":\"object\")+\" `\"+e+\"` to be defined: you likely forgot to import, pass, or provide it.\")}", - "slug": "/D:\\Coding\\forks\\taxonomy\\content\\guides\\build-blog-using-contentlayer-mdx", - "slugAsParams": "" - }, - { - "title": "Using NextAuth.js with Next.13", - "description": "How to use NextAuth.js in server components.", - "date": "2022-11-23T00:00:00.000Z", - "published": true, - "featured": false, - "body": "const{Fragment:e,jsx:n,jsxs:t}=arguments[0];function _createMdxContent(i){const a={a:\"a\",blockquote:\"blockquote\",code:\"code\",em:\"em\",figure:\"figure\",h2:\"h2\",h3:\"h3\",h4:\"h4\",hr:\"hr\",li:\"li\",ol:\"ol\",p:\"p\",pre:\"pre\",span:\"span\",strong:\"strong\",table:\"table\",tbody:\"tbody\",td:\"td\",th:\"th\",thead:\"thead\",tr:\"tr\",ul:\"ul\",...i.components},{Callout:o,Image:l}=a;return o||_missingMdxReference(\"Callout\",!0),l||_missingMdxReference(\"Image\",!0),t(e,{children:[n(o,{children:t(a.p,{children:[\"This site is a work in progress. If you see dummy text on a page, it means I'm still working on it. You can follow updates on Twitter \",n(a.a,{href:\"https://twitter.com/shadcn\",children:\"@shadcn\"}),\".\"]})}),\"\\n\",n(o,{children:t(a.p,{children:[\"The text below is from the \",n(a.a,{href:\"https://play.tailwindcss.com/uj1vGACRJA?layout=preview\",children:\"Tailwind\\nCSS\"}),\" docs. I copied it\\nhere to test the markdown styles. \",n(a.strong,{children:\"Tailwind is awesome. You should use it.\"})]})}),\"\\n\",n(a.p,{children:\"Until now, trying to style an article, document, or blog post with Tailwind has been a tedious task that required a keen eye for typography and a lot of complex custom CSS.\"}),\"\\n\",t(a.p,{children:[\"By default, Tailwind removes all of the default browser styling from paragraphs, headings, lists and more. This ends up being really useful for building application UIs because you spend less time undoing user-agent styles, but when you \",n(a.em,{children:\"really are\"}),\" just trying to style some content that came from a rich-text editor in a CMS or a markdown file, it can be surprising and unintuitive.\"]}),\"\\n\",n(a.p,{children:\"We get lots of complaints about it actually, with people regularly asking us things like:\"}),\"\\n\",t(a.blockquote,{children:[\"\\n\",t(a.p,{children:[\"Why is Tailwind removing the default styles on my \",n(a.code,{children:\"h1\"}),\" elements? How do I disable this? What do you mean I lose all the other base styles too?\\nWe hear you, but we're not convinced that simply disabling our base styles is what you really want. You don't want to have to remove annoying margins every time you use a \",n(a.code,{children:\"p\"}),\" element in a piece of your dashboard UI. And I doubt you really want your blog posts to use the user-agent styles either — you want them to look \",n(a.em,{children:\"awesome\"}),\", not awful.\"]}),\"\\n\"]}),\"\\n\",t(a.p,{children:[\"The \",n(a.code,{children:\"@tailwindcss/typography\"}),\" plugin is our attempt to give you what you \",n(a.em,{children:\"actually\"}),\" want, without any of the downsides of doing something stupid like disabling our base styles.\"]}),\"\\n\",t(a.p,{children:[\"It adds a new \",n(a.code,{children:\"prose\"}),\" class that you can slap on any block of vanilla HTML content and turn it into a beautiful, well-formatted document:\"]}),\"\\n\",n(a.figure,{\"data-rehype-pretty-code-figure\":\"\",children:n(a.pre,{style:{backgroundColor:\"#24292e\",color:\"#e1e4e8\"},tabIndex:\"0\",\"data-language\":\"html\",\"data-theme\":\"github-dark\",children:t(a.code,{\"data-language\":\"html\",\"data-theme\":\"github-dark\",style:{display:\"grid\"},children:[t(a.span,{\"data-line\":\"\",children:[n(a.span,{style:{color:\"#E1E4E8\"},children:\"<\"}),n(a.span,{style:{color:\"#85E89D\"},children:\"article\"}),n(a.span,{style:{color:\"#B392F0\"},children:\" class\"}),n(a.span,{style:{color:\"#E1E4E8\"},children:\"=\"}),n(a.span,{style:{color:\"#9ECBFF\"},children:'\"prose\"'}),n(a.span,{style:{color:\"#E1E4E8\"},children:\">\"})]}),\"\\n\",t(a.span,{\"data-line\":\"\",children:[n(a.span,{style:{color:\"#E1E4E8\"},children:\" <\"}),n(a.span,{style:{color:\"#85E89D\"},children:\"h1\"}),n(a.span,{style:{color:\"#E1E4E8\"},children:\">Garlic bread with cheese: What the science tells us\"})]}),\"\\n\",t(a.span,{\"data-line\":\"\",children:[n(a.span,{style:{color:\"#E1E4E8\"},children:\" <\"}),n(a.span,{style:{color:\"#85E89D\"},children:\"p\"}),n(a.span,{style:{color:\"#E1E4E8\"},children:\">\"})]}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" For years parents have espoused the health benefits of eating garlic bread\"})}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" with cheese to their children, with the food earning such an iconic status\"})}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" in our culture that kids will often dress up as warm, cheesy loaf for\"})}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" Halloween.\"})}),\"\\n\",t(a.span,{\"data-line\":\"\",children:[n(a.span,{style:{color:\"#E1E4E8\"},children:\" \"})]}),\"\\n\",t(a.span,{\"data-line\":\"\",children:[n(a.span,{style:{color:\"#E1E4E8\"},children:\" <\"}),n(a.span,{style:{color:\"#85E89D\"},children:\"p\"}),n(a.span,{style:{color:\"#E1E4E8\"},children:\">\"})]}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" But a recent study shows that the celebrated appetizer may be linked to a\"})}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" series of rabies cases springing up around the country.\"})}),\"\\n\",t(a.span,{\"data-line\":\"\",children:[n(a.span,{style:{color:\"#E1E4E8\"},children:\" \"})]}),\"\\n\",t(a.span,{\"data-line\":\"\",children:[n(a.span,{style:{color:\"#E1E4E8\"},children:\"\"})]})]})})}),\"\\n\",t(a.p,{children:[\"For more information about how to use the plugin and the features it includes, \",n(a.a,{href:\"https://github.com/tailwindcss/typography/blob/master/README.md\",children:\"read the documentation\"}),\".\"]}),\"\\n\",n(a.hr,{}),\"\\n\",t(a.h2,{id:\"what-to-expect-from-here-on-out\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#what-to-expect-from-here-on-out\",children:n(a.span,{className:\"icon icon-link\"})}),\"What to expect from here on out\"]}),\"\\n\",t(a.p,{children:[\"What follows from here is just a bunch of absolute nonsense I've written to dogfood the plugin itself. It includes every sensible typographic element I could think of, like \",n(a.strong,{children:\"bold text\"}),\", unordered lists, ordered lists, code blocks, block quotes, \",n(a.em,{children:\"and even italics\"}),\".\"]}),\"\\n\",n(a.p,{children:\"It's important to cover all of these use cases for a few reasons:\"}),\"\\n\",t(a.ol,{children:[\"\\n\",n(a.li,{children:\"We want everything to look good out of the box.\"}),\"\\n\",n(a.li,{children:\"Really just the first reason, that's the whole point of the plugin.\"}),\"\\n\",n(a.li,{children:\"Here's a third pretend reason though a list with three items looks more realistic than a list with two items.\"}),\"\\n\"]}),\"\\n\",n(a.p,{children:\"Now we're going to try out another header style.\"}),\"\\n\",t(a.h3,{id:\"typography-should-be-easy\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#typography-should-be-easy\",children:n(a.span,{className:\"icon icon-link\"})}),\"Typography should be easy\"]}),\"\\n\",n(a.p,{children:\"So that's a header for you — with any luck if we've done our job correctly that will look pretty reasonable.\"}),\"\\n\",n(a.p,{children:\"Something a wise person once told me about typography is:\"}),\"\\n\",t(a.blockquote,{children:[\"\\n\",n(a.p,{children:\"Typography is pretty important if you don't want your stuff to look like trash. Make it good then it won't be bad.\"}),\"\\n\"]}),\"\\n\",n(a.p,{children:\"It's probably important that images look okay here by default as well:\"}),\"\\n\",n(l,{src:\"/images/blog/blog-post-4.jpg\",width:\"718\",height:\"404\",alt:\"Image\"}),\"\\n\",n(a.p,{children:\"Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old.\"}),\"\\n\",n(a.p,{children:\"Now I'm going to show you an example of an unordered list to make sure that looks good, too:\"}),\"\\n\",t(a.ul,{children:[\"\\n\",n(a.li,{children:\"So here is the first item in this list.\"}),\"\\n\",n(a.li,{children:\"In this example we're keeping the items short.\"}),\"\\n\",n(a.li,{children:\"Later, we'll use longer, more complex list items.\"}),\"\\n\"]}),\"\\n\",n(a.p,{children:\"And that's the end of this section.\"}),\"\\n\",t(a.h2,{id:\"what-if-we-stack-headings\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#what-if-we-stack-headings\",children:n(a.span,{className:\"icon icon-link\"})}),\"What if we stack headings?\"]}),\"\\n\",t(a.h3,{id:\"we-should-make-sure-that-looks-good-too\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#we-should-make-sure-that-looks-good-too\",children:n(a.span,{className:\"icon icon-link\"})}),\"We should make sure that looks good, too.\"]}),\"\\n\",n(a.p,{children:\"Sometimes you have headings directly underneath each other. In those cases you often have to undo the top margin on the second heading because it usually looks better for the headings to be closer together than a paragraph followed by a heading should be.\"}),\"\\n\",t(a.h3,{id:\"when-a-heading-comes-after-a-paragraph-\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#when-a-heading-comes-after-a-paragraph-\",children:n(a.span,{className:\"icon icon-link\"})}),\"When a heading comes after a paragraph …\"]}),\"\\n\",n(a.p,{children:\"When a heading comes after a paragraph, we need a bit more space, like I already mentioned above. Now let's see what a more complex list would look like.\"}),\"\\n\",t(a.ul,{children:[\"\\n\",t(a.li,{children:[\"\\n\",n(a.p,{children:n(a.strong,{children:\"I often do this thing where list items have headings.\"})}),\"\\n\",n(a.p,{children:\"For some reason I think this looks cool which is unfortunate because it's pretty annoying to get the styles right.\"}),\"\\n\",n(a.p,{children:\"I often have two or three paragraphs in these list items, too, so the hard part is getting the spacing between the paragraphs, list item heading, and separate list items to all make sense. Pretty tough honestly, you could make a strong argument that you just shouldn't write this way.\"}),\"\\n\"]}),\"\\n\",t(a.li,{children:[\"\\n\",n(a.p,{children:n(a.strong,{children:\"Since this is a list, I need at least two items.\"})}),\"\\n\",n(a.p,{children:\"I explained what I'm doing already in the previous list item, but a list wouldn't be a list if it only had one item, and we really want this to look realistic. That's why I've added this second list item so I actually have something to look at when writing the styles.\"}),\"\\n\"]}),\"\\n\",t(a.li,{children:[\"\\n\",n(a.p,{children:n(a.strong,{children:\"It's not a bad idea to add a third item either.\"})}),\"\\n\",n(a.p,{children:\"I think it probably would've been fine to just use two items but three is definitely not worse, and since I seem to be having no trouble making up arbitrary things to type, I might as well include it.\"}),\"\\n\"]}),\"\\n\"]}),\"\\n\",n(a.p,{children:\"After this sort of list I usually have a closing statement or paragraph, because it kinda looks weird jumping right to a heading.\"}),\"\\n\",t(a.h2,{id:\"code-should-look-okay-by-default\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#code-should-look-okay-by-default\",children:n(a.span,{className:\"icon icon-link\"})}),\"Code should look okay by default.\"]}),\"\\n\",t(a.p,{children:[\"I think most people are going to use \",n(a.a,{href:\"https://highlightjs.org/\",children:\"highlight.js\"}),\" or \",n(a.a,{href:\"https://prismjs.com/\",children:\"Prism\"}),\" or something if they want to style their code blocks but it wouldn't hurt to make them look \",n(a.em,{children:\"okay\"}),\" out of the box, even with no syntax highlighting.\"]}),\"\\n\",t(a.p,{children:[\"Here's what a default \",n(a.code,{children:\"tailwind.config.js\"}),\" file looks like at the time of writing:\"]}),\"\\n\",n(a.figure,{\"data-rehype-pretty-code-figure\":\"\",children:n(a.pre,{style:{backgroundColor:\"#24292e\",color:\"#e1e4e8\"},tabIndex:\"0\",\"data-language\":\"js\",\"data-theme\":\"github-dark\",children:t(a.code,{\"data-language\":\"js\",\"data-theme\":\"github-dark\",style:{display:\"grid\"},children:[t(a.span,{\"data-line\":\"\",children:[n(a.span,{style:{color:\"#79B8FF\"},children:\"module\"}),n(a.span,{style:{color:\"#E1E4E8\"},children:\".\"}),n(a.span,{style:{color:\"#79B8FF\"},children:\"exports\"}),n(a.span,{style:{color:\"#F97583\"},children:\" =\"}),n(a.span,{style:{color:\"#E1E4E8\"},children:\" {\"})]}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" purge: [],\"})}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" theme: {\"})}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" extend: {},\"})}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" },\"})}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" variants: {},\"})}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" plugins: [],\"})}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\"}\"})})]})})}),\"\\n\",n(a.p,{children:\"Hopefully that looks good enough to you.\"}),\"\\n\",t(a.h3,{id:\"what-about-nested-lists\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#what-about-nested-lists\",children:n(a.span,{className:\"icon icon-link\"})}),\"What about nested lists?\"]}),\"\\n\",n(a.p,{children:\"Nested lists basically always look bad which is why editors like Medium don't even let you do it, but I guess since some of you goofballs are going to do it we have to carry the burden of at least making it work.\"}),\"\\n\",t(a.ol,{children:[\"\\n\",t(a.li,{children:[n(a.strong,{children:\"Nested lists are rarely a good idea.\"}),\"\\n\",t(a.ul,{children:[\"\\n\",n(a.li,{children:'You might feel like you are being really \"organized\" or something but you are just creating a gross shape on the screen that is hard to read.'}),\"\\n\",n(a.li,{children:\"Nested navigation in UIs is a bad idea too, keep things as flat as possible.\"}),\"\\n\",n(a.li,{children:\"Nesting tons of folders in your source code is also not helpful.\"}),\"\\n\"]}),\"\\n\"]}),\"\\n\",t(a.li,{children:[n(a.strong,{children:\"Since we need to have more items, here's another one.\"}),\"\\n\",t(a.ul,{children:[\"\\n\",n(a.li,{children:\"I'm not sure if we'll bother styling more than two levels deep.\"}),\"\\n\",n(a.li,{children:\"Two is already too much, three is guaranteed to be a bad idea.\"}),\"\\n\",n(a.li,{children:\"If you nest four levels deep you belong in prison.\"}),\"\\n\"]}),\"\\n\"]}),\"\\n\",t(a.li,{children:[n(a.strong,{children:\"Two items isn't really a list, three is good though.\"}),\"\\n\",t(a.ul,{children:[\"\\n\",n(a.li,{children:\"Again please don't nest lists if you want people to actually read your content.\"}),\"\\n\",n(a.li,{children:\"Nobody wants to look at this.\"}),\"\\n\",n(a.li,{children:\"I'm upset that we even have to bother styling this.\"}),\"\\n\"]}),\"\\n\"]}),\"\\n\"]}),\"\\n\",t(a.p,{children:[\"The most annoying thing about lists in Markdown is that \",n(a.code,{children:\"

  • \"}),\" elements aren't given a child \",n(a.code,{children:\"

    \"}),\" tag unless there are multiple paragraphs in the list item. That means I have to worry about styling that annoying situation too.\"]}),\"\\n\",t(a.ul,{children:[\"\\n\",t(a.li,{children:[\"\\n\",n(a.p,{children:n(a.strong,{children:\"For example, here's another nested list.\"})}),\"\\n\",n(a.p,{children:\"But this time with a second paragraph.\"}),\"\\n\",t(a.ul,{children:[\"\\n\",t(a.li,{children:[\"These list items won't have \",n(a.code,{children:\"

    \"}),\" tags\"]}),\"\\n\",n(a.li,{children:\"Because they are only one line each\"}),\"\\n\"]}),\"\\n\"]}),\"\\n\",t(a.li,{children:[\"\\n\",n(a.p,{children:n(a.strong,{children:\"But in this second top-level list item, they will.\"})}),\"\\n\",n(a.p,{children:\"This is especially annoying because of the spacing on this paragraph.\"}),\"\\n\",t(a.ul,{children:[\"\\n\",t(a.li,{children:[\"\\n\",t(a.p,{children:[\"As you can see here, because I've added a second line, this list item now has a \",n(a.code,{children:\"

    \"}),\" tag.\"]}),\"\\n\",n(a.p,{children:\"This is the second line I'm talking about by the way.\"}),\"\\n\"]}),\"\\n\",t(a.li,{children:[\"\\n\",n(a.p,{children:\"Finally here's another list item so it's more like a list.\"}),\"\\n\"]}),\"\\n\"]}),\"\\n\"]}),\"\\n\",t(a.li,{children:[\"\\n\",n(a.p,{children:\"A closing list item, but with no nested list, because why not?\"}),\"\\n\"]}),\"\\n\"]}),\"\\n\",n(a.p,{children:\"And finally a sentence to close off this section.\"}),\"\\n\",t(a.h2,{id:\"there-are-other-elements-we-need-to-style\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#there-are-other-elements-we-need-to-style\",children:n(a.span,{className:\"icon icon-link\"})}),\"There are other elements we need to style\"]}),\"\\n\",t(a.p,{children:[\"I almost forgot to mention links, like \",n(a.a,{href:\"https://tailwindcss.com\",children:\"this link to the Tailwind CSS website\"}),\". We almost made them blue but that's so yesterday, so we went with dark gray, feels edgier.\"]}),\"\\n\",n(a.p,{children:\"We even included table styles, check it out:\"}),\"\\n\",t(a.table,{children:[n(a.thead,{children:t(a.tr,{children:[n(a.th,{children:\"Wrestler\"}),n(a.th,{children:\"Origin\"}),n(a.th,{children:\"Finisher\"})]})}),t(a.tbody,{children:[t(a.tr,{children:[n(a.td,{children:'Bret \"The Hitman\" Hart'}),n(a.td,{children:\"Calgary, AB\"}),n(a.td,{children:\"Sharpshooter\"})]}),t(a.tr,{children:[n(a.td,{children:\"Stone Cold Steve Austin\"}),n(a.td,{children:\"Austin, TX\"}),n(a.td,{children:\"Stone Cold Stunner\"})]}),t(a.tr,{children:[n(a.td,{children:\"Randy Savage\"}),n(a.td,{children:\"Sarasota, FL\"}),n(a.td,{children:\"Elbow Drop\"})]}),t(a.tr,{children:[n(a.td,{children:\"Vader\"}),n(a.td,{children:\"Boulder, CO\"}),n(a.td,{children:\"Vader Bomb\"})]}),t(a.tr,{children:[n(a.td,{children:\"Razor Ramon\"}),n(a.td,{children:\"Chuluota, FL\"}),n(a.td,{children:\"Razor's Edge\"})]})]})]}),\"\\n\",t(a.p,{children:[\"We also need to make sure inline code looks good, like if I wanted to talk about \",n(a.code,{children:\"\"}),\" elements or tell you the good news about \",n(a.code,{children:\"@tailwindcss/typography\"}),\".\"]}),\"\\n\",t(a.h3,{id:\"sometimes-i-even-use-code-in-headings\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#sometimes-i-even-use-code-in-headings\",children:n(a.span,{className:\"icon icon-link\"})}),\"Sometimes I even use \",n(a.code,{children:\"code\"}),\" in headings\"]}),\"\\n\",t(a.p,{children:[\"Even though it's probably a bad idea, and historically I've had a hard time making it look good. This \",n(a.em,{children:'\"wrap the code blocks in backticks\"'}),\" trick works pretty well though really.\"]}),\"\\n\",t(a.p,{children:[\"Another thing I've done in the past is put a \",n(a.code,{children:\"code\"}),\" tag inside of a link, like if I wanted to tell you about the \",n(a.a,{href:\"https://github.com/tailwindcss/docs\",children:n(a.code,{children:\"tailwindcss/docs\"})}),\" repository. I don't love that there is an underline below the backticks but it is absolutely not worth the madness it would require to avoid it.\"]}),\"\\n\",t(a.h4,{id:\"we-havent-used-an-h4-yet\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#we-havent-used-an-h4-yet\",children:n(a.span,{className:\"icon icon-link\"})}),\"We haven't used an \",n(a.code,{children:\"h4\"}),\" yet\"]}),\"\\n\",t(a.p,{children:[\"But now we have. Please don't use \",n(a.code,{children:\"h5\"}),\" or \",n(a.code,{children:\"h6\"}),\" in your content, Medium only supports two heading levels for a reason, you animals. I honestly considered using a \",n(a.code,{children:\"before\"}),\" pseudo-element to scream at you if you use an \",n(a.code,{children:\"h5\"}),\" or \",n(a.code,{children:\"h6\"}),\".\"]}),\"\\n\",t(a.p,{children:[\"We don't style them at all out of the box because \",n(a.code,{children:\"h4\"}),\" elements are already so small that they are the same size as the body copy. What are we supposed to do with an \",n(a.code,{children:\"h5\"}),\", make it \",n(a.em,{children:\"smaller\"}),\" than the body copy? No thanks.\"]}),\"\\n\",t(a.h3,{id:\"we-still-need-to-think-about-stacked-headings-though\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#we-still-need-to-think-about-stacked-headings-though\",children:n(a.span,{className:\"icon icon-link\"})}),\"We still need to think about stacked headings though.\"]}),\"\\n\",t(a.h4,{id:\"lets-make-sure-we-dont-screw-that-up-with-h4-elements-either\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#lets-make-sure-we-dont-screw-that-up-with-h4-elements-either\",children:n(a.span,{className:\"icon icon-link\"})}),\"Let's make sure we don't screw that up with \",n(a.code,{children:\"h4\"}),\" elements, either.\"]}),\"\\n\",n(a.p,{children:\"Phew, with any luck we have styled the headings above this text and they look pretty good.\"}),\"\\n\",n(a.p,{children:\"Let's add a closing paragraph here so things end with a decently sized block of text. I can't explain why I want things to end that way but I have to assume it's because I think things will look weird or unbalanced if there is a heading too close to the end of the document.\"}),\"\\n\",n(a.p,{children:\"What I've written here is probably long enough, but adding this final sentence can't hurt.\"}),\"\\n\",t(a.h2,{id:\"github-flavored-markdown\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#github-flavored-markdown\",children:n(a.span,{className:\"icon icon-link\"})}),\"GitHub Flavored Markdown\"]}),\"\\n\",t(a.p,{children:[\"I've also added support for GitHub Flavored Mardown using \",n(a.code,{children:\"remark-gfm\"}),\".\"]}),\"\\n\",t(a.p,{children:[\"With \",n(a.code,{children:\"remark-gfm\"}),\", we get a few extra features in our markdown. Example: autolink literals.\"]}),\"\\n\",t(a.p,{children:[\"A link like \",n(a.a,{href:\"http://www.example.com\",children:\"www.example.com\"}),\" or \",n(a.a,{href:\"https://example.com\",children:\"https://example.com\"}),\" would automatically be converted into an \",n(a.code,{children:\"a\"}),\" tag.\"]}),\"\\n\",t(a.p,{children:[\"This works for email links too: \",n(a.a,{href:\"mailto:contact@example.com\",children:\"contact@example.com\"}),\".\"]})]})}return{default:function(e={}){const{wrapper:t}=e.components||{};return t?n(t,{...e,children:n(_createMdxContent,{...e})}):_createMdxContent(e)}};function _missingMdxReference(e,n){throw new Error(\"Expected \"+(n?\"component\":\"object\")+\" `\"+e+\"` to be defined: you likely forgot to import, pass, or provide it.\")}", - "slug": "/D:\\Coding\\forks\\taxonomy\\content\\guides\\using-next-auth-next-13", - "slugAsParams": "" - } -] \ No newline at end of file diff --git a/.velite/index.d.ts b/.velite/index.d.ts deleted file mode 100644 index f0610d25e..000000000 --- a/.velite/index.d.ts +++ /dev/null @@ -1,20 +0,0 @@ -// This file is generated by Velite - -import config from '../velite.config' - -type Collections = typeof config.collections - -export type Page = Collections['pages']['schema']['_output'] -export declare const pages: Page[] - -export type Author = Collections['authors']['schema']['_output'] -export declare const authors: Author[] - -export type Post = Collections['posts']['schema']['_output'] -export declare const posts: Post[] - -export type Guide = Collections['guides']['schema']['_output'] -export declare const guides: Guide[] - -export type Doc = Collections['docs']['schema']['_output'] -export declare const docs: Doc[] diff --git a/.velite/index.js b/.velite/index.js deleted file mode 100644 index 02301a271..000000000 --- a/.velite/index.js +++ /dev/null @@ -1,7 +0,0 @@ -// This file is generated by Velite - -export { default as pages } from './pages.json' -export { default as authors } from './authors.json' -export { default as posts } from './posts.json' -export { default as guides } from './guides.json' -export { default as docs } from './docs.json' \ No newline at end of file diff --git a/.velite/pages.json b/.velite/pages.json deleted file mode 100644 index 4415849ff..000000000 --- a/.velite/pages.json +++ /dev/null @@ -1,16 +0,0 @@ -[ - { - "title": "Privacy", - "description": "The Privacy Policy for Taxonomy App.", - "body": "const{Fragment:e,jsx:i,jsxs:n}=arguments[0];function _createMdxContent(a){const t={a:\"a\",h2:\"h2\",p:\"p\",span:\"span\",...a.components};return n(e,{children:[i(t.p,{children:\"Blandit libero volutpat sed cras ornare arcu. Cursus sit amet dictum sit amet. Nunc vel risus commodo viverra maecenas accumsan. Libero id faucibus nisl tincidunt eget nullam non nisi est. Varius quam quisque id diam vel quam. Id donec ultrices tincidunt arcu non.\"}),\"\\n\",n(t.h2,{id:\"consent\",children:[i(t.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#consent\",children:i(t.span,{className:\"icon icon-link\"})}),\"Consent\"]}),\"\\n\",i(t.p,{children:\"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Volutpat sed cras ornare arcu. Nibh ipsum consequat nisl vel pretium lectus quam id leo. A arcu cursus vitae congue. Amet justo donec enim diam. Vel pharetra vel turpis nunc eget lorem. Gravida quis blandit turpis cursus in. Semper auctor neque vitae tempus. Elementum facilisis leo vel fringilla est ullamcorper eget nulla. Imperdiet nulla malesuada pellentesque elit eget.\"}),\"\\n\",i(t.p,{children:\"Felis donec et odio pellentesque diam volutpat commodo sed.\"}),\"\\n\",i(t.p,{children:\"Tortor consequat id porta nibh. Fames ac turpis egestas maecenas pharetra convallis posuere morbi leo. Scelerisque fermentum dui faucibus in. Tortor posuere ac ut consequat semper viverra.\"}),\"\\n\",n(t.h2,{id:\"information-we-collect\",children:[i(t.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#information-we-collect\",children:i(t.span,{className:\"icon icon-link\"})}),\"Information we collect\"]}),\"\\n\",i(t.p,{children:\"Amet justo donec enim diam. In hendrerit gravida rutrum quisque non. Hac habitasse platea dictumst quisque sagittis purus sit.\"}),\"\\n\",n(t.h2,{id:\"how-we-use-your-information\",children:[i(t.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#how-we-use-your-information\",children:i(t.span,{className:\"icon icon-link\"})}),\"How we use your Information\"]}),\"\\n\",i(t.p,{children:\"Ut sem nulla pharetra diam sit amet nisl suscipit adipiscing. Consectetur adipiscing elit pellentesque habitant. Ut tristique et egestas quis ipsum suspendisse ultrices gravida.\"})]})}return{default:function(e={}){const{wrapper:n}=e.components||{};return n?i(n,{...e,children:i(_createMdxContent,{...e})}):_createMdxContent(e)}};", - "slug": "/D:\\Coding\\forks\\taxonomy\\content\\pages\\privacy", - "slugAsParams": "" - }, - { - "title": "Terms & Conditions", - "description": "Read our terms and conditions.", - "body": "const{Fragment:e,jsx:i,jsxs:a}=arguments[0];function _createMdxContent(s){const n={a:\"a\",h2:\"h2\",p:\"p\",span:\"span\",...s.components};return a(e,{children:[i(n.p,{children:\"Lorem ipsumMagna fermentum iaculis eu non diam. Vitae purus faucibus ornare suspendisse sed nisi lacus sed. In nibh mauris cursus mattis molestie a iaculis at. Enim sit amet venenatis urna. Eget sit amet tellus cras adipiscing.\"}),\"\\n\",a(n.h2,{id:\"legal-notices\",children:[i(n.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#legal-notices\",children:i(n.span,{className:\"icon icon-link\"})}),\"Legal Notices\"]}),\"\\n\",i(n.p,{children:\"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Volutpat sed cras ornare arcu. Nibh ipsum consequat nisl vel pretium lectus quam id leo. A arcu cursus vitae congue. Amet justo donec enim diam. Vel pharetra vel turpis nunc eget lorem. Gravida quis blandit turpis cursus in. Semper auctor neque vitae tempus. Elementum facilisis leo vel fringilla est ullamcorper eget nulla. Imperdiet nulla malesuada pellentesque elit eget.\"}),\"\\n\",i(n.p,{children:\"Felis donec et odio pellentesque diam volutpat commodo sed.\"}),\"\\n\",i(n.p,{children:\"Tortor consequat id porta nibh. Fames ac turpis egestas maecenas pharetra convallis posuere morbi leo. Scelerisque fermentum dui faucibus in. Tortor posuere ac ut consequat semper viverra.\"}),\"\\n\",a(n.h2,{id:\"warranty-disclaimer\",children:[i(n.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#warranty-disclaimer\",children:i(n.span,{className:\"icon icon-link\"})}),\"Warranty Disclaimer\"]}),\"\\n\",i(n.p,{children:\"Tellus in hac habitasse platea dictumst vestibulum. Faucibus in ornare quam viverra. Viverra aliquet eget sit amet tellus cras adipiscing. Erat nam at lectus urna duis convallis convallis tellus. Bibendum est ultricies integer quis auctor elit sed vulputate.\"}),\"\\n\",i(n.p,{children:\"Nisl condimentum id venenatis a condimentum vitae. Ac auctor augue mauris augue neque gravida in fermentum. Arcu felis bibendum ut tristique. Tempor commodo ullamcorper a lacus vestibulum sed arcu non.\"}),\"\\n\",a(n.h2,{id:\"general\",children:[i(n.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#general\",children:i(n.span,{className:\"icon icon-link\"})}),\"General\"]}),\"\\n\",i(n.p,{children:\"Magna fermentum iaculis eu non diam. Vitae purus faucibus ornare suspendisse sed nisi lacus sed. In nibh mauris cursus mattis molestie a iaculis at. Enim sit amet venenatis urna. Eget sit amet tellus cras adipiscing.\"}),\"\\n\",i(n.p,{children:\"Sed lectus vestibulum mattis ullamcorper velit. Id diam vel quam elementum pulvinar. In iaculis nunc sed augue lacus viverra. In hendrerit gravida rutrum quisque non tellus. Nisl purus in mollis nunc.\"}),\"\\n\",a(n.h2,{id:\"disclaimer\",children:[i(n.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#disclaimer\",children:i(n.span,{className:\"icon icon-link\"})}),\"Disclaimer\"]}),\"\\n\",i(n.p,{children:\"Amet justo donec enim diam. In hendrerit gravida rutrum quisque non. Hac habitasse platea dictumst quisque sagittis purus sit. Faucibus ornare suspendisse sed nisi lacus. Nulla porttitor massa id neque aliquam vestibulum. Ante in nibh mauris cursus mattis molestie a. Mi tempus imperdiet nulla malesuada.\"})]})}return{default:function(e={}){const{wrapper:a}=e.components||{};return a?i(a,{...e,children:i(_createMdxContent,{...e})}):_createMdxContent(e)}};", - "slug": "/D:\\Coding\\forks\\taxonomy\\content\\pages\\terms", - "slugAsParams": "" - } -] \ No newline at end of file diff --git a/.velite/posts.json b/.velite/posts.json deleted file mode 100644 index a0a16aaf3..000000000 --- a/.velite/posts.json +++ /dev/null @@ -1,54 +0,0 @@ -[ - { - "title": "Deploying Next.js Apps", - "description": "How to deploy your Next.js apps on Vercel.", - "date": "2023-01-02T00:00:00.000Z", - "published": true, - "image": "/images/blog/blog-post-3.jpg", - "authors": [ - "shadcn" - ], - "body": "const{Fragment:e,jsx:n,jsxs:t}=arguments[0];function _createMdxContent(i){const a={a:\"a\",blockquote:\"blockquote\",code:\"code\",em:\"em\",figure:\"figure\",h2:\"h2\",h3:\"h3\",h4:\"h4\",hr:\"hr\",li:\"li\",ol:\"ol\",p:\"p\",pre:\"pre\",span:\"span\",strong:\"strong\",table:\"table\",tbody:\"tbody\",td:\"td\",th:\"th\",thead:\"thead\",tr:\"tr\",ul:\"ul\",...i.components},{Callout:o,Image:l}=a;return o||_missingMdxReference(\"Callout\",!0),l||_missingMdxReference(\"Image\",!0),t(e,{children:[n(o,{children:t(a.p,{children:[\"The text below is from the \",n(a.a,{href:\"https://play.tailwindcss.com/uj1vGACRJA?layout=preview\",children:\"Tailwind\\nCSS\"}),\" docs. I copied it\\nhere to test the markdown styles. \",n(a.strong,{children:\"Tailwind is awesome. You should use it.\"})]})}),\"\\n\",n(a.p,{children:\"Until now, trying to style an article, document, or blog post with Tailwind has been a tedious task that required a keen eye for typography and a lot of complex custom CSS.\"}),\"\\n\",t(a.p,{children:[\"By default, Tailwind removes all of the default browser styling from paragraphs, headings, lists and more. This ends up being really useful for building application UIs because you spend less time undoing user-agent styles, but when you \",n(a.em,{children:\"really are\"}),\" just trying to style some content that came from a rich-text editor in a CMS or a markdown file, it can be surprising and unintuitive.\"]}),\"\\n\",n(a.p,{children:\"We get lots of complaints about it actually, with people regularly asking us things like:\"}),\"\\n\",t(a.blockquote,{children:[\"\\n\",t(a.p,{children:[\"Why is Tailwind removing the default styles on my \",n(a.code,{children:\"h1\"}),\" elements? How do I disable this? What do you mean I lose all the other base styles too?\\nWe hear you, but we're not convinced that simply disabling our base styles is what you really want. You don't want to have to remove annoying margins every time you use a \",n(a.code,{children:\"p\"}),\" element in a piece of your dashboard UI. And I doubt you really want your blog posts to use the user-agent styles either — you want them to look \",n(a.em,{children:\"awesome\"}),\", not awful.\"]}),\"\\n\"]}),\"\\n\",t(a.p,{children:[\"The \",n(a.code,{children:\"@tailwindcss/typography\"}),\" plugin is our attempt to give you what you \",n(a.em,{children:\"actually\"}),\" want, without any of the downsides of doing something stupid like disabling our base styles.\"]}),\"\\n\",t(a.p,{children:[\"It adds a new \",n(a.code,{children:\"prose\"}),\" class that you can slap on any block of vanilla HTML content and turn it into a beautiful, well-formatted document:\"]}),\"\\n\",n(a.figure,{\"data-rehype-pretty-code-figure\":\"\",children:n(a.pre,{style:{backgroundColor:\"#24292e\",color:\"#e1e4e8\"},tabIndex:\"0\",\"data-language\":\"html\",\"data-theme\":\"github-dark\",children:t(a.code,{\"data-language\":\"html\",\"data-theme\":\"github-dark\",style:{display:\"grid\"},children:[t(a.span,{\"data-line\":\"\",children:[n(a.span,{style:{color:\"#E1E4E8\"},children:\"<\"}),n(a.span,{style:{color:\"#85E89D\"},children:\"article\"}),n(a.span,{style:{color:\"#B392F0\"},children:\" class\"}),n(a.span,{style:{color:\"#E1E4E8\"},children:\"=\"}),n(a.span,{style:{color:\"#9ECBFF\"},children:'\"prose\"'}),n(a.span,{style:{color:\"#E1E4E8\"},children:\">\"})]}),\"\\n\",t(a.span,{\"data-line\":\"\",children:[n(a.span,{style:{color:\"#E1E4E8\"},children:\" <\"}),n(a.span,{style:{color:\"#85E89D\"},children:\"h1\"}),n(a.span,{style:{color:\"#E1E4E8\"},children:\">Garlic bread with cheese: What the science tells us\"})]}),\"\\n\",t(a.span,{\"data-line\":\"\",children:[n(a.span,{style:{color:\"#E1E4E8\"},children:\" <\"}),n(a.span,{style:{color:\"#85E89D\"},children:\"p\"}),n(a.span,{style:{color:\"#E1E4E8\"},children:\">\"})]}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" For years parents have espoused the health benefits of eating garlic bread\"})}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" with cheese to their children, with the food earning such an iconic status\"})}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" in our culture that kids will often dress up as warm, cheesy loaf for\"})}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" Halloween.\"})}),\"\\n\",t(a.span,{\"data-line\":\"\",children:[n(a.span,{style:{color:\"#E1E4E8\"},children:\" \"})]}),\"\\n\",t(a.span,{\"data-line\":\"\",children:[n(a.span,{style:{color:\"#E1E4E8\"},children:\" <\"}),n(a.span,{style:{color:\"#85E89D\"},children:\"p\"}),n(a.span,{style:{color:\"#E1E4E8\"},children:\">\"})]}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" But a recent study shows that the celebrated appetizer may be linked to a\"})}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" series of rabies cases springing up around the country.\"})}),\"\\n\",t(a.span,{\"data-line\":\"\",children:[n(a.span,{style:{color:\"#E1E4E8\"},children:\" \"})]}),\"\\n\",t(a.span,{\"data-line\":\"\",children:[n(a.span,{style:{color:\"#E1E4E8\"},children:\"\"})]})]})})}),\"\\n\",t(a.p,{children:[\"For more information about how to use the plugin and the features it includes, \",n(a.a,{href:\"https://github.com/tailwindcss/typography/blob/master/README.md\",children:\"read the documentation\"}),\".\"]}),\"\\n\",n(a.hr,{}),\"\\n\",t(a.h2,{id:\"what-to-expect-from-here-on-out\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#what-to-expect-from-here-on-out\",children:n(a.span,{className:\"icon icon-link\"})}),\"What to expect from here on out\"]}),\"\\n\",t(a.p,{children:[\"What follows from here is just a bunch of absolute nonsense I've written to dogfood the plugin itself. It includes every sensible typographic element I could think of, like \",n(a.strong,{children:\"bold text\"}),\", unordered lists, ordered lists, code blocks, block quotes, \",n(a.em,{children:\"and even italics\"}),\".\"]}),\"\\n\",n(a.p,{children:\"It's important to cover all of these use cases for a few reasons:\"}),\"\\n\",t(a.ol,{children:[\"\\n\",n(a.li,{children:\"We want everything to look good out of the box.\"}),\"\\n\",n(a.li,{children:\"Really just the first reason, that's the whole point of the plugin.\"}),\"\\n\",n(a.li,{children:\"Here's a third pretend reason though a list with three items looks more realistic than a list with two items.\"}),\"\\n\"]}),\"\\n\",n(a.p,{children:\"Now we're going to try out another header style.\"}),\"\\n\",t(a.h3,{id:\"typography-should-be-easy\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#typography-should-be-easy\",children:n(a.span,{className:\"icon icon-link\"})}),\"Typography should be easy\"]}),\"\\n\",n(a.p,{children:\"So that's a header for you — with any luck if we've done our job correctly that will look pretty reasonable.\"}),\"\\n\",n(a.p,{children:\"Something a wise person once told me about typography is:\"}),\"\\n\",t(a.blockquote,{children:[\"\\n\",n(a.p,{children:\"Typography is pretty important if you don't want your stuff to look like trash. Make it good then it won't be bad.\"}),\"\\n\"]}),\"\\n\",n(a.p,{children:\"It's probably important that images look okay here by default as well:\"}),\"\\n\",n(l,{src:\"/images/blog/blog-post-4.jpg\",width:\"718\",height:\"404\",alt:\"Image\"}),\"\\n\",n(a.p,{children:\"Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old.\"}),\"\\n\",n(a.p,{children:\"Now I'm going to show you an example of an unordered list to make sure that looks good, too:\"}),\"\\n\",t(a.ul,{children:[\"\\n\",n(a.li,{children:\"So here is the first item in this list.\"}),\"\\n\",n(a.li,{children:\"In this example we're keeping the items short.\"}),\"\\n\",n(a.li,{children:\"Later, we'll use longer, more complex list items.\"}),\"\\n\"]}),\"\\n\",n(a.p,{children:\"And that's the end of this section.\"}),\"\\n\",t(a.h2,{id:\"what-if-we-stack-headings\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#what-if-we-stack-headings\",children:n(a.span,{className:\"icon icon-link\"})}),\"What if we stack headings?\"]}),\"\\n\",t(a.h3,{id:\"we-should-make-sure-that-looks-good-too\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#we-should-make-sure-that-looks-good-too\",children:n(a.span,{className:\"icon icon-link\"})}),\"We should make sure that looks good, too.\"]}),\"\\n\",n(a.p,{children:\"Sometimes you have headings directly underneath each other. In those cases you often have to undo the top margin on the second heading because it usually looks better for the headings to be closer together than a paragraph followed by a heading should be.\"}),\"\\n\",t(a.h3,{id:\"when-a-heading-comes-after-a-paragraph-\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#when-a-heading-comes-after-a-paragraph-\",children:n(a.span,{className:\"icon icon-link\"})}),\"When a heading comes after a paragraph …\"]}),\"\\n\",n(a.p,{children:\"When a heading comes after a paragraph, we need a bit more space, like I already mentioned above. Now let's see what a more complex list would look like.\"}),\"\\n\",t(a.ul,{children:[\"\\n\",t(a.li,{children:[\"\\n\",n(a.p,{children:n(a.strong,{children:\"I often do this thing where list items have headings.\"})}),\"\\n\",n(a.p,{children:\"For some reason I think this looks cool which is unfortunate because it's pretty annoying to get the styles right.\"}),\"\\n\",n(a.p,{children:\"I often have two or three paragraphs in these list items, too, so the hard part is getting the spacing between the paragraphs, list item heading, and separate list items to all make sense. Pretty tough honestly, you could make a strong argument that you just shouldn't write this way.\"}),\"\\n\"]}),\"\\n\",t(a.li,{children:[\"\\n\",n(a.p,{children:n(a.strong,{children:\"Since this is a list, I need at least two items.\"})}),\"\\n\",n(a.p,{children:\"I explained what I'm doing already in the previous list item, but a list wouldn't be a list if it only had one item, and we really want this to look realistic. That's why I've added this second list item so I actually have something to look at when writing the styles.\"}),\"\\n\"]}),\"\\n\",t(a.li,{children:[\"\\n\",n(a.p,{children:n(a.strong,{children:\"It's not a bad idea to add a third item either.\"})}),\"\\n\",n(a.p,{children:\"I think it probably would've been fine to just use two items but three is definitely not worse, and since I seem to be having no trouble making up arbitrary things to type, I might as well include it.\"}),\"\\n\"]}),\"\\n\"]}),\"\\n\",n(a.p,{children:\"After this sort of list I usually have a closing statement or paragraph, because it kinda looks weird jumping right to a heading.\"}),\"\\n\",t(a.h2,{id:\"code-should-look-okay-by-default\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#code-should-look-okay-by-default\",children:n(a.span,{className:\"icon icon-link\"})}),\"Code should look okay by default.\"]}),\"\\n\",t(a.p,{children:[\"I think most people are going to use \",n(a.a,{href:\"https://highlightjs.org/\",children:\"highlight.js\"}),\" or \",n(a.a,{href:\"https://prismjs.com/\",children:\"Prism\"}),\" or something if they want to style their code blocks but it wouldn't hurt to make them look \",n(a.em,{children:\"okay\"}),\" out of the box, even with no syntax highlighting.\"]}),\"\\n\",t(a.p,{children:[\"Here's what a default \",n(a.code,{children:\"tailwind.config.js\"}),\" file looks like at the time of writing:\"]}),\"\\n\",n(a.figure,{\"data-rehype-pretty-code-figure\":\"\",children:n(a.pre,{style:{backgroundColor:\"#24292e\",color:\"#e1e4e8\"},tabIndex:\"0\",\"data-language\":\"js\",\"data-theme\":\"github-dark\",children:t(a.code,{\"data-language\":\"js\",\"data-theme\":\"github-dark\",style:{display:\"grid\"},children:[t(a.span,{\"data-line\":\"\",children:[n(a.span,{style:{color:\"#79B8FF\"},children:\"module\"}),n(a.span,{style:{color:\"#E1E4E8\"},children:\".\"}),n(a.span,{style:{color:\"#79B8FF\"},children:\"exports\"}),n(a.span,{style:{color:\"#F97583\"},children:\" =\"}),n(a.span,{style:{color:\"#E1E4E8\"},children:\" {\"})]}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" purge: [],\"})}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" theme: {\"})}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" extend: {},\"})}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" },\"})}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" variants: {},\"})}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" plugins: [],\"})}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\"}\"})})]})})}),\"\\n\",n(a.p,{children:\"Hopefully that looks good enough to you.\"}),\"\\n\",t(a.h3,{id:\"what-about-nested-lists\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#what-about-nested-lists\",children:n(a.span,{className:\"icon icon-link\"})}),\"What about nested lists?\"]}),\"\\n\",n(a.p,{children:\"Nested lists basically always look bad which is why editors like Medium don't even let you do it, but I guess since some of you goofballs are going to do it we have to carry the burden of at least making it work.\"}),\"\\n\",t(a.ol,{children:[\"\\n\",t(a.li,{children:[n(a.strong,{children:\"Nested lists are rarely a good idea.\"}),\"\\n\",t(a.ul,{children:[\"\\n\",n(a.li,{children:'You might feel like you are being really \"organized\" or something but you are just creating a gross shape on the screen that is hard to read.'}),\"\\n\",n(a.li,{children:\"Nested navigation in UIs is a bad idea too, keep things as flat as possible.\"}),\"\\n\",n(a.li,{children:\"Nesting tons of folders in your source code is also not helpful.\"}),\"\\n\"]}),\"\\n\"]}),\"\\n\",t(a.li,{children:[n(a.strong,{children:\"Since we need to have more items, here's another one.\"}),\"\\n\",t(a.ul,{children:[\"\\n\",n(a.li,{children:\"I'm not sure if we'll bother styling more than two levels deep.\"}),\"\\n\",n(a.li,{children:\"Two is already too much, three is guaranteed to be a bad idea.\"}),\"\\n\",n(a.li,{children:\"If you nest four levels deep you belong in prison.\"}),\"\\n\"]}),\"\\n\"]}),\"\\n\",t(a.li,{children:[n(a.strong,{children:\"Two items isn't really a list, three is good though.\"}),\"\\n\",t(a.ul,{children:[\"\\n\",n(a.li,{children:\"Again please don't nest lists if you want people to actually read your content.\"}),\"\\n\",n(a.li,{children:\"Nobody wants to look at this.\"}),\"\\n\",n(a.li,{children:\"I'm upset that we even have to bother styling this.\"}),\"\\n\"]}),\"\\n\"]}),\"\\n\"]}),\"\\n\",t(a.p,{children:[\"The most annoying thing about lists in Markdown is that \",n(a.code,{children:\"

  • \"}),\" elements aren't given a child \",n(a.code,{children:\"

    \"}),\" tag unless there are multiple paragraphs in the list item. That means I have to worry about styling that annoying situation too.\"]}),\"\\n\",t(a.ul,{children:[\"\\n\",t(a.li,{children:[\"\\n\",n(a.p,{children:n(a.strong,{children:\"For example, here's another nested list.\"})}),\"\\n\",n(a.p,{children:\"But this time with a second paragraph.\"}),\"\\n\",t(a.ul,{children:[\"\\n\",t(a.li,{children:[\"These list items won't have \",n(a.code,{children:\"

    \"}),\" tags\"]}),\"\\n\",n(a.li,{children:\"Because they are only one line each\"}),\"\\n\"]}),\"\\n\"]}),\"\\n\",t(a.li,{children:[\"\\n\",n(a.p,{children:n(a.strong,{children:\"But in this second top-level list item, they will.\"})}),\"\\n\",n(a.p,{children:\"This is especially annoying because of the spacing on this paragraph.\"}),\"\\n\",t(a.ul,{children:[\"\\n\",t(a.li,{children:[\"\\n\",t(a.p,{children:[\"As you can see here, because I've added a second line, this list item now has a \",n(a.code,{children:\"

    \"}),\" tag.\"]}),\"\\n\",n(a.p,{children:\"This is the second line I'm talking about by the way.\"}),\"\\n\"]}),\"\\n\",t(a.li,{children:[\"\\n\",n(a.p,{children:\"Finally here's another list item so it's more like a list.\"}),\"\\n\"]}),\"\\n\"]}),\"\\n\"]}),\"\\n\",t(a.li,{children:[\"\\n\",n(a.p,{children:\"A closing list item, but with no nested list, because why not?\"}),\"\\n\"]}),\"\\n\"]}),\"\\n\",n(a.p,{children:\"And finally a sentence to close off this section.\"}),\"\\n\",t(a.h2,{id:\"there-are-other-elements-we-need-to-style\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#there-are-other-elements-we-need-to-style\",children:n(a.span,{className:\"icon icon-link\"})}),\"There are other elements we need to style\"]}),\"\\n\",t(a.p,{children:[\"I almost forgot to mention links, like \",n(a.a,{href:\"https://tailwindcss.com\",children:\"this link to the Tailwind CSS website\"}),\". We almost made them blue but that's so yesterday, so we went with dark gray, feels edgier.\"]}),\"\\n\",n(a.p,{children:\"We even included table styles, check it out:\"}),\"\\n\",t(a.table,{children:[n(a.thead,{children:t(a.tr,{children:[n(a.th,{children:\"Wrestler\"}),n(a.th,{children:\"Origin\"}),n(a.th,{children:\"Finisher\"})]})}),t(a.tbody,{children:[t(a.tr,{children:[n(a.td,{children:'Bret \"The Hitman\" Hart'}),n(a.td,{children:\"Calgary, AB\"}),n(a.td,{children:\"Sharpshooter\"})]}),t(a.tr,{children:[n(a.td,{children:\"Stone Cold Steve Austin\"}),n(a.td,{children:\"Austin, TX\"}),n(a.td,{children:\"Stone Cold Stunner\"})]}),t(a.tr,{children:[n(a.td,{children:\"Randy Savage\"}),n(a.td,{children:\"Sarasota, FL\"}),n(a.td,{children:\"Elbow Drop\"})]}),t(a.tr,{children:[n(a.td,{children:\"Vader\"}),n(a.td,{children:\"Boulder, CO\"}),n(a.td,{children:\"Vader Bomb\"})]}),t(a.tr,{children:[n(a.td,{children:\"Razor Ramon\"}),n(a.td,{children:\"Chuluota, FL\"}),n(a.td,{children:\"Razor's Edge\"})]})]})]}),\"\\n\",t(a.p,{children:[\"We also need to make sure inline code looks good, like if I wanted to talk about \",n(a.code,{children:\"\"}),\" elements or tell you the good news about \",n(a.code,{children:\"@tailwindcss/typography\"}),\".\"]}),\"\\n\",t(a.h3,{id:\"sometimes-i-even-use-code-in-headings\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#sometimes-i-even-use-code-in-headings\",children:n(a.span,{className:\"icon icon-link\"})}),\"Sometimes I even use \",n(a.code,{children:\"code\"}),\" in headings\"]}),\"\\n\",t(a.p,{children:[\"Even though it's probably a bad idea, and historically I've had a hard time making it look good. This \",n(a.em,{children:'\"wrap the code blocks in backticks\"'}),\" trick works pretty well though really.\"]}),\"\\n\",t(a.p,{children:[\"Another thing I've done in the past is put a \",n(a.code,{children:\"code\"}),\" tag inside of a link, like if I wanted to tell you about the \",n(a.a,{href:\"https://github.com/tailwindcss/docs\",children:n(a.code,{children:\"tailwindcss/docs\"})}),\" repository. I don't love that there is an underline below the backticks but it is absolutely not worth the madness it would require to avoid it.\"]}),\"\\n\",t(a.h4,{id:\"we-havent-used-an-h4-yet\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#we-havent-used-an-h4-yet\",children:n(a.span,{className:\"icon icon-link\"})}),\"We haven't used an \",n(a.code,{children:\"h4\"}),\" yet\"]}),\"\\n\",t(a.p,{children:[\"But now we have. Please don't use \",n(a.code,{children:\"h5\"}),\" or \",n(a.code,{children:\"h6\"}),\" in your content, Medium only supports two heading levels for a reason, you animals. I honestly considered using a \",n(a.code,{children:\"before\"}),\" pseudo-element to scream at you if you use an \",n(a.code,{children:\"h5\"}),\" or \",n(a.code,{children:\"h6\"}),\".\"]}),\"\\n\",t(a.p,{children:[\"We don't style them at all out of the box because \",n(a.code,{children:\"h4\"}),\" elements are already so small that they are the same size as the body copy. What are we supposed to do with an \",n(a.code,{children:\"h5\"}),\", make it \",n(a.em,{children:\"smaller\"}),\" than the body copy? No thanks.\"]}),\"\\n\",t(a.h3,{id:\"we-still-need-to-think-about-stacked-headings-though\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#we-still-need-to-think-about-stacked-headings-though\",children:n(a.span,{className:\"icon icon-link\"})}),\"We still need to think about stacked headings though.\"]}),\"\\n\",t(a.h4,{id:\"lets-make-sure-we-dont-screw-that-up-with-h4-elements-either\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#lets-make-sure-we-dont-screw-that-up-with-h4-elements-either\",children:n(a.span,{className:\"icon icon-link\"})}),\"Let's make sure we don't screw that up with \",n(a.code,{children:\"h4\"}),\" elements, either.\"]}),\"\\n\",n(a.p,{children:\"Phew, with any luck we have styled the headings above this text and they look pretty good.\"}),\"\\n\",n(a.p,{children:\"Let's add a closing paragraph here so things end with a decently sized block of text. I can't explain why I want things to end that way but I have to assume it's because I think things will look weird or unbalanced if there is a heading too close to the end of the document.\"}),\"\\n\",n(a.p,{children:\"What I've written here is probably long enough, but adding this final sentence can't hurt.\"}),\"\\n\",t(a.h2,{id:\"github-flavored-markdown\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#github-flavored-markdown\",children:n(a.span,{className:\"icon icon-link\"})}),\"GitHub Flavored Markdown\"]}),\"\\n\",t(a.p,{children:[\"I've also added support for GitHub Flavored Mardown using \",n(a.code,{children:\"remark-gfm\"}),\".\"]}),\"\\n\",t(a.p,{children:[\"With \",n(a.code,{children:\"remark-gfm\"}),\", we get a few extra features in our markdown. Example: autolink literals.\"]}),\"\\n\",t(a.p,{children:[\"A link like \",n(a.a,{href:\"http://www.example.com\",children:\"www.example.com\"}),\" or \",n(a.a,{href:\"https://example.com\",children:\"https://example.com\"}),\" would automatically be converted into an \",n(a.code,{children:\"a\"}),\" tag.\"]}),\"\\n\",t(a.p,{children:[\"This works for email links too: \",n(a.a,{href:\"mailto:contact@example.com\",children:\"contact@example.com\"}),\".\"]})]})}return{default:function(e={}){const{wrapper:t}=e.components||{};return t?n(t,{...e,children:n(_createMdxContent,{...e})}):_createMdxContent(e)}};function _missingMdxReference(e,n){throw new Error(\"Expected \"+(n?\"component\":\"object\")+\" `\"+e+\"` to be defined: you likely forgot to import, pass, or provide it.\")}", - "slug": "/D:\\Coding\\forks\\taxonomy\\content\\blog\\deploying-next-apps", - "slugAsParams": "" - }, - { - "title": "Dynamic Routing and Static Regeneration", - "description": "How to use incremental static regeneration using dynamic routes.", - "date": "2023-03-04T00:00:00.000Z", - "published": true, - "image": "/images/blog/blog-post-2.jpg", - "authors": [ - "shadcn" - ], - "body": "const{Fragment:e,jsx:n,jsxs:t}=arguments[0];function _createMdxContent(i){const a={a:\"a\",blockquote:\"blockquote\",code:\"code\",em:\"em\",figure:\"figure\",h2:\"h2\",h3:\"h3\",h4:\"h4\",hr:\"hr\",li:\"li\",ol:\"ol\",p:\"p\",pre:\"pre\",span:\"span\",strong:\"strong\",table:\"table\",tbody:\"tbody\",td:\"td\",th:\"th\",thead:\"thead\",tr:\"tr\",ul:\"ul\",...i.components},{Callout:o,Image:l}=a;return o||_missingMdxReference(\"Callout\",!0),l||_missingMdxReference(\"Image\",!0),t(e,{children:[n(o,{children:t(a.p,{children:[\"The text below is from the \",n(a.a,{href:\"https://play.tailwindcss.com/uj1vGACRJA?layout=preview\",children:\"Tailwind\\nCSS\"}),\" docs. I copied it\\nhere to test the markdown styles. \",n(a.strong,{children:\"Tailwind is awesome. You should use it.\"})]})}),\"\\n\",n(a.p,{children:\"Until now, trying to style an article, document, or blog post with Tailwind has been a tedious task that required a keen eye for typography and a lot of complex custom CSS.\"}),\"\\n\",t(a.p,{children:[\"By default, Tailwind removes all of the default browser styling from paragraphs, headings, lists and more. This ends up being really useful for building application UIs because you spend less time undoing user-agent styles, but when you \",n(a.em,{children:\"really are\"}),\" just trying to style some content that came from a rich-text editor in a CMS or a markdown file, it can be surprising and unintuitive.\"]}),\"\\n\",n(a.p,{children:\"We get lots of complaints about it actually, with people regularly asking us things like:\"}),\"\\n\",t(a.blockquote,{children:[\"\\n\",t(a.p,{children:[\"Why is Tailwind removing the default styles on my \",n(a.code,{children:\"h1\"}),\" elements? How do I disable this? What do you mean I lose all the other base styles too?\\nWe hear you, but we're not convinced that simply disabling our base styles is what you really want. You don't want to have to remove annoying margins every time you use a \",n(a.code,{children:\"p\"}),\" element in a piece of your dashboard UI. And I doubt you really want your blog posts to use the user-agent styles either — you want them to look \",n(a.em,{children:\"awesome\"}),\", not awful.\"]}),\"\\n\"]}),\"\\n\",t(a.p,{children:[\"The \",n(a.code,{children:\"@tailwindcss/typography\"}),\" plugin is our attempt to give you what you \",n(a.em,{children:\"actually\"}),\" want, without any of the downsides of doing something stupid like disabling our base styles.\"]}),\"\\n\",t(a.p,{children:[\"It adds a new \",n(a.code,{children:\"prose\"}),\" class that you can slap on any block of vanilla HTML content and turn it into a beautiful, well-formatted document:\"]}),\"\\n\",n(a.figure,{\"data-rehype-pretty-code-figure\":\"\",children:n(a.pre,{style:{backgroundColor:\"#24292e\",color:\"#e1e4e8\"},tabIndex:\"0\",\"data-language\":\"html\",\"data-theme\":\"github-dark\",children:t(a.code,{\"data-language\":\"html\",\"data-theme\":\"github-dark\",style:{display:\"grid\"},children:[t(a.span,{\"data-line\":\"\",children:[n(a.span,{style:{color:\"#E1E4E8\"},children:\"<\"}),n(a.span,{style:{color:\"#85E89D\"},children:\"article\"}),n(a.span,{style:{color:\"#B392F0\"},children:\" class\"}),n(a.span,{style:{color:\"#E1E4E8\"},children:\"=\"}),n(a.span,{style:{color:\"#9ECBFF\"},children:'\"prose\"'}),n(a.span,{style:{color:\"#E1E4E8\"},children:\">\"})]}),\"\\n\",t(a.span,{\"data-line\":\"\",children:[n(a.span,{style:{color:\"#E1E4E8\"},children:\" <\"}),n(a.span,{style:{color:\"#85E89D\"},children:\"h1\"}),n(a.span,{style:{color:\"#E1E4E8\"},children:\">Garlic bread with cheese: What the science tells us\"})]}),\"\\n\",t(a.span,{\"data-line\":\"\",children:[n(a.span,{style:{color:\"#E1E4E8\"},children:\" <\"}),n(a.span,{style:{color:\"#85E89D\"},children:\"p\"}),n(a.span,{style:{color:\"#E1E4E8\"},children:\">\"})]}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" For years parents have espoused the health benefits of eating garlic bread\"})}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" with cheese to their children, with the food earning such an iconic status\"})}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" in our culture that kids will often dress up as warm, cheesy loaf for\"})}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" Halloween.\"})}),\"\\n\",t(a.span,{\"data-line\":\"\",children:[n(a.span,{style:{color:\"#E1E4E8\"},children:\" \"})]}),\"\\n\",t(a.span,{\"data-line\":\"\",children:[n(a.span,{style:{color:\"#E1E4E8\"},children:\" <\"}),n(a.span,{style:{color:\"#85E89D\"},children:\"p\"}),n(a.span,{style:{color:\"#E1E4E8\"},children:\">\"})]}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" But a recent study shows that the celebrated appetizer may be linked to a\"})}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" series of rabies cases springing up around the country.\"})}),\"\\n\",t(a.span,{\"data-line\":\"\",children:[n(a.span,{style:{color:\"#E1E4E8\"},children:\" \"})]}),\"\\n\",t(a.span,{\"data-line\":\"\",children:[n(a.span,{style:{color:\"#E1E4E8\"},children:\"\"})]})]})})}),\"\\n\",t(a.p,{children:[\"For more information about how to use the plugin and the features it includes, \",n(a.a,{href:\"https://github.com/tailwindcss/typography/blob/master/README.md\",children:\"read the documentation\"}),\".\"]}),\"\\n\",n(a.hr,{}),\"\\n\",t(a.h2,{id:\"what-to-expect-from-here-on-out\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#what-to-expect-from-here-on-out\",children:n(a.span,{className:\"icon icon-link\"})}),\"What to expect from here on out\"]}),\"\\n\",t(a.p,{children:[\"What follows from here is just a bunch of absolute nonsense I've written to dogfood the plugin itself. It includes every sensible typographic element I could think of, like \",n(a.strong,{children:\"bold text\"}),\", unordered lists, ordered lists, code blocks, block quotes, \",n(a.em,{children:\"and even italics\"}),\".\"]}),\"\\n\",n(a.p,{children:\"It's important to cover all of these use cases for a few reasons:\"}),\"\\n\",t(a.ol,{children:[\"\\n\",n(a.li,{children:\"We want everything to look good out of the box.\"}),\"\\n\",n(a.li,{children:\"Really just the first reason, that's the whole point of the plugin.\"}),\"\\n\",n(a.li,{children:\"Here's a third pretend reason though a list with three items looks more realistic than a list with two items.\"}),\"\\n\"]}),\"\\n\",n(a.p,{children:\"Now we're going to try out another header style.\"}),\"\\n\",t(a.h3,{id:\"typography-should-be-easy\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#typography-should-be-easy\",children:n(a.span,{className:\"icon icon-link\"})}),\"Typography should be easy\"]}),\"\\n\",n(a.p,{children:\"So that's a header for you — with any luck if we've done our job correctly that will look pretty reasonable.\"}),\"\\n\",n(a.p,{children:\"Something a wise person once told me about typography is:\"}),\"\\n\",t(a.blockquote,{children:[\"\\n\",n(a.p,{children:\"Typography is pretty important if you don't want your stuff to look like trash. Make it good then it won't be bad.\"}),\"\\n\"]}),\"\\n\",n(a.p,{children:\"It's probably important that images look okay here by default as well:\"}),\"\\n\",n(l,{src:\"/images/blog/blog-post-4.jpg\",width:\"718\",height:\"404\",alt:\"Image\"}),\"\\n\",n(a.p,{children:\"Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old.\"}),\"\\n\",n(a.p,{children:\"Now I'm going to show you an example of an unordered list to make sure that looks good, too:\"}),\"\\n\",t(a.ul,{children:[\"\\n\",n(a.li,{children:\"So here is the first item in this list.\"}),\"\\n\",n(a.li,{children:\"In this example we're keeping the items short.\"}),\"\\n\",n(a.li,{children:\"Later, we'll use longer, more complex list items.\"}),\"\\n\"]}),\"\\n\",n(a.p,{children:\"And that's the end of this section.\"}),\"\\n\",t(a.h2,{id:\"what-if-we-stack-headings\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#what-if-we-stack-headings\",children:n(a.span,{className:\"icon icon-link\"})}),\"What if we stack headings?\"]}),\"\\n\",t(a.h3,{id:\"we-should-make-sure-that-looks-good-too\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#we-should-make-sure-that-looks-good-too\",children:n(a.span,{className:\"icon icon-link\"})}),\"We should make sure that looks good, too.\"]}),\"\\n\",n(a.p,{children:\"Sometimes you have headings directly underneath each other. In those cases you often have to undo the top margin on the second heading because it usually looks better for the headings to be closer together than a paragraph followed by a heading should be.\"}),\"\\n\",t(a.h3,{id:\"when-a-heading-comes-after-a-paragraph-\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#when-a-heading-comes-after-a-paragraph-\",children:n(a.span,{className:\"icon icon-link\"})}),\"When a heading comes after a paragraph …\"]}),\"\\n\",n(a.p,{children:\"When a heading comes after a paragraph, we need a bit more space, like I already mentioned above. Now let's see what a more complex list would look like.\"}),\"\\n\",t(a.ul,{children:[\"\\n\",t(a.li,{children:[\"\\n\",n(a.p,{children:n(a.strong,{children:\"I often do this thing where list items have headings.\"})}),\"\\n\",n(a.p,{children:\"For some reason I think this looks cool which is unfortunate because it's pretty annoying to get the styles right.\"}),\"\\n\",n(a.p,{children:\"I often have two or three paragraphs in these list items, too, so the hard part is getting the spacing between the paragraphs, list item heading, and separate list items to all make sense. Pretty tough honestly, you could make a strong argument that you just shouldn't write this way.\"}),\"\\n\"]}),\"\\n\",t(a.li,{children:[\"\\n\",n(a.p,{children:n(a.strong,{children:\"Since this is a list, I need at least two items.\"})}),\"\\n\",n(a.p,{children:\"I explained what I'm doing already in the previous list item, but a list wouldn't be a list if it only had one item, and we really want this to look realistic. That's why I've added this second list item so I actually have something to look at when writing the styles.\"}),\"\\n\"]}),\"\\n\",t(a.li,{children:[\"\\n\",n(a.p,{children:n(a.strong,{children:\"It's not a bad idea to add a third item either.\"})}),\"\\n\",n(a.p,{children:\"I think it probably would've been fine to just use two items but three is definitely not worse, and since I seem to be having no trouble making up arbitrary things to type, I might as well include it.\"}),\"\\n\"]}),\"\\n\"]}),\"\\n\",n(a.p,{children:\"After this sort of list I usually have a closing statement or paragraph, because it kinda looks weird jumping right to a heading.\"}),\"\\n\",t(a.h2,{id:\"code-should-look-okay-by-default\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#code-should-look-okay-by-default\",children:n(a.span,{className:\"icon icon-link\"})}),\"Code should look okay by default.\"]}),\"\\n\",t(a.p,{children:[\"I think most people are going to use \",n(a.a,{href:\"https://highlightjs.org/\",children:\"highlight.js\"}),\" or \",n(a.a,{href:\"https://prismjs.com/\",children:\"Prism\"}),\" or something if they want to style their code blocks but it wouldn't hurt to make them look \",n(a.em,{children:\"okay\"}),\" out of the box, even with no syntax highlighting.\"]}),\"\\n\",t(a.p,{children:[\"Here's what a default \",n(a.code,{children:\"tailwind.config.js\"}),\" file looks like at the time of writing:\"]}),\"\\n\",n(a.figure,{\"data-rehype-pretty-code-figure\":\"\",children:n(a.pre,{style:{backgroundColor:\"#24292e\",color:\"#e1e4e8\"},tabIndex:\"0\",\"data-language\":\"js\",\"data-theme\":\"github-dark\",children:t(a.code,{\"data-language\":\"js\",\"data-theme\":\"github-dark\",style:{display:\"grid\"},children:[t(a.span,{\"data-line\":\"\",children:[n(a.span,{style:{color:\"#79B8FF\"},children:\"module\"}),n(a.span,{style:{color:\"#E1E4E8\"},children:\".\"}),n(a.span,{style:{color:\"#79B8FF\"},children:\"exports\"}),n(a.span,{style:{color:\"#F97583\"},children:\" =\"}),n(a.span,{style:{color:\"#E1E4E8\"},children:\" {\"})]}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" purge: [],\"})}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" theme: {\"})}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" extend: {},\"})}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" },\"})}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" variants: {},\"})}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" plugins: [],\"})}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\"}\"})})]})})}),\"\\n\",n(a.p,{children:\"Hopefully that looks good enough to you.\"}),\"\\n\",t(a.h3,{id:\"what-about-nested-lists\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#what-about-nested-lists\",children:n(a.span,{className:\"icon icon-link\"})}),\"What about nested lists?\"]}),\"\\n\",n(a.p,{children:\"Nested lists basically always look bad which is why editors like Medium don't even let you do it, but I guess since some of you goofballs are going to do it we have to carry the burden of at least making it work.\"}),\"\\n\",t(a.ol,{children:[\"\\n\",t(a.li,{children:[n(a.strong,{children:\"Nested lists are rarely a good idea.\"}),\"\\n\",t(a.ul,{children:[\"\\n\",n(a.li,{children:'You might feel like you are being really \"organized\" or something but you are just creating a gross shape on the screen that is hard to read.'}),\"\\n\",n(a.li,{children:\"Nested navigation in UIs is a bad idea too, keep things as flat as possible.\"}),\"\\n\",n(a.li,{children:\"Nesting tons of folders in your source code is also not helpful.\"}),\"\\n\"]}),\"\\n\"]}),\"\\n\",t(a.li,{children:[n(a.strong,{children:\"Since we need to have more items, here's another one.\"}),\"\\n\",t(a.ul,{children:[\"\\n\",n(a.li,{children:\"I'm not sure if we'll bother styling more than two levels deep.\"}),\"\\n\",n(a.li,{children:\"Two is already too much, three is guaranteed to be a bad idea.\"}),\"\\n\",n(a.li,{children:\"If you nest four levels deep you belong in prison.\"}),\"\\n\"]}),\"\\n\"]}),\"\\n\",t(a.li,{children:[n(a.strong,{children:\"Two items isn't really a list, three is good though.\"}),\"\\n\",t(a.ul,{children:[\"\\n\",n(a.li,{children:\"Again please don't nest lists if you want people to actually read your content.\"}),\"\\n\",n(a.li,{children:\"Nobody wants to look at this.\"}),\"\\n\",n(a.li,{children:\"I'm upset that we even have to bother styling this.\"}),\"\\n\"]}),\"\\n\"]}),\"\\n\"]}),\"\\n\",t(a.p,{children:[\"The most annoying thing about lists in Markdown is that \",n(a.code,{children:\"

  • \"}),\" elements aren't given a child \",n(a.code,{children:\"

    \"}),\" tag unless there are multiple paragraphs in the list item. That means I have to worry about styling that annoying situation too.\"]}),\"\\n\",t(a.ul,{children:[\"\\n\",t(a.li,{children:[\"\\n\",n(a.p,{children:n(a.strong,{children:\"For example, here's another nested list.\"})}),\"\\n\",n(a.p,{children:\"But this time with a second paragraph.\"}),\"\\n\",t(a.ul,{children:[\"\\n\",t(a.li,{children:[\"These list items won't have \",n(a.code,{children:\"

    \"}),\" tags\"]}),\"\\n\",n(a.li,{children:\"Because they are only one line each\"}),\"\\n\"]}),\"\\n\"]}),\"\\n\",t(a.li,{children:[\"\\n\",n(a.p,{children:n(a.strong,{children:\"But in this second top-level list item, they will.\"})}),\"\\n\",n(a.p,{children:\"This is especially annoying because of the spacing on this paragraph.\"}),\"\\n\",t(a.ul,{children:[\"\\n\",t(a.li,{children:[\"\\n\",t(a.p,{children:[\"As you can see here, because I've added a second line, this list item now has a \",n(a.code,{children:\"

    \"}),\" tag.\"]}),\"\\n\",n(a.p,{children:\"This is the second line I'm talking about by the way.\"}),\"\\n\"]}),\"\\n\",t(a.li,{children:[\"\\n\",n(a.p,{children:\"Finally here's another list item so it's more like a list.\"}),\"\\n\"]}),\"\\n\"]}),\"\\n\"]}),\"\\n\",t(a.li,{children:[\"\\n\",n(a.p,{children:\"A closing list item, but with no nested list, because why not?\"}),\"\\n\"]}),\"\\n\"]}),\"\\n\",n(a.p,{children:\"And finally a sentence to close off this section.\"}),\"\\n\",t(a.h2,{id:\"there-are-other-elements-we-need-to-style\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#there-are-other-elements-we-need-to-style\",children:n(a.span,{className:\"icon icon-link\"})}),\"There are other elements we need to style\"]}),\"\\n\",t(a.p,{children:[\"I almost forgot to mention links, like \",n(a.a,{href:\"https://tailwindcss.com\",children:\"this link to the Tailwind CSS website\"}),\". We almost made them blue but that's so yesterday, so we went with dark gray, feels edgier.\"]}),\"\\n\",n(a.p,{children:\"We even included table styles, check it out:\"}),\"\\n\",t(a.table,{children:[n(a.thead,{children:t(a.tr,{children:[n(a.th,{children:\"Wrestler\"}),n(a.th,{children:\"Origin\"}),n(a.th,{children:\"Finisher\"})]})}),t(a.tbody,{children:[t(a.tr,{children:[n(a.td,{children:'Bret \"The Hitman\" Hart'}),n(a.td,{children:\"Calgary, AB\"}),n(a.td,{children:\"Sharpshooter\"})]}),t(a.tr,{children:[n(a.td,{children:\"Stone Cold Steve Austin\"}),n(a.td,{children:\"Austin, TX\"}),n(a.td,{children:\"Stone Cold Stunner\"})]}),t(a.tr,{children:[n(a.td,{children:\"Randy Savage\"}),n(a.td,{children:\"Sarasota, FL\"}),n(a.td,{children:\"Elbow Drop\"})]}),t(a.tr,{children:[n(a.td,{children:\"Vader\"}),n(a.td,{children:\"Boulder, CO\"}),n(a.td,{children:\"Vader Bomb\"})]}),t(a.tr,{children:[n(a.td,{children:\"Razor Ramon\"}),n(a.td,{children:\"Chuluota, FL\"}),n(a.td,{children:\"Razor's Edge\"})]})]})]}),\"\\n\",t(a.p,{children:[\"We also need to make sure inline code looks good, like if I wanted to talk about \",n(a.code,{children:\"\"}),\" elements or tell you the good news about \",n(a.code,{children:\"@tailwindcss/typography\"}),\".\"]}),\"\\n\",t(a.h3,{id:\"sometimes-i-even-use-code-in-headings\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#sometimes-i-even-use-code-in-headings\",children:n(a.span,{className:\"icon icon-link\"})}),\"Sometimes I even use \",n(a.code,{children:\"code\"}),\" in headings\"]}),\"\\n\",t(a.p,{children:[\"Even though it's probably a bad idea, and historically I've had a hard time making it look good. This \",n(a.em,{children:'\"wrap the code blocks in backticks\"'}),\" trick works pretty well though really.\"]}),\"\\n\",t(a.p,{children:[\"Another thing I've done in the past is put a \",n(a.code,{children:\"code\"}),\" tag inside of a link, like if I wanted to tell you about the \",n(a.a,{href:\"https://github.com/tailwindcss/docs\",children:n(a.code,{children:\"tailwindcss/docs\"})}),\" repository. I don't love that there is an underline below the backticks but it is absolutely not worth the madness it would require to avoid it.\"]}),\"\\n\",t(a.h4,{id:\"we-havent-used-an-h4-yet\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#we-havent-used-an-h4-yet\",children:n(a.span,{className:\"icon icon-link\"})}),\"We haven't used an \",n(a.code,{children:\"h4\"}),\" yet\"]}),\"\\n\",t(a.p,{children:[\"But now we have. Please don't use \",n(a.code,{children:\"h5\"}),\" or \",n(a.code,{children:\"h6\"}),\" in your content, Medium only supports two heading levels for a reason, you animals. I honestly considered using a \",n(a.code,{children:\"before\"}),\" pseudo-element to scream at you if you use an \",n(a.code,{children:\"h5\"}),\" or \",n(a.code,{children:\"h6\"}),\".\"]}),\"\\n\",t(a.p,{children:[\"We don't style them at all out of the box because \",n(a.code,{children:\"h4\"}),\" elements are already so small that they are the same size as the body copy. What are we supposed to do with an \",n(a.code,{children:\"h5\"}),\", make it \",n(a.em,{children:\"smaller\"}),\" than the body copy? No thanks.\"]}),\"\\n\",t(a.h3,{id:\"we-still-need-to-think-about-stacked-headings-though\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#we-still-need-to-think-about-stacked-headings-though\",children:n(a.span,{className:\"icon icon-link\"})}),\"We still need to think about stacked headings though.\"]}),\"\\n\",t(a.h4,{id:\"lets-make-sure-we-dont-screw-that-up-with-h4-elements-either\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#lets-make-sure-we-dont-screw-that-up-with-h4-elements-either\",children:n(a.span,{className:\"icon icon-link\"})}),\"Let's make sure we don't screw that up with \",n(a.code,{children:\"h4\"}),\" elements, either.\"]}),\"\\n\",n(a.p,{children:\"Phew, with any luck we have styled the headings above this text and they look pretty good.\"}),\"\\n\",n(a.p,{children:\"Let's add a closing paragraph here so things end with a decently sized block of text. I can't explain why I want things to end that way but I have to assume it's because I think things will look weird or unbalanced if there is a heading too close to the end of the document.\"}),\"\\n\",n(a.p,{children:\"What I've written here is probably long enough, but adding this final sentence can't hurt.\"}),\"\\n\",t(a.h2,{id:\"github-flavored-markdown\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#github-flavored-markdown\",children:n(a.span,{className:\"icon icon-link\"})}),\"GitHub Flavored Markdown\"]}),\"\\n\",t(a.p,{children:[\"I've also added support for GitHub Flavored Mardown using \",n(a.code,{children:\"remark-gfm\"}),\".\"]}),\"\\n\",t(a.p,{children:[\"With \",n(a.code,{children:\"remark-gfm\"}),\", we get a few extra features in our markdown. Example: autolink literals.\"]}),\"\\n\",t(a.p,{children:[\"A link like \",n(a.a,{href:\"http://www.example.com\",children:\"www.example.com\"}),\" or \",n(a.a,{href:\"https://example.com\",children:\"https://example.com\"}),\" would automatically be converted into an \",n(a.code,{children:\"a\"}),\" tag.\"]}),\"\\n\",t(a.p,{children:[\"This works for email links too: \",n(a.a,{href:\"mailto:contact@example.com\",children:\"contact@example.com\"}),\".\"]})]})}return{default:function(e={}){const{wrapper:t}=e.components||{};return t?n(t,{...e,children:n(_createMdxContent,{...e})}):_createMdxContent(e)}};function _missingMdxReference(e,n){throw new Error(\"Expected \"+(n?\"component\":\"object\")+\" `\"+e+\"` to be defined: you likely forgot to import, pass, or provide it.\")}", - "slug": "/D:\\Coding\\forks\\taxonomy\\content\\blog\\dynamic-routing-static-regeneration", - "slugAsParams": "" - }, - { - "title": "Preview Mode for Headless CMS", - "description": "How to implement preview mode in your headless CMS.", - "date": "2023-04-09T00:00:00.000Z", - "published": true, - "image": "/images/blog/blog-post-1.jpg", - "authors": [ - "shadcn" - ], - "body": "const{Fragment:e,jsx:n,jsxs:t}=arguments[0];function _createMdxContent(i){const a={a:\"a\",blockquote:\"blockquote\",code:\"code\",em:\"em\",figure:\"figure\",h2:\"h2\",h3:\"h3\",h4:\"h4\",hr:\"hr\",li:\"li\",ol:\"ol\",p:\"p\",pre:\"pre\",span:\"span\",strong:\"strong\",table:\"table\",tbody:\"tbody\",td:\"td\",th:\"th\",thead:\"thead\",tr:\"tr\",ul:\"ul\",...i.components},{Callout:o,Image:l}=a;return o||_missingMdxReference(\"Callout\",!0),l||_missingMdxReference(\"Image\",!0),t(e,{children:[n(o,{children:t(a.p,{children:[\"The text below is from the \",n(a.a,{href:\"https://play.tailwindcss.com/uj1vGACRJA?layout=preview\",children:\"Tailwind\\nCSS\"}),\" docs. I copied it\\nhere to test the markdown styles. \",n(a.strong,{children:\"Tailwind is awesome. You should use it.\"})]})}),\"\\n\",n(a.p,{children:\"Until now, trying to style an article, document, or blog post with Tailwind has been a tedious task that required a keen eye for typography and a lot of complex custom CSS.\"}),\"\\n\",t(a.p,{children:[\"By default, Tailwind removes all of the default browser styling from paragraphs, headings, lists and more. This ends up being really useful for building application UIs because you spend less time undoing user-agent styles, but when you \",n(a.em,{children:\"really are\"}),\" just trying to style some content that came from a rich-text editor in a CMS or a markdown file, it can be surprising and unintuitive.\"]}),\"\\n\",n(a.p,{children:\"We get lots of complaints about it actually, with people regularly asking us things like:\"}),\"\\n\",t(a.blockquote,{children:[\"\\n\",t(a.p,{children:[\"Why is Tailwind removing the default styles on my \",n(a.code,{children:\"h1\"}),\" elements? How do I disable this? What do you mean I lose all the other base styles too?\\nWe hear you, but we're not convinced that simply disabling our base styles is what you really want. You don't want to have to remove annoying margins every time you use a \",n(a.code,{children:\"p\"}),\" element in a piece of your dashboard UI. And I doubt you really want your blog posts to use the user-agent styles either — you want them to look \",n(a.em,{children:\"awesome\"}),\", not awful.\"]}),\"\\n\"]}),\"\\n\",t(a.p,{children:[\"The \",n(a.code,{children:\"@tailwindcss/typography\"}),\" plugin is our attempt to give you what you \",n(a.em,{children:\"actually\"}),\" want, without any of the downsides of doing something stupid like disabling our base styles.\"]}),\"\\n\",t(a.p,{children:[\"It adds a new \",n(a.code,{children:\"prose\"}),\" class that you can slap on any block of vanilla HTML content and turn it into a beautiful, well-formatted document:\"]}),\"\\n\",n(a.figure,{\"data-rehype-pretty-code-figure\":\"\",children:n(a.pre,{style:{backgroundColor:\"#24292e\",color:\"#e1e4e8\"},tabIndex:\"0\",\"data-language\":\"html\",\"data-theme\":\"github-dark\",children:t(a.code,{\"data-language\":\"html\",\"data-theme\":\"github-dark\",style:{display:\"grid\"},children:[t(a.span,{\"data-line\":\"\",children:[n(a.span,{style:{color:\"#E1E4E8\"},children:\"<\"}),n(a.span,{style:{color:\"#85E89D\"},children:\"article\"}),n(a.span,{style:{color:\"#B392F0\"},children:\" class\"}),n(a.span,{style:{color:\"#E1E4E8\"},children:\"=\"}),n(a.span,{style:{color:\"#9ECBFF\"},children:'\"prose\"'}),n(a.span,{style:{color:\"#E1E4E8\"},children:\">\"})]}),\"\\n\",t(a.span,{\"data-line\":\"\",children:[n(a.span,{style:{color:\"#E1E4E8\"},children:\" <\"}),n(a.span,{style:{color:\"#85E89D\"},children:\"h1\"}),n(a.span,{style:{color:\"#E1E4E8\"},children:\">Garlic bread with cheese: What the science tells us\"})]}),\"\\n\",t(a.span,{\"data-line\":\"\",children:[n(a.span,{style:{color:\"#E1E4E8\"},children:\" <\"}),n(a.span,{style:{color:\"#85E89D\"},children:\"p\"}),n(a.span,{style:{color:\"#E1E4E8\"},children:\">\"})]}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" For years parents have espoused the health benefits of eating garlic bread\"})}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" with cheese to their children, with the food earning such an iconic status\"})}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" in our culture that kids will often dress up as warm, cheesy loaf for\"})}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" Halloween.\"})}),\"\\n\",t(a.span,{\"data-line\":\"\",children:[n(a.span,{style:{color:\"#E1E4E8\"},children:\" \"})]}),\"\\n\",t(a.span,{\"data-line\":\"\",children:[n(a.span,{style:{color:\"#E1E4E8\"},children:\" <\"}),n(a.span,{style:{color:\"#85E89D\"},children:\"p\"}),n(a.span,{style:{color:\"#E1E4E8\"},children:\">\"})]}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" But a recent study shows that the celebrated appetizer may be linked to a\"})}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" series of rabies cases springing up around the country.\"})}),\"\\n\",t(a.span,{\"data-line\":\"\",children:[n(a.span,{style:{color:\"#E1E4E8\"},children:\" \"})]}),\"\\n\",t(a.span,{\"data-line\":\"\",children:[n(a.span,{style:{color:\"#E1E4E8\"},children:\"\"})]})]})})}),\"\\n\",t(a.p,{children:[\"For more information about how to use the plugin and the features it includes, \",n(a.a,{href:\"https://github.com/tailwindcss/typography/blob/master/README.md\",children:\"read the documentation\"}),\".\"]}),\"\\n\",n(a.hr,{}),\"\\n\",t(a.h2,{id:\"what-to-expect-from-here-on-out\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#what-to-expect-from-here-on-out\",children:n(a.span,{className:\"icon icon-link\"})}),\"What to expect from here on out\"]}),\"\\n\",t(a.p,{children:[\"What follows from here is just a bunch of absolute nonsense I've written to dogfood the plugin itself. It includes every sensible typographic element I could think of, like \",n(a.strong,{children:\"bold text\"}),\", unordered lists, ordered lists, code blocks, block quotes, \",n(a.em,{children:\"and even italics\"}),\".\"]}),\"\\n\",n(a.p,{children:\"It's important to cover all of these use cases for a few reasons:\"}),\"\\n\",t(a.ol,{children:[\"\\n\",n(a.li,{children:\"We want everything to look good out of the box.\"}),\"\\n\",n(a.li,{children:\"Really just the first reason, that's the whole point of the plugin.\"}),\"\\n\",n(a.li,{children:\"Here's a third pretend reason though a list with three items looks more realistic than a list with two items.\"}),\"\\n\"]}),\"\\n\",n(a.p,{children:\"Now we're going to try out another header style.\"}),\"\\n\",t(a.h3,{id:\"typography-should-be-easy\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#typography-should-be-easy\",children:n(a.span,{className:\"icon icon-link\"})}),\"Typography should be easy\"]}),\"\\n\",n(a.p,{children:\"So that's a header for you — with any luck if we've done our job correctly that will look pretty reasonable.\"}),\"\\n\",n(a.p,{children:\"Something a wise person once told me about typography is:\"}),\"\\n\",t(a.blockquote,{children:[\"\\n\",n(a.p,{children:\"Typography is pretty important if you don't want your stuff to look like trash. Make it good then it won't be bad.\"}),\"\\n\"]}),\"\\n\",n(a.p,{children:\"It's probably important that images look okay here by default as well:\"}),\"\\n\",n(l,{src:\"/images/blog/blog-post-4.jpg\",width:\"718\",height:\"404\",alt:\"Image\"}),\"\\n\",n(a.p,{children:\"Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old.\"}),\"\\n\",n(a.p,{children:\"Now I'm going to show you an example of an unordered list to make sure that looks good, too:\"}),\"\\n\",t(a.ul,{children:[\"\\n\",n(a.li,{children:\"So here is the first item in this list.\"}),\"\\n\",n(a.li,{children:\"In this example we're keeping the items short.\"}),\"\\n\",n(a.li,{children:\"Later, we'll use longer, more complex list items.\"}),\"\\n\"]}),\"\\n\",n(a.p,{children:\"And that's the end of this section.\"}),\"\\n\",t(a.h2,{id:\"what-if-we-stack-headings\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#what-if-we-stack-headings\",children:n(a.span,{className:\"icon icon-link\"})}),\"What if we stack headings?\"]}),\"\\n\",t(a.h3,{id:\"we-should-make-sure-that-looks-good-too\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#we-should-make-sure-that-looks-good-too\",children:n(a.span,{className:\"icon icon-link\"})}),\"We should make sure that looks good, too.\"]}),\"\\n\",n(a.p,{children:\"Sometimes you have headings directly underneath each other. In those cases you often have to undo the top margin on the second heading because it usually looks better for the headings to be closer together than a paragraph followed by a heading should be.\"}),\"\\n\",t(a.h3,{id:\"when-a-heading-comes-after-a-paragraph-\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#when-a-heading-comes-after-a-paragraph-\",children:n(a.span,{className:\"icon icon-link\"})}),\"When a heading comes after a paragraph …\"]}),\"\\n\",n(a.p,{children:\"When a heading comes after a paragraph, we need a bit more space, like I already mentioned above. Now let's see what a more complex list would look like.\"}),\"\\n\",t(a.ul,{children:[\"\\n\",t(a.li,{children:[\"\\n\",n(a.p,{children:n(a.strong,{children:\"I often do this thing where list items have headings.\"})}),\"\\n\",n(a.p,{children:\"For some reason I think this looks cool which is unfortunate because it's pretty annoying to get the styles right.\"}),\"\\n\",n(a.p,{children:\"I often have two or three paragraphs in these list items, too, so the hard part is getting the spacing between the paragraphs, list item heading, and separate list items to all make sense. Pretty tough honestly, you could make a strong argument that you just shouldn't write this way.\"}),\"\\n\"]}),\"\\n\",t(a.li,{children:[\"\\n\",n(a.p,{children:n(a.strong,{children:\"Since this is a list, I need at least two items.\"})}),\"\\n\",n(a.p,{children:\"I explained what I'm doing already in the previous list item, but a list wouldn't be a list if it only had one item, and we really want this to look realistic. That's why I've added this second list item so I actually have something to look at when writing the styles.\"}),\"\\n\"]}),\"\\n\",t(a.li,{children:[\"\\n\",n(a.p,{children:n(a.strong,{children:\"It's not a bad idea to add a third item either.\"})}),\"\\n\",n(a.p,{children:\"I think it probably would've been fine to just use two items but three is definitely not worse, and since I seem to be having no trouble making up arbitrary things to type, I might as well include it.\"}),\"\\n\"]}),\"\\n\"]}),\"\\n\",n(a.p,{children:\"After this sort of list I usually have a closing statement or paragraph, because it kinda looks weird jumping right to a heading.\"}),\"\\n\",t(a.h2,{id:\"code-should-look-okay-by-default\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#code-should-look-okay-by-default\",children:n(a.span,{className:\"icon icon-link\"})}),\"Code should look okay by default.\"]}),\"\\n\",t(a.p,{children:[\"I think most people are going to use \",n(a.a,{href:\"https://highlightjs.org/\",children:\"highlight.js\"}),\" or \",n(a.a,{href:\"https://prismjs.com/\",children:\"Prism\"}),\" or something if they want to style their code blocks but it wouldn't hurt to make them look \",n(a.em,{children:\"okay\"}),\" out of the box, even with no syntax highlighting.\"]}),\"\\n\",t(a.p,{children:[\"Here's what a default \",n(a.code,{children:\"tailwind.config.js\"}),\" file looks like at the time of writing:\"]}),\"\\n\",n(a.figure,{\"data-rehype-pretty-code-figure\":\"\",children:n(a.pre,{style:{backgroundColor:\"#24292e\",color:\"#e1e4e8\"},tabIndex:\"0\",\"data-language\":\"js\",\"data-theme\":\"github-dark\",children:t(a.code,{\"data-language\":\"js\",\"data-theme\":\"github-dark\",style:{display:\"grid\"},children:[t(a.span,{\"data-line\":\"\",children:[n(a.span,{style:{color:\"#79B8FF\"},children:\"module\"}),n(a.span,{style:{color:\"#E1E4E8\"},children:\".\"}),n(a.span,{style:{color:\"#79B8FF\"},children:\"exports\"}),n(a.span,{style:{color:\"#F97583\"},children:\" =\"}),n(a.span,{style:{color:\"#E1E4E8\"},children:\" {\"})]}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" purge: [],\"})}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" theme: {\"})}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" extend: {},\"})}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" },\"})}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" variants: {},\"})}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" plugins: [],\"})}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\"}\"})})]})})}),\"\\n\",n(a.p,{children:\"Hopefully that looks good enough to you.\"}),\"\\n\",t(a.h3,{id:\"what-about-nested-lists\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#what-about-nested-lists\",children:n(a.span,{className:\"icon icon-link\"})}),\"What about nested lists?\"]}),\"\\n\",n(a.p,{children:\"Nested lists basically always look bad which is why editors like Medium don't even let you do it, but I guess since some of you goofballs are going to do it we have to carry the burden of at least making it work.\"}),\"\\n\",t(a.ol,{children:[\"\\n\",t(a.li,{children:[n(a.strong,{children:\"Nested lists are rarely a good idea.\"}),\"\\n\",t(a.ul,{children:[\"\\n\",n(a.li,{children:'You might feel like you are being really \"organized\" or something but you are just creating a gross shape on the screen that is hard to read.'}),\"\\n\",n(a.li,{children:\"Nested navigation in UIs is a bad idea too, keep things as flat as possible.\"}),\"\\n\",n(a.li,{children:\"Nesting tons of folders in your source code is also not helpful.\"}),\"\\n\"]}),\"\\n\"]}),\"\\n\",t(a.li,{children:[n(a.strong,{children:\"Since we need to have more items, here's another one.\"}),\"\\n\",t(a.ul,{children:[\"\\n\",n(a.li,{children:\"I'm not sure if we'll bother styling more than two levels deep.\"}),\"\\n\",n(a.li,{children:\"Two is already too much, three is guaranteed to be a bad idea.\"}),\"\\n\",n(a.li,{children:\"If you nest four levels deep you belong in prison.\"}),\"\\n\"]}),\"\\n\"]}),\"\\n\",t(a.li,{children:[n(a.strong,{children:\"Two items isn't really a list, three is good though.\"}),\"\\n\",t(a.ul,{children:[\"\\n\",n(a.li,{children:\"Again please don't nest lists if you want people to actually read your content.\"}),\"\\n\",n(a.li,{children:\"Nobody wants to look at this.\"}),\"\\n\",n(a.li,{children:\"I'm upset that we even have to bother styling this.\"}),\"\\n\"]}),\"\\n\"]}),\"\\n\"]}),\"\\n\",t(a.p,{children:[\"The most annoying thing about lists in Markdown is that \",n(a.code,{children:\"

  • \"}),\" elements aren't given a child \",n(a.code,{children:\"

    \"}),\" tag unless there are multiple paragraphs in the list item. That means I have to worry about styling that annoying situation too.\"]}),\"\\n\",t(a.ul,{children:[\"\\n\",t(a.li,{children:[\"\\n\",n(a.p,{children:n(a.strong,{children:\"For example, here's another nested list.\"})}),\"\\n\",n(a.p,{children:\"But this time with a second paragraph.\"}),\"\\n\",t(a.ul,{children:[\"\\n\",t(a.li,{children:[\"These list items won't have \",n(a.code,{children:\"

    \"}),\" tags\"]}),\"\\n\",n(a.li,{children:\"Because they are only one line each\"}),\"\\n\"]}),\"\\n\"]}),\"\\n\",t(a.li,{children:[\"\\n\",n(a.p,{children:n(a.strong,{children:\"But in this second top-level list item, they will.\"})}),\"\\n\",n(a.p,{children:\"This is especially annoying because of the spacing on this paragraph.\"}),\"\\n\",t(a.ul,{children:[\"\\n\",t(a.li,{children:[\"\\n\",t(a.p,{children:[\"As you can see here, because I've added a second line, this list item now has a \",n(a.code,{children:\"

    \"}),\" tag.\"]}),\"\\n\",n(a.p,{children:\"This is the second line I'm talking about by the way.\"}),\"\\n\"]}),\"\\n\",t(a.li,{children:[\"\\n\",n(a.p,{children:\"Finally here's another list item so it's more like a list.\"}),\"\\n\"]}),\"\\n\"]}),\"\\n\"]}),\"\\n\",t(a.li,{children:[\"\\n\",n(a.p,{children:\"A closing list item, but with no nested list, because why not?\"}),\"\\n\"]}),\"\\n\"]}),\"\\n\",n(a.p,{children:\"And finally a sentence to close off this section.\"}),\"\\n\",t(a.h2,{id:\"there-are-other-elements-we-need-to-style\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#there-are-other-elements-we-need-to-style\",children:n(a.span,{className:\"icon icon-link\"})}),\"There are other elements we need to style\"]}),\"\\n\",t(a.p,{children:[\"I almost forgot to mention links, like \",n(a.a,{href:\"https://tailwindcss.com\",children:\"this link to the Tailwind CSS website\"}),\". We almost made them blue but that's so yesterday, so we went with dark gray, feels edgier.\"]}),\"\\n\",n(a.p,{children:\"We even included table styles, check it out:\"}),\"\\n\",t(a.table,{children:[n(a.thead,{children:t(a.tr,{children:[n(a.th,{children:\"Wrestler\"}),n(a.th,{children:\"Origin\"}),n(a.th,{children:\"Finisher\"})]})}),t(a.tbody,{children:[t(a.tr,{children:[n(a.td,{children:'Bret \"The Hitman\" Hart'}),n(a.td,{children:\"Calgary, AB\"}),n(a.td,{children:\"Sharpshooter\"})]}),t(a.tr,{children:[n(a.td,{children:\"Stone Cold Steve Austin\"}),n(a.td,{children:\"Austin, TX\"}),n(a.td,{children:\"Stone Cold Stunner\"})]}),t(a.tr,{children:[n(a.td,{children:\"Randy Savage\"}),n(a.td,{children:\"Sarasota, FL\"}),n(a.td,{children:\"Elbow Drop\"})]}),t(a.tr,{children:[n(a.td,{children:\"Vader\"}),n(a.td,{children:\"Boulder, CO\"}),n(a.td,{children:\"Vader Bomb\"})]}),t(a.tr,{children:[n(a.td,{children:\"Razor Ramon\"}),n(a.td,{children:\"Chuluota, FL\"}),n(a.td,{children:\"Razor's Edge\"})]})]})]}),\"\\n\",t(a.p,{children:[\"We also need to make sure inline code looks good, like if I wanted to talk about \",n(a.code,{children:\"\"}),\" elements or tell you the good news about \",n(a.code,{children:\"@tailwindcss/typography\"}),\".\"]}),\"\\n\",t(a.h3,{id:\"sometimes-i-even-use-code-in-headings\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#sometimes-i-even-use-code-in-headings\",children:n(a.span,{className:\"icon icon-link\"})}),\"Sometimes I even use \",n(a.code,{children:\"code\"}),\" in headings\"]}),\"\\n\",t(a.p,{children:[\"Even though it's probably a bad idea, and historically I've had a hard time making it look good. This \",n(a.em,{children:'\"wrap the code blocks in backticks\"'}),\" trick works pretty well though really.\"]}),\"\\n\",t(a.p,{children:[\"Another thing I've done in the past is put a \",n(a.code,{children:\"code\"}),\" tag inside of a link, like if I wanted to tell you about the \",n(a.a,{href:\"https://github.com/tailwindcss/docs\",children:n(a.code,{children:\"tailwindcss/docs\"})}),\" repository. I don't love that there is an underline below the backticks but it is absolutely not worth the madness it would require to avoid it.\"]}),\"\\n\",t(a.h4,{id:\"we-havent-used-an-h4-yet\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#we-havent-used-an-h4-yet\",children:n(a.span,{className:\"icon icon-link\"})}),\"We haven't used an \",n(a.code,{children:\"h4\"}),\" yet\"]}),\"\\n\",t(a.p,{children:[\"But now we have. Please don't use \",n(a.code,{children:\"h5\"}),\" or \",n(a.code,{children:\"h6\"}),\" in your content, Medium only supports two heading levels for a reason, you animals. I honestly considered using a \",n(a.code,{children:\"before\"}),\" pseudo-element to scream at you if you use an \",n(a.code,{children:\"h5\"}),\" or \",n(a.code,{children:\"h6\"}),\".\"]}),\"\\n\",t(a.p,{children:[\"We don't style them at all out of the box because \",n(a.code,{children:\"h4\"}),\" elements are already so small that they are the same size as the body copy. What are we supposed to do with an \",n(a.code,{children:\"h5\"}),\", make it \",n(a.em,{children:\"smaller\"}),\" than the body copy? No thanks.\"]}),\"\\n\",t(a.h3,{id:\"we-still-need-to-think-about-stacked-headings-though\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#we-still-need-to-think-about-stacked-headings-though\",children:n(a.span,{className:\"icon icon-link\"})}),\"We still need to think about stacked headings though.\"]}),\"\\n\",t(a.h4,{id:\"lets-make-sure-we-dont-screw-that-up-with-h4-elements-either\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#lets-make-sure-we-dont-screw-that-up-with-h4-elements-either\",children:n(a.span,{className:\"icon icon-link\"})}),\"Let's make sure we don't screw that up with \",n(a.code,{children:\"h4\"}),\" elements, either.\"]}),\"\\n\",n(a.p,{children:\"Phew, with any luck we have styled the headings above this text and they look pretty good.\"}),\"\\n\",n(a.p,{children:\"Let's add a closing paragraph here so things end with a decently sized block of text. I can't explain why I want things to end that way but I have to assume it's because I think things will look weird or unbalanced if there is a heading too close to the end of the document.\"}),\"\\n\",n(a.p,{children:\"What I've written here is probably long enough, but adding this final sentence can't hurt.\"}),\"\\n\",t(a.h2,{id:\"github-flavored-markdown\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#github-flavored-markdown\",children:n(a.span,{className:\"icon icon-link\"})}),\"GitHub Flavored Markdown\"]}),\"\\n\",t(a.p,{children:[\"I've also added support for GitHub Flavored Mardown using \",n(a.code,{children:\"remark-gfm\"}),\".\"]}),\"\\n\",t(a.p,{children:[\"With \",n(a.code,{children:\"remark-gfm\"}),\", we get a few extra features in our markdown. Example: autolink literals.\"]}),\"\\n\",t(a.p,{children:[\"A link like \",n(a.a,{href:\"http://www.example.com\",children:\"www.example.com\"}),\" or \",n(a.a,{href:\"https://example.com\",children:\"https://example.com\"}),\" would automatically be converted into an \",n(a.code,{children:\"a\"}),\" tag.\"]}),\"\\n\",t(a.p,{children:[\"This works for email links too: \",n(a.a,{href:\"mailto:contact@example.com\",children:\"contact@example.com\"}),\".\"]})]})}return{default:function(e={}){const{wrapper:t}=e.components||{};return t?n(t,{...e,children:n(_createMdxContent,{...e})}):_createMdxContent(e)}};function _missingMdxReference(e,n){throw new Error(\"Expected \"+(n?\"component\":\"object\")+\" `\"+e+\"` to be defined: you likely forgot to import, pass, or provide it.\")}", - "slug": "/D:\\Coding\\forks\\taxonomy\\content\\blog\\preview-mode-headless-cms", - "slugAsParams": "" - }, - { - "title": "Server and Client Components", - "description": "React Server Components allow developers to build applications that span the server and client.", - "date": "2023-01-08T00:00:00.000Z", - "published": true, - "image": "/images/blog/blog-post-4.jpg", - "authors": [ - "shadcn" - ], - "body": "const{Fragment:e,jsx:n,jsxs:t}=arguments[0];function _createMdxContent(i){const a={a:\"a\",blockquote:\"blockquote\",code:\"code\",em:\"em\",figure:\"figure\",h2:\"h2\",h3:\"h3\",h4:\"h4\",hr:\"hr\",li:\"li\",ol:\"ol\",p:\"p\",pre:\"pre\",span:\"span\",strong:\"strong\",table:\"table\",tbody:\"tbody\",td:\"td\",th:\"th\",thead:\"thead\",tr:\"tr\",ul:\"ul\",...i.components},{Callout:o,Image:l}=a;return o||_missingMdxReference(\"Callout\",!0),l||_missingMdxReference(\"Image\",!0),t(e,{children:[n(o,{children:t(a.p,{children:[\"The text below is from the \",n(a.a,{href:\"https://play.tailwindcss.com/uj1vGACRJA?layout=preview\",children:\"Tailwind\\nCSS\"}),\" docs. I copied it\\nhere to test the markdown styles. \",n(a.strong,{children:\"Tailwind is awesome. You should use it.\"})]})}),\"\\n\",n(a.p,{children:\"Until now, trying to style an article, document, or blog post with Tailwind has been a tedious task that required a keen eye for typography and a lot of complex custom CSS.\"}),\"\\n\",t(a.p,{children:[\"By default, Tailwind removes all of the default browser styling from paragraphs, headings, lists and more. This ends up being really useful for building application UIs because you spend less time undoing user-agent styles, but when you \",n(a.em,{children:\"really are\"}),\" just trying to style some content that came from a rich-text editor in a CMS or a markdown file, it can be surprising and unintuitive.\"]}),\"\\n\",n(a.p,{children:\"We get lots of complaints about it actually, with people regularly asking us things like:\"}),\"\\n\",t(a.blockquote,{children:[\"\\n\",t(a.p,{children:[\"Why is Tailwind removing the default styles on my \",n(a.code,{children:\"h1\"}),\" elements? How do I disable this? What do you mean I lose all the other base styles too?\\nWe hear you, but we're not convinced that simply disabling our base styles is what you really want. You don't want to have to remove annoying margins every time you use a \",n(a.code,{children:\"p\"}),\" element in a piece of your dashboard UI. And I doubt you really want your blog posts to use the user-agent styles either — you want them to look \",n(a.em,{children:\"awesome\"}),\", not awful.\"]}),\"\\n\"]}),\"\\n\",t(a.p,{children:[\"The \",n(a.code,{children:\"@tailwindcss/typography\"}),\" plugin is our attempt to give you what you \",n(a.em,{children:\"actually\"}),\" want, without any of the downsides of doing something stupid like disabling our base styles.\"]}),\"\\n\",t(a.p,{children:[\"It adds a new \",n(a.code,{children:\"prose\"}),\" class that you can slap on any block of vanilla HTML content and turn it into a beautiful, well-formatted document:\"]}),\"\\n\",n(a.figure,{\"data-rehype-pretty-code-figure\":\"\",children:n(a.pre,{style:{backgroundColor:\"#24292e\",color:\"#e1e4e8\"},tabIndex:\"0\",\"data-language\":\"html\",\"data-theme\":\"github-dark\",children:t(a.code,{\"data-language\":\"html\",\"data-theme\":\"github-dark\",style:{display:\"grid\"},children:[t(a.span,{\"data-line\":\"\",children:[n(a.span,{style:{color:\"#E1E4E8\"},children:\"<\"}),n(a.span,{style:{color:\"#85E89D\"},children:\"article\"}),n(a.span,{style:{color:\"#B392F0\"},children:\" class\"}),n(a.span,{style:{color:\"#E1E4E8\"},children:\"=\"}),n(a.span,{style:{color:\"#9ECBFF\"},children:'\"prose\"'}),n(a.span,{style:{color:\"#E1E4E8\"},children:\">\"})]}),\"\\n\",t(a.span,{\"data-line\":\"\",children:[n(a.span,{style:{color:\"#E1E4E8\"},children:\" <\"}),n(a.span,{style:{color:\"#85E89D\"},children:\"h1\"}),n(a.span,{style:{color:\"#E1E4E8\"},children:\">Garlic bread with cheese: What the science tells us\"})]}),\"\\n\",t(a.span,{\"data-line\":\"\",children:[n(a.span,{style:{color:\"#E1E4E8\"},children:\" <\"}),n(a.span,{style:{color:\"#85E89D\"},children:\"p\"}),n(a.span,{style:{color:\"#E1E4E8\"},children:\">\"})]}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" For years parents have espoused the health benefits of eating garlic bread\"})}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" with cheese to their children, with the food earning such an iconic status\"})}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" in our culture that kids will often dress up as warm, cheesy loaf for\"})}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" Halloween.\"})}),\"\\n\",t(a.span,{\"data-line\":\"\",children:[n(a.span,{style:{color:\"#E1E4E8\"},children:\" \"})]}),\"\\n\",t(a.span,{\"data-line\":\"\",children:[n(a.span,{style:{color:\"#E1E4E8\"},children:\" <\"}),n(a.span,{style:{color:\"#85E89D\"},children:\"p\"}),n(a.span,{style:{color:\"#E1E4E8\"},children:\">\"})]}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" But a recent study shows that the celebrated appetizer may be linked to a\"})}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" series of rabies cases springing up around the country.\"})}),\"\\n\",t(a.span,{\"data-line\":\"\",children:[n(a.span,{style:{color:\"#E1E4E8\"},children:\" \"})]}),\"\\n\",t(a.span,{\"data-line\":\"\",children:[n(a.span,{style:{color:\"#E1E4E8\"},children:\"\"})]})]})})}),\"\\n\",t(a.p,{children:[\"For more information about how to use the plugin and the features it includes, \",n(a.a,{href:\"https://github.com/tailwindcss/typography/blob/master/README.md\",children:\"read the documentation\"}),\".\"]}),\"\\n\",n(a.hr,{}),\"\\n\",t(a.h2,{id:\"what-to-expect-from-here-on-out\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#what-to-expect-from-here-on-out\",children:n(a.span,{className:\"icon icon-link\"})}),\"What to expect from here on out\"]}),\"\\n\",t(a.p,{children:[\"What follows from here is just a bunch of absolute nonsense I've written to dogfood the plugin itself. It includes every sensible typographic element I could think of, like \",n(a.strong,{children:\"bold text\"}),\", unordered lists, ordered lists, code blocks, block quotes, \",n(a.em,{children:\"and even italics\"}),\".\"]}),\"\\n\",n(a.p,{children:\"It's important to cover all of these use cases for a few reasons:\"}),\"\\n\",t(a.ol,{children:[\"\\n\",n(a.li,{children:\"We want everything to look good out of the box.\"}),\"\\n\",n(a.li,{children:\"Really just the first reason, that's the whole point of the plugin.\"}),\"\\n\",n(a.li,{children:\"Here's a third pretend reason though a list with three items looks more realistic than a list with two items.\"}),\"\\n\"]}),\"\\n\",n(a.p,{children:\"Now we're going to try out another header style.\"}),\"\\n\",t(a.h3,{id:\"typography-should-be-easy\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#typography-should-be-easy\",children:n(a.span,{className:\"icon icon-link\"})}),\"Typography should be easy\"]}),\"\\n\",n(a.p,{children:\"So that's a header for you — with any luck if we've done our job correctly that will look pretty reasonable.\"}),\"\\n\",n(a.p,{children:\"Something a wise person once told me about typography is:\"}),\"\\n\",t(a.blockquote,{children:[\"\\n\",n(a.p,{children:\"Typography is pretty important if you don't want your stuff to look like trash. Make it good then it won't be bad.\"}),\"\\n\"]}),\"\\n\",n(a.p,{children:\"It's probably important that images look okay here by default as well:\"}),\"\\n\",n(l,{src:\"/images/blog/blog-post-4.jpg\",width:\"718\",height:\"404\",alt:\"Image\"}),\"\\n\",n(a.p,{children:\"Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old.\"}),\"\\n\",n(a.p,{children:\"Now I'm going to show you an example of an unordered list to make sure that looks good, too:\"}),\"\\n\",t(a.ul,{children:[\"\\n\",n(a.li,{children:\"So here is the first item in this list.\"}),\"\\n\",n(a.li,{children:\"In this example we're keeping the items short.\"}),\"\\n\",n(a.li,{children:\"Later, we'll use longer, more complex list items.\"}),\"\\n\"]}),\"\\n\",n(a.p,{children:\"And that's the end of this section.\"}),\"\\n\",t(a.h2,{id:\"what-if-we-stack-headings\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#what-if-we-stack-headings\",children:n(a.span,{className:\"icon icon-link\"})}),\"What if we stack headings?\"]}),\"\\n\",t(a.h3,{id:\"we-should-make-sure-that-looks-good-too\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#we-should-make-sure-that-looks-good-too\",children:n(a.span,{className:\"icon icon-link\"})}),\"We should make sure that looks good, too.\"]}),\"\\n\",n(a.p,{children:\"Sometimes you have headings directly underneath each other. In those cases you often have to undo the top margin on the second heading because it usually looks better for the headings to be closer together than a paragraph followed by a heading should be.\"}),\"\\n\",t(a.h3,{id:\"when-a-heading-comes-after-a-paragraph-\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#when-a-heading-comes-after-a-paragraph-\",children:n(a.span,{className:\"icon icon-link\"})}),\"When a heading comes after a paragraph …\"]}),\"\\n\",n(a.p,{children:\"When a heading comes after a paragraph, we need a bit more space, like I already mentioned above. Now let's see what a more complex list would look like.\"}),\"\\n\",t(a.ul,{children:[\"\\n\",t(a.li,{children:[\"\\n\",n(a.p,{children:n(a.strong,{children:\"I often do this thing where list items have headings.\"})}),\"\\n\",n(a.p,{children:\"For some reason I think this looks cool which is unfortunate because it's pretty annoying to get the styles right.\"}),\"\\n\",n(a.p,{children:\"I often have two or three paragraphs in these list items, too, so the hard part is getting the spacing between the paragraphs, list item heading, and separate list items to all make sense. Pretty tough honestly, you could make a strong argument that you just shouldn't write this way.\"}),\"\\n\"]}),\"\\n\",t(a.li,{children:[\"\\n\",n(a.p,{children:n(a.strong,{children:\"Since this is a list, I need at least two items.\"})}),\"\\n\",n(a.p,{children:\"I explained what I'm doing already in the previous list item, but a list wouldn't be a list if it only had one item, and we really want this to look realistic. That's why I've added this second list item so I actually have something to look at when writing the styles.\"}),\"\\n\"]}),\"\\n\",t(a.li,{children:[\"\\n\",n(a.p,{children:n(a.strong,{children:\"It's not a bad idea to add a third item either.\"})}),\"\\n\",n(a.p,{children:\"I think it probably would've been fine to just use two items but three is definitely not worse, and since I seem to be having no trouble making up arbitrary things to type, I might as well include it.\"}),\"\\n\"]}),\"\\n\"]}),\"\\n\",n(a.p,{children:\"After this sort of list I usually have a closing statement or paragraph, because it kinda looks weird jumping right to a heading.\"}),\"\\n\",t(a.h2,{id:\"code-should-look-okay-by-default\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#code-should-look-okay-by-default\",children:n(a.span,{className:\"icon icon-link\"})}),\"Code should look okay by default.\"]}),\"\\n\",t(a.p,{children:[\"I think most people are going to use \",n(a.a,{href:\"https://highlightjs.org/\",children:\"highlight.js\"}),\" or \",n(a.a,{href:\"https://prismjs.com/\",children:\"Prism\"}),\" or something if they want to style their code blocks but it wouldn't hurt to make them look \",n(a.em,{children:\"okay\"}),\" out of the box, even with no syntax highlighting.\"]}),\"\\n\",t(a.p,{children:[\"Here's what a default \",n(a.code,{children:\"tailwind.config.js\"}),\" file looks like at the time of writing:\"]}),\"\\n\",n(a.figure,{\"data-rehype-pretty-code-figure\":\"\",children:n(a.pre,{style:{backgroundColor:\"#24292e\",color:\"#e1e4e8\"},tabIndex:\"0\",\"data-language\":\"js\",\"data-theme\":\"github-dark\",children:t(a.code,{\"data-language\":\"js\",\"data-theme\":\"github-dark\",style:{display:\"grid\"},children:[t(a.span,{\"data-line\":\"\",children:[n(a.span,{style:{color:\"#79B8FF\"},children:\"module\"}),n(a.span,{style:{color:\"#E1E4E8\"},children:\".\"}),n(a.span,{style:{color:\"#79B8FF\"},children:\"exports\"}),n(a.span,{style:{color:\"#F97583\"},children:\" =\"}),n(a.span,{style:{color:\"#E1E4E8\"},children:\" {\"})]}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" purge: [],\"})}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" theme: {\"})}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" extend: {},\"})}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" },\"})}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" variants: {},\"})}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\" plugins: [],\"})}),\"\\n\",n(a.span,{\"data-line\":\"\",children:n(a.span,{style:{color:\"#E1E4E8\"},children:\"}\"})})]})})}),\"\\n\",n(a.p,{children:\"Hopefully that looks good enough to you.\"}),\"\\n\",t(a.h3,{id:\"what-about-nested-lists\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#what-about-nested-lists\",children:n(a.span,{className:\"icon icon-link\"})}),\"What about nested lists?\"]}),\"\\n\",n(a.p,{children:\"Nested lists basically always look bad which is why editors like Medium don't even let you do it, but I guess since some of you goofballs are going to do it we have to carry the burden of at least making it work.\"}),\"\\n\",t(a.ol,{children:[\"\\n\",t(a.li,{children:[n(a.strong,{children:\"Nested lists are rarely a good idea.\"}),\"\\n\",t(a.ul,{children:[\"\\n\",n(a.li,{children:'You might feel like you are being really \"organized\" or something but you are just creating a gross shape on the screen that is hard to read.'}),\"\\n\",n(a.li,{children:\"Nested navigation in UIs is a bad idea too, keep things as flat as possible.\"}),\"\\n\",n(a.li,{children:\"Nesting tons of folders in your source code is also not helpful.\"}),\"\\n\"]}),\"\\n\"]}),\"\\n\",t(a.li,{children:[n(a.strong,{children:\"Since we need to have more items, here's another one.\"}),\"\\n\",t(a.ul,{children:[\"\\n\",n(a.li,{children:\"I'm not sure if we'll bother styling more than two levels deep.\"}),\"\\n\",n(a.li,{children:\"Two is already too much, three is guaranteed to be a bad idea.\"}),\"\\n\",n(a.li,{children:\"If you nest four levels deep you belong in prison.\"}),\"\\n\"]}),\"\\n\"]}),\"\\n\",t(a.li,{children:[n(a.strong,{children:\"Two items isn't really a list, three is good though.\"}),\"\\n\",t(a.ul,{children:[\"\\n\",n(a.li,{children:\"Again please don't nest lists if you want people to actually read your content.\"}),\"\\n\",n(a.li,{children:\"Nobody wants to look at this.\"}),\"\\n\",n(a.li,{children:\"I'm upset that we even have to bother styling this.\"}),\"\\n\"]}),\"\\n\"]}),\"\\n\"]}),\"\\n\",t(a.p,{children:[\"The most annoying thing about lists in Markdown is that \",n(a.code,{children:\"

  • \"}),\" elements aren't given a child \",n(a.code,{children:\"

    \"}),\" tag unless there are multiple paragraphs in the list item. That means I have to worry about styling that annoying situation too.\"]}),\"\\n\",t(a.ul,{children:[\"\\n\",t(a.li,{children:[\"\\n\",n(a.p,{children:n(a.strong,{children:\"For example, here's another nested list.\"})}),\"\\n\",n(a.p,{children:\"But this time with a second paragraph.\"}),\"\\n\",t(a.ul,{children:[\"\\n\",t(a.li,{children:[\"These list items won't have \",n(a.code,{children:\"

    \"}),\" tags\"]}),\"\\n\",n(a.li,{children:\"Because they are only one line each\"}),\"\\n\"]}),\"\\n\"]}),\"\\n\",t(a.li,{children:[\"\\n\",n(a.p,{children:n(a.strong,{children:\"But in this second top-level list item, they will.\"})}),\"\\n\",n(a.p,{children:\"This is especially annoying because of the spacing on this paragraph.\"}),\"\\n\",t(a.ul,{children:[\"\\n\",t(a.li,{children:[\"\\n\",t(a.p,{children:[\"As you can see here, because I've added a second line, this list item now has a \",n(a.code,{children:\"

    \"}),\" tag.\"]}),\"\\n\",n(a.p,{children:\"This is the second line I'm talking about by the way.\"}),\"\\n\"]}),\"\\n\",t(a.li,{children:[\"\\n\",n(a.p,{children:\"Finally here's another list item so it's more like a list.\"}),\"\\n\"]}),\"\\n\"]}),\"\\n\"]}),\"\\n\",t(a.li,{children:[\"\\n\",n(a.p,{children:\"A closing list item, but with no nested list, because why not?\"}),\"\\n\"]}),\"\\n\"]}),\"\\n\",n(a.p,{children:\"And finally a sentence to close off this section.\"}),\"\\n\",t(a.h2,{id:\"there-are-other-elements-we-need-to-style\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#there-are-other-elements-we-need-to-style\",children:n(a.span,{className:\"icon icon-link\"})}),\"There are other elements we need to style\"]}),\"\\n\",t(a.p,{children:[\"I almost forgot to mention links, like \",n(a.a,{href:\"https://tailwindcss.com\",children:\"this link to the Tailwind CSS website\"}),\". We almost made them blue but that's so yesterday, so we went with dark gray, feels edgier.\"]}),\"\\n\",n(a.p,{children:\"We even included table styles, check it out:\"}),\"\\n\",t(a.table,{children:[n(a.thead,{children:t(a.tr,{children:[n(a.th,{children:\"Wrestler\"}),n(a.th,{children:\"Origin\"}),n(a.th,{children:\"Finisher\"})]})}),t(a.tbody,{children:[t(a.tr,{children:[n(a.td,{children:'Bret \"The Hitman\" Hart'}),n(a.td,{children:\"Calgary, AB\"}),n(a.td,{children:\"Sharpshooter\"})]}),t(a.tr,{children:[n(a.td,{children:\"Stone Cold Steve Austin\"}),n(a.td,{children:\"Austin, TX\"}),n(a.td,{children:\"Stone Cold Stunner\"})]}),t(a.tr,{children:[n(a.td,{children:\"Randy Savage\"}),n(a.td,{children:\"Sarasota, FL\"}),n(a.td,{children:\"Elbow Drop\"})]}),t(a.tr,{children:[n(a.td,{children:\"Vader\"}),n(a.td,{children:\"Boulder, CO\"}),n(a.td,{children:\"Vader Bomb\"})]}),t(a.tr,{children:[n(a.td,{children:\"Razor Ramon\"}),n(a.td,{children:\"Chuluota, FL\"}),n(a.td,{children:\"Razor's Edge\"})]})]})]}),\"\\n\",t(a.p,{children:[\"We also need to make sure inline code looks good, like if I wanted to talk about \",n(a.code,{children:\"\"}),\" elements or tell you the good news about \",n(a.code,{children:\"@tailwindcss/typography\"}),\".\"]}),\"\\n\",t(a.h3,{id:\"sometimes-i-even-use-code-in-headings\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#sometimes-i-even-use-code-in-headings\",children:n(a.span,{className:\"icon icon-link\"})}),\"Sometimes I even use \",n(a.code,{children:\"code\"}),\" in headings\"]}),\"\\n\",t(a.p,{children:[\"Even though it's probably a bad idea, and historically I've had a hard time making it look good. This \",n(a.em,{children:'\"wrap the code blocks in backticks\"'}),\" trick works pretty well though really.\"]}),\"\\n\",t(a.p,{children:[\"Another thing I've done in the past is put a \",n(a.code,{children:\"code\"}),\" tag inside of a link, like if I wanted to tell you about the \",n(a.a,{href:\"https://github.com/tailwindcss/docs\",children:n(a.code,{children:\"tailwindcss/docs\"})}),\" repository. I don't love that there is an underline below the backticks but it is absolutely not worth the madness it would require to avoid it.\"]}),\"\\n\",t(a.h4,{id:\"we-havent-used-an-h4-yet\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#we-havent-used-an-h4-yet\",children:n(a.span,{className:\"icon icon-link\"})}),\"We haven't used an \",n(a.code,{children:\"h4\"}),\" yet\"]}),\"\\n\",t(a.p,{children:[\"But now we have. Please don't use \",n(a.code,{children:\"h5\"}),\" or \",n(a.code,{children:\"h6\"}),\" in your content, Medium only supports two heading levels for a reason, you animals. I honestly considered using a \",n(a.code,{children:\"before\"}),\" pseudo-element to scream at you if you use an \",n(a.code,{children:\"h5\"}),\" or \",n(a.code,{children:\"h6\"}),\".\"]}),\"\\n\",t(a.p,{children:[\"We don't style them at all out of the box because \",n(a.code,{children:\"h4\"}),\" elements are already so small that they are the same size as the body copy. What are we supposed to do with an \",n(a.code,{children:\"h5\"}),\", make it \",n(a.em,{children:\"smaller\"}),\" than the body copy? No thanks.\"]}),\"\\n\",t(a.h3,{id:\"we-still-need-to-think-about-stacked-headings-though\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#we-still-need-to-think-about-stacked-headings-though\",children:n(a.span,{className:\"icon icon-link\"})}),\"We still need to think about stacked headings though.\"]}),\"\\n\",t(a.h4,{id:\"lets-make-sure-we-dont-screw-that-up-with-h4-elements-either\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#lets-make-sure-we-dont-screw-that-up-with-h4-elements-either\",children:n(a.span,{className:\"icon icon-link\"})}),\"Let's make sure we don't screw that up with \",n(a.code,{children:\"h4\"}),\" elements, either.\"]}),\"\\n\",n(a.p,{children:\"Phew, with any luck we have styled the headings above this text and they look pretty good.\"}),\"\\n\",n(a.p,{children:\"Let's add a closing paragraph here so things end with a decently sized block of text. I can't explain why I want things to end that way but I have to assume it's because I think things will look weird or unbalanced if there is a heading too close to the end of the document.\"}),\"\\n\",n(a.p,{children:\"What I've written here is probably long enough, but adding this final sentence can't hurt.\"}),\"\\n\",t(a.h2,{id:\"github-flavored-markdown\",children:[n(a.a,{className:\"subheading-anchor\",\"aria-label\":\"Link to section\",href:\"#github-flavored-markdown\",children:n(a.span,{className:\"icon icon-link\"})}),\"GitHub Flavored Markdown\"]}),\"\\n\",t(a.p,{children:[\"I've also added support for GitHub Flavored Mardown using \",n(a.code,{children:\"remark-gfm\"}),\".\"]}),\"\\n\",t(a.p,{children:[\"With \",n(a.code,{children:\"remark-gfm\"}),\", we get a few extra features in our markdown. Example: autolink literals.\"]}),\"\\n\",t(a.p,{children:[\"A link like \",n(a.a,{href:\"http://www.example.com\",children:\"www.example.com\"}),\" or \",n(a.a,{href:\"https://example.com\",children:\"https://example.com\"}),\" would automatically be converted into an \",n(a.code,{children:\"a\"}),\" tag.\"]}),\"\\n\",t(a.p,{children:[\"This works for email links too: \",n(a.a,{href:\"mailto:contact@example.com\",children:\"contact@example.com\"}),\".\"]})]})}return{default:function(e={}){const{wrapper:t}=e.components||{};return t?n(t,{...e,children:n(_createMdxContent,{...e})}):_createMdxContent(e)}};function _missingMdxReference(e,n){throw new Error(\"Expected \"+(n?\"component\":\"object\")+\" `\"+e+\"` to be defined: you likely forgot to import, pass, or provide it.\")}", - "slug": "/D:\\Coding\\forks\\taxonomy\\content\\blog\\server-client-components", - "slugAsParams": "" - } -] \ No newline at end of file diff --git a/app/(docs)/docs/[[...slug]]/page.tsx b/app/(docs)/docs/[[...slug]]/page.tsx index aaa13afcc..0587b48a6 100644 --- a/app/(docs)/docs/[[...slug]]/page.tsx +++ b/app/(docs)/docs/[[...slug]]/page.tsx @@ -1,7 +1,6 @@ import { notFound } from "next/navigation" import { docs as allDocs } from "#site/content" -import { getTableOfContents } from "@/lib/toc" import { Mdx } from "@/components/mdx-components" import { DocsPageHeader } from "@/components/page-header" import { DocsPager } from "@/components/pager" @@ -87,7 +86,6 @@ export default async function DocPage({ params }: DocPageProps) { notFound() } - const toc = await getTableOfContents(doc.body.raw) return (

    @@ -99,7 +97,7 @@ export default async function DocPage({ params }: DocPageProps) {
  • - +
    diff --git a/app/(docs)/guides/[...slug]/page.tsx b/app/(docs)/guides/[...slug]/page.tsx index f5623856b..b0f3d5340 100644 --- a/app/(docs)/guides/[...slug]/page.tsx +++ b/app/(docs)/guides/[...slug]/page.tsx @@ -2,7 +2,6 @@ import Link from "next/link" import { notFound } from "next/navigation" import { guides as allGuides } from "#site/content" -import { getTableOfContents } from "@/lib/toc" import { Icons } from "@/components/icons" import { Mdx } from "@/components/mdx-components" import { DocsPageHeader } from "@/components/page-header" @@ -89,8 +88,6 @@ export default async function GuidePage({ params }: GuidePageProps) { notFound() } - const toc = await getTableOfContents(guide.body.raw) - return (
    @@ -109,7 +106,7 @@ export default async function GuidePage({ params }: GuidePageProps) {
    - +
    diff --git a/app/(docs)/guides/page.tsx b/app/(docs)/guides/page.tsx index 339f9b3e9..c2a33779f 100644 --- a/app/(docs)/guides/page.tsx +++ b/app/(docs)/guides/page.tsx @@ -28,7 +28,7 @@ export default function GuidesPage() {
    {guides.map((guide) => (
    {guide.featured && ( diff --git a/app/(marketing)/blog/[...slug]/page.tsx b/app/(marketing)/blog/[...slug]/page.tsx index 5a98c3a3e..5c2b40771 100644 --- a/app/(marketing)/blog/[...slug]/page.tsx +++ b/app/(marketing)/blog/[...slug]/page.tsx @@ -123,7 +123,7 @@ export default async function PostPage({ params }: PostPageProps) { {authors.map((author) => author ? ( diff --git a/app/(marketing)/blog/page.tsx b/app/(marketing)/blog/page.tsx index 139944f6e..2a84ec75f 100644 --- a/app/(marketing)/blog/page.tsx +++ b/app/(marketing)/blog/page.tsx @@ -33,7 +33,7 @@ export default async function BlogPage() {
    {posts.map((post, index) => (
    {post.image && ( diff --git a/components/toc.tsx b/components/toc.tsx index 8dd3ff23d..ff28a2d20 100644 --- a/components/toc.tsx +++ b/components/toc.tsx @@ -2,19 +2,24 @@ import * as React from "react" -import { TableOfContents } from "@/lib/toc" import { cn } from "@/lib/utils" import { useMounted } from "@/hooks/use-mounted" +interface TocEntry { + items?: TocEntry[] + url: string + title: string +} + interface TocProps { - toc: TableOfContents + toc: TocEntry[] } export function DashboardTableOfContents({ toc }: TocProps) { const itemIds = React.useMemo( () => - toc.items - ? toc.items + toc + ? toc .flatMap((item) => [item.url, item?.items?.map((item) => item.url)]) .flat() .filter(Boolean) @@ -25,10 +30,6 @@ export function DashboardTableOfContents({ toc }: TocProps) { const activeHeading = useActiveItem(itemIds) const mounted = useMounted() - if (!toc?.items) { - return null - } - return mounted ? (

    On This Page

    @@ -81,15 +82,15 @@ function useActiveItem(itemIds: (string | undefined)[]) { } interface TreeProps { - tree: TableOfContents + tree: TocEntry[] level?: number activeItem?: string | null } function Tree({ tree, level = 1, activeItem }: TreeProps) { - return tree?.items?.length && level < 3 ? ( + return tree.length && level < 3 ? (