docusaurus/assets/js/975c6d52.18061372.js
2024-09-19 09:32:50 +00:00

1 line
No EOL
5.2 KiB
JavaScript

"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[21380],{88612:(e,s,t)=>{t.r(s),t.d(s,{assets:()=>p,contentTitle:()=>o,default:()=>j,frontMatter:()=>h,metadata:()=>n,toc:()=>x});let n=JSON.parse('{"type":"mdx","permalink":"/tests/pages/","source":"@site/_dogfooding/_pages tests/index.mdx","description":"Page","frontMatter":{},"lastUpdatedBy":"dependabot[bot]","lastUpdatedAt":1726738176000,"editUrl":"https://github.com/facebook/docusaurus/edit/main/website/_dogfooding/_pages tests/index.mdx","unlisted":false}');var r=t(62540),i=t(43023);function a(e){let s={h3:"h3",p:"p",...(0,i.R)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(s.h3,{id:"page-partial-content",children:"Page partial content"}),"\n",(0,r.jsx)(s.p,{children:"This is text coming from a page partial"})]})}function l(e={}){let{wrapper:s}={...(0,i.R)(),...e.components};return s?(0,r.jsx)(s,{...e,children:(0,r.jsx)(a,{...e})}):a(e)}function d(e){let s={h1:"h1",header:"header",li:"li",p:"p",ul:"ul",...(0,i.R)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(s.header,{children:(0,r.jsx)(s.h1,{id:"docusaurus-website-dogfooding",children:"Docusaurus website dogfooding"})}),"\n",(0,r.jsx)(s.p,{children:"This is where we test edge cases of Docusaurus by using fancy configs, ensuring they all don't fail during a real site build."}),"\n",(0,r.jsx)(s.p,{children:"Eventually, we could move these tests later so another test site? Note there is value to keep seeing the live result of those tests."}),"\n",(0,r.jsx)(s.p,{children:"Fancy things we can test for here:"}),"\n",(0,r.jsxs)(s.ul,{children:["\n",(0,r.jsx)(s.li,{children:"Plugin Multi-instance"}),"\n",(0,r.jsx)(s.li,{children:"Webpack configs"}),"\n",(0,r.jsx)(s.li,{children:"_ prefix convention"}),"\n",(0,r.jsx)(s.li,{children:"Huge sidebars impact"}),"\n",(0,r.jsx)(s.li,{children:"Using folders with spaces on purpose"}),"\n",(0,r.jsx)(s.li,{children:"Importing MD docs that are out of content plugin folders as partials (such as this README file!)"}),"\n"]})]})}function c(e={}){let{wrapper:s}={...(0,i.R)(),...e.components};return s?(0,r.jsx)(s,{...e,children:(0,r.jsx)(d,{...e})}):d(e)}let h={},o=void 0,p={},x=[{value:"Page",id:"page",level:2},{value:"Page partial content",id:"page-partial-content",level:3},{value:"Markdown tests",id:"markdown-tests",level:3},{value:"Other tests",id:"other-tests",level:3}];function u(e){let s={a:"a",code:"code",h2:"h2",h3:"h3",hr:"hr",li:"li",p:"p",ul:"ul",...(0,i.R)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(s.h2,{id:"page",children:"Page"}),"\n",(0,r.jsxs)(s.p,{children:["Let's import a MDX partial at ",(0,r.jsx)(s.code,{children:"./_pagePartial.md"}),":"]}),"\n","\n",(0,r.jsx)(l,{}),"\n",(0,r.jsx)(s.hr,{}),"\n",(0,r.jsxs)(s.p,{children:["Now let's import ",(0,r.jsx)(s.code,{children:"../README.md"}),":"]}),"\n","\n",(0,r.jsx)(c,{}),"\n",(0,r.jsx)(s.h3,{id:"markdown-tests",children:"Markdown tests"}),"\n",(0,r.jsxs)(s.ul,{children:["\n",(0,r.jsx)(s.li,{children:(0,r.jsx)(s.a,{href:"/tests/pages/markdown-tests-mdx",children:"Markdown tests MDX"})}),"\n",(0,r.jsx)(s.li,{children:(0,r.jsx)(s.a,{href:"/tests/pages/markdown-tests-md",children:"Markdown tests MD"})}),"\n"]}),"\n",(0,r.jsx)(s.h3,{id:"other-tests",children:"Other tests"}),"\n",(0,r.jsxs)(s.ul,{children:["\n",(0,r.jsx)(s.li,{children:(0,r.jsx)(s.a,{href:"/tests/pages/react-18",children:"React 18"})}),"\n",(0,r.jsx)(s.li,{children:(0,r.jsx)(s.a,{href:"/tests/pages/crashTest",children:"Crash test"})}),"\n",(0,r.jsx)(s.li,{children:(0,r.jsx)(s.a,{href:"/tests/pages/code-block-tests",children:"Code block tests"})}),"\n",(0,r.jsx)(s.li,{children:(0,r.jsx)(s.a,{href:"/tests/pages/link-tests",children:"Link tests"})}),"\n",(0,r.jsx)(s.li,{children:(0,r.jsx)(s.a,{href:"/tests/pages/error-boundary-tests",children:"Error boundary tests"})}),"\n",(0,r.jsx)(s.li,{children:(0,r.jsx)(s.a,{href:"/tests/pages/hydration-tests",children:"Hydration tests"})}),"\n",(0,r.jsx)(s.li,{children:(0,r.jsx)(s.a,{href:"/tests/pages/page-toc-tests",children:"TOC tests"})}),"\n",(0,r.jsx)(s.li,{children:(0,r.jsx)(s.a,{href:"/tests/pages/diagrams",children:"Diagram tests"})}),"\n",(0,r.jsx)(s.li,{children:(0,r.jsx)(s.a,{href:"/tests/pages/tabs-tests",children:"Tabs tests"})}),"\n",(0,r.jsx)(s.li,{children:(0,r.jsx)(s.a,{href:"/tests/pages/z-index-tests",children:"z-index tests"})}),"\n",(0,r.jsx)(s.li,{children:(0,r.jsx)(s.a,{href:"/tests/pages/head-metadata",children:"Head metadata tests"})}),"\n",(0,r.jsx)(s.li,{children:(0,r.jsx)(s.a,{href:"/tests/pages/unlisted",children:"Unlisted page"})}),"\n",(0,r.jsx)(s.li,{children:(0,r.jsx)(s.a,{href:"/tests/pages/analytics",children:"Analytics"})}),"\n",(0,r.jsx)(s.li,{children:(0,r.jsx)(s.a,{href:"/tests/pages/embeds",children:"Embeds"})}),"\n"]})]})}function j(e={}){let{wrapper:s}={...(0,i.R)(),...e.components};return s?(0,r.jsx)(s,{...e,children:(0,r.jsx)(u,{...e})}):u(e)}},43023:(e,s,t)=>{t.d(s,{R:()=>a,x:()=>l});var n=t(63696);let r={},i=n.createContext(r);function a(e){let s=n.useContext(i);return n.useMemo(function(){return"function"==typeof e?e(s):{...s,...e}},[s,e])}function l(e){let s;return s=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:a(e.components),n.createElement(i.Provider,{value:s},e.children)}}}]);