Replies: 1 comment 2 replies
-
Hi, It's not clear to me what command did you type, and what error did you get, and what are the full details of your env and Docusaurus version. For me it seems to work, and suggest close matches in case of typo: You can also see a list of components by not providing the name: |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
For swizzling components like Table of contents, I thought the right command was
npx docusaurus swizzle @docusaurus/theme-classic TOC
. Notice all uppercaseTOC
. I saw that the component was nested inside a folder namedTOC
innode_modules/@docusaurus/theme-classic/lib/theme/TOC
. But after several failed attempts at swizzling, I thought maybe I was not typing the component name correctly. But, when I swizzled a component namedToc
instead ofTOC
it worked perfectly. That was a mistake on my part but the naming convention of the folder played its part as well. Can I know how I can avoid such mistakes in the future? Is there a naming convention for the components somewhere? Thanks.Beta Was this translation helpful? Give feedback.
All reactions