Closed digicoffey closed 2 years ago
Closing as I will use another framework
Hello there 👋 , the PropTable
component needs some TLC, but here's a small example you can use https://github.com/atomicpages/pretty-checkbox-react/blob/main/docs/src/components/PropsTable.tsx#L3
The JSON files are generated at build time so we can assume they'll be available. If you need extra help feel free to reopen!
Hi there,
I asked this question in the docusaurus discord, but was told I'd be better off asking it here.
I'm very new to docusaurus and I'm struggling to understand how to use this plugin. I've followed the readme and installed the required packages and added the plugin to my config.
I'm not entirely sure how to run this plugin? Would you be able to point me to any examples?
I'm also not sure what to do with the PropTable example you provide in your
README
.I have created a folder called components at
docs/components
and I'd like to have a file for each component displaying it's API in the table.I've created a file called
text.mdx
insidedocs/components
and the contents are:I can see the
useDynamicImport
hook insidePropTable
, but I'm not sure how to generate theJSON
files?The actual component in my react project is
Text.tsx
and I have the standardreact-docgen-typescript
setup i.e.My react project doesn't actually have the
react-docgen-typescript
library installed, I wasn't sure if that was required?My react project is also a separate repo so the
src
property in my config looks like this:src: ['../project-name/src/**/*.tsx', '!../project-name/src/**/*test.*']
Apologies in advance if this is not the place to request support, but I'm struggling to find any examples online.
Thanks very much.