-
-
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
How can I initialise docsify on a later request #804
Comments
You can delay loading the docsify script. |
Hmm, presuming you're suggesting I use a Not quite what I want. I've got two window components in the same index.html, one for Vue and one for docsify. Vue is handling the whole of my app, including auth. I need to pass the auth token to docsify from Vue and then "start" docsify, because starting it before I have the auth token passed as a header gives me a 404 request (expected for our configuration). Which is why I'm asking if there's a way to reinitialise, or only start it when I want it to be started. I wasn't able to find anything in the docs / wiki that would enable this though? |
You Can try something like this: Lines 42 to 59 in d80aa21
|
Of course this is ugly any maybe even doesn't work for you since some of the function might not be expoed. I will implement a single function which will be exposed to init docsify. In the config you can disable automatic initialization |
The above is too difficult to do (too many manual steps, custom bundle building, and requires further manual intervention to bring in new Docsify features when they are released). This will be addressed as a non-breaking change in #799 |
If I want to delay the init of docsify to then trigger it on my own terms, is that possible?
The text was updated successfully, but these errors were encountered: