Replies: 1 comment 3 replies
-
Docusaurus is a React framework, and not meant to be embedded into another framework. Making Docusaurus a plugin to another framework would be complex, and it's likely that we'd only have the bandwidth to support one integration (for example Astro, Next.js or Remix). We considered that but I'm not sure it's the direction we want to take, considering the complexity to make it work on a single framework, not even mentioning making it work on multiple frameworks. Also there are already existing solutions covering this:
If you want:
You don't need an iframe for that, just use Or build your Docusaurus site and then copy the build output to your main site's You can also have a |
Beta Was this translation helpful? Give feedback.
-
while this is a great project that creates a beautiful stand alone documentation website, it would be even more useful if docusaurus could be used within an exisiting react app that inherits any layout or styles already provisioned in the react app.
Most documentation websites are part of a larger project - the docs/ endpoint is typically part of a larger project that the documentation pertains to.
A standalone documentation site deployed to gitpages or some other 3rd party site is not as helpful as the ability to create documentation for an exisiting project hosted at any domain.
Right now it seems the only way to have docusaurus exist alongside an exisiting react application is to build the docusaurus site and then embed the build/ directory assets within an iframe...
or to create a subdirectory that points to /docs as a standalone react app.
Both of those options aren't ideal. Since docusaurus is built upon react anyway, would it be too much effort to provide a docusaurus-react library that can be imported and used within an exisiting react project so that components and pages could be built that flow seamlessly into the structure of the react application?
Beta Was this translation helpful? Give feedback.
All reactions