Create plugin a custom plugin #7576
Replies: 1 comment
|
Your plugin is very close, but it doesn’t work mainly because of wrong Docusaurus lifecycle usage + an immediate function call that breaks everything. Below is a corrected, production-ready version and explanation. ❌ What is wrong in your current plugin1. You are calling the function manuallygenerateDocs();This runs outside Docusaurus lifecycle, so:
👉 This line must be removed. 2.
|
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hey there,
I'm trying to create a local custom plugin to convert JsDoc to docusaurus, based on this (using-plugins), and this (plugin-methods) official documentation I think I have done all right, but the plugin doesn’t work 😅
https://github.com/201flaviosilva/Impacto/blob/e575ac973452af4468a56279ee3d0a797d96e9fa/docs/plugins/jsdoc2docusaurus.js
(Pls I need help, I can’t find what is wrong 😅)
All reactions