mirror of
https://github.com/facebook/docusaurus.git
synced 2025-08-03 08:49:51 +02:00
1 line
No EOL
5.2 KiB
JavaScript
1 line
No EOL
5.2 KiB
JavaScript
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[21380],{87655:(e,s,t)=>{t.r(s),t.d(s,{assets:()=>p,contentTitle:()=>h,default:()=>j,frontMatter:()=>c,metadata:()=>o,toc:()=>x});var n=t(62540),r=t(43023);function i(e){let s={h3:"h3",p:"p",...(0,r.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s.h3,{id:"page-partial-content",children:"Page partial content"}),"\n",(0,n.jsx)(s.p,{children:"This is text coming from a page partial"})]})}function a(e={}){let{wrapper:s}={...(0,r.R)(),...e.components};return s?(0,n.jsx)(s,{...e,children:(0,n.jsx)(i,{...e})}):i(e)}function l(e){let s={h1:"h1",header:"header",li:"li",p:"p",ul:"ul",...(0,r.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s.header,{children:(0,n.jsx)(s.h1,{id:"docusaurus-website-dogfooding",children:"Docusaurus website dogfooding"})}),"\n",(0,n.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,n.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,n.jsx)(s.p,{children:"Fancy things we can test for here:"}),"\n",(0,n.jsxs)(s.ul,{children:["\n",(0,n.jsx)(s.li,{children:"Plugin Multi-instance"}),"\n",(0,n.jsx)(s.li,{children:"Webpack configs"}),"\n",(0,n.jsx)(s.li,{children:"_ prefix convention"}),"\n",(0,n.jsx)(s.li,{children:"Huge sidebars impact"}),"\n",(0,n.jsx)(s.li,{children:"Using folders with spaces on purpose"}),"\n",(0,n.jsx)(s.li,{children:"Importing MD docs that are out of content plugin folders as partials (such as this README file!)"}),"\n"]})]})}function d(e={}){let{wrapper:s}={...(0,r.R)(),...e.components};return s?(0,n.jsx)(s,{...e,children:(0,n.jsx)(l,{...e})}):l(e)}let c={},h=void 0,o={type:"mdx",permalink:"/tests/pages/",source:"@site/_dogfooding/_pages tests/index.mdx",description:"Page",frontMatter:{},lastUpdatedBy:"Olexandr Radovenchyk",lastUpdatedAt:1725278075e3,editUrl:"https://github.com/facebook/docusaurus/edit/main/website/_dogfooding/_pages tests/index.mdx",unlisted:!1},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,r.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s.h2,{id:"page",children:"Page"}),"\n",(0,n.jsxs)(s.p,{children:["Let's import a MDX partial at ",(0,n.jsx)(s.code,{children:"./_pagePartial.md"}),":"]}),"\n","\n",(0,n.jsx)(a,{}),"\n",(0,n.jsx)(s.hr,{}),"\n",(0,n.jsxs)(s.p,{children:["Now let's import ",(0,n.jsx)(s.code,{children:"../README.md"}),":"]}),"\n","\n",(0,n.jsx)(d,{}),"\n",(0,n.jsx)(s.h3,{id:"markdown-tests",children:"Markdown tests"}),"\n",(0,n.jsxs)(s.ul,{children:["\n",(0,n.jsx)(s.li,{children:(0,n.jsx)(s.a,{href:"/tests/pages/markdown-tests-mdx",children:"Markdown tests MDX"})}),"\n",(0,n.jsx)(s.li,{children:(0,n.jsx)(s.a,{href:"/tests/pages/markdown-tests-md",children:"Markdown tests MD"})}),"\n"]}),"\n",(0,n.jsx)(s.h3,{id:"other-tests",children:"Other tests"}),"\n",(0,n.jsxs)(s.ul,{children:["\n",(0,n.jsx)(s.li,{children:(0,n.jsx)(s.a,{href:"/tests/pages/react-18",children:"React 18"})}),"\n",(0,n.jsx)(s.li,{children:(0,n.jsx)(s.a,{href:"/tests/pages/crashTest",children:"Crash test"})}),"\n",(0,n.jsx)(s.li,{children:(0,n.jsx)(s.a,{href:"/tests/pages/code-block-tests",children:"Code block tests"})}),"\n",(0,n.jsx)(s.li,{children:(0,n.jsx)(s.a,{href:"/tests/pages/link-tests",children:"Link tests"})}),"\n",(0,n.jsx)(s.li,{children:(0,n.jsx)(s.a,{href:"/tests/pages/error-boundary-tests",children:"Error boundary tests"})}),"\n",(0,n.jsx)(s.li,{children:(0,n.jsx)(s.a,{href:"/tests/pages/hydration-tests",children:"Hydration tests"})}),"\n",(0,n.jsx)(s.li,{children:(0,n.jsx)(s.a,{href:"/tests/pages/page-toc-tests",children:"TOC tests"})}),"\n",(0,n.jsx)(s.li,{children:(0,n.jsx)(s.a,{href:"/tests/pages/diagrams",children:"Diagram tests"})}),"\n",(0,n.jsx)(s.li,{children:(0,n.jsx)(s.a,{href:"/tests/pages/tabs-tests",children:"Tabs tests"})}),"\n",(0,n.jsx)(s.li,{children:(0,n.jsx)(s.a,{href:"/tests/pages/z-index-tests",children:"z-index tests"})}),"\n",(0,n.jsx)(s.li,{children:(0,n.jsx)(s.a,{href:"/tests/pages/head-metadata",children:"Head metadata tests"})}),"\n",(0,n.jsx)(s.li,{children:(0,n.jsx)(s.a,{href:"/tests/pages/unlisted",children:"Unlisted page"})}),"\n",(0,n.jsx)(s.li,{children:(0,n.jsx)(s.a,{href:"/tests/pages/analytics",children:"Analytics"})}),"\n",(0,n.jsx)(s.li,{children:(0,n.jsx)(s.a,{href:"/tests/pages/embeds",children:"Embeds"})}),"\n"]})]})}function j(e={}){let{wrapper:s}={...(0,r.R)(),...e.components};return s?(0,n.jsx)(s,{...e,children:(0,n.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)}}}]); |