Replies: 1 comment 6 replies
-
Hey, here might be a useful thread for you: #5251 Basically, if you just want placeholder components inserted before/after some block, you can usually do so through wrapping components. If that doesn't work out (e.g. if the place you are inserting your component in is in the middle of a bigger component), you can report your use-case in #6116 and we will see how we can refactor our theme to cope with your needs. |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently there is no way to customise existing components (DocItem is a good example). To be more specific inserting custom components within major layout components. The only way can customise these components is to overwrite a given component in your projects/preset while taking a responsibility to manually keep it in sync with the component from docusaurus itself. This process is suboptimal and it would be nice to have a few placeholder(
() => null
) components that can be overwritten by customers who could "insert" their project specific stuff without having to essentially fork docusaurus' component. A couple of good candidates can be Pre/Post Content for DocItem, that can be utilised for comments section, polls and other project specific items.Beta Was this translation helpful? Give feedback.
All reactions