How to extend the functionality of docsVersionDropdown #8057
Unanswered
andreipope
asked this question in
Q&A
Replies: 1 comment 4 replies
-
|
I would need to see a POC to understand the problem. If Stoplight gets reloaded on each page navigation (pathname updated, version updated, i18n locale switched...), then you should have a way to tell it to restart on a given page, using querystring, hash, localstorage or whatever. If it's not possible, I don't know how it could be integrated into Docusaurus or anything else. Never heard ot Stoplight before, what did you choose it instead of one of the existing community openapi plugins?
Note it's also possible to build something custom with MDX and React, see: |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I'm using Docusaurus to build a documentation website that will include an API Reference section rendered using Stoplight Elements. The problem I've stumbled upon is that Stoplight Elements doesn't support SSR and every time you try to switch the version it will jump to the home page. I'd like to know if it's possible to wrap and extend the functionality of the version dropdown so that users could select the version of the reference section that they want to see.
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions