mirror of
https://github.com/facebook/docusaurus.git
synced 2025-07-02 17:38:12 +02:00
1 line
No EOL
5.5 KiB
JavaScript
1 line
No EOL
5.5 KiB
JavaScript
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([["7714"],{69128:function(e,s,t){t.d(s,{ZP:function(){return l},d$:function(){return i}});var n=t(24246),r=t(80980);let i=[{value:"Page partial content",id:"page-partial-content",level:3}];function a(e){let s={h3:"h3",p:"p",...(0,r.a)(),...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 l(e={}){let{wrapper:s}={...(0,r.a)(),...e.components};return s?(0,n.jsx)(s,{...e,children:(0,n.jsx)(a,{...e})}):a(e)}},32118:function(e,s,t){t.r(s),t.d(s,{metadata:()=>n,contentTitle:()=>o,default:()=>x,assets:()=>h,toc:()=>p,frontMatter:()=>c});var n=JSON.parse('{"type":"mdx","permalink":"/tests/pages/","source":"@site/_dogfooding/_pages tests/index.mdx","description":"Page","frontMatter":{},"lastUpdatedBy":"S\xe9bastien Lorber","lastUpdatedAt":1733832381000,"editUrl":"https://github.com/facebook/docusaurus/edit/main/website/_dogfooding/_pages tests/index.mdx","unlisted":false}'),r=t("24246"),i=t("80980"),a=t("69128");function l(e){let s={h1:"h1",header:"header",li:"li",p:"p",ul:"ul",...(0,i.a)(),...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 d(e={}){let{wrapper:s}={...(0,i.a)(),...e.components};return s?(0,r.jsx)(s,{...e,children:(0,r.jsx)(l,{...e})}):l(e)}let c={},o=void 0,h={},p=[{value:"Page",id:"page",level:2},...a.d$,{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.a)(),...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)(a.ZP,{}),"\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)(d,{}),"\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/svg",children:"SVG"})}),"\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 x(e={}){let{wrapper:s}={...(0,i.a)(),...e.components};return s?(0,r.jsx)(s,{...e,children:(0,r.jsx)(u,{...e})}):u(e)}},80980:function(e,s,t){t.d(s,{Z:function(){return l},a:function(){return a}});var n=t(27378);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)}}}]); |