Skip to content

Any developer docs available? #4300

Answered by slorber
inix asked this question in General
Feb 26, 2021 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

Hi and thanks forr trying to contribute.

We don't have much architecture documentation for now, but it's something we have recently discussed and want to create, mostly because we often welcome interns, external contributors and MLH fellow interns, and explaining everything everytime is a time sink

Track this here: #4301


About your question:

  • plugins call read the FS and for each md file they call:
addRoute({
   path: "/docs/doc1",
   component: "@theme/DocPage"
   modules  {
     content: "./docs/doc1.mdx"
   }
})
  • then the @theme/DocPage component will receive the doc as props:
export default function DocPage({content}) {
  const DocContent  = content;
  return (
    <Layout>
      <D…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@inix
Comment options

@inix
Comment options

Answer selected by inix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants