-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature request] embed docsify on third party site #799
Comments
This would be great to make this easier (f.e. not overriding existing |
With the refactors that I recently did to move Basically, we just tell Rollup to compile an additional bundle using Users of the new bundle will be able to do this: new Docsify({
el: '#somewhere',
}) This will be very handy for integrating into existing websites while keeping them single-page apps, for example. |
Any hope for this? |
There are a number of issues with using docsify as a component. For example, it registers global handlers when setting up routing. That is, teardown will be a problem. (And I think it might even interfere with existing |
Let's list the things we need to fix right now to get this is good enough shape with minimal changes (bigger changes for later):
@pauldraper Can you expand on this? Would you like Docsify to perform routing internally without modifying the URL path (because the outer application is doing that)? Or you still want the same behavior, but with ability to teardown when switching away from a docsify-containing view? |
Modifying the URL path is fine (for me at least). But I do need to teardown listeners, or at least not cause a memory leak by double registering them. I haven't looked at the implementation. |
This is now possible with https://Docsify-This.net which is open source and can be further customized including hosting your own instance, so closing this issue. |
Docsify-this, unless I'm misunderstanding what "docsify-this" does (generate a complete public website based on public markdown files), feels somewhat like the opposite of what this issue is requesting? |
Docsify is great but I find I can only use it in a dedicated website. It would be more flexible if docsify can be embedded on other sites. Although it's possible in theory but in practice I found that it doesn't work well.
For example: I wanted to use docsify to generate the documentation on this site:
https://uis-azr-test-fusionapi-eus1.portal.azure-api.net/user-guide-2
When I embedded docsify into the html if found that it completely changed the layout of my website. I think one of the reasons is that it modified the
nav
of the website.I ended up using flatdoc which doesn't have the same features but it's less intrusive on the host website.
The text was updated successfully, but these errors were encountered: