Hi, what do you think about adding an option to disable the side menu (not rendering it to the DOM)?
Rationale:
In my use case, I've been using CSS to hide the side menu as I have other sidebar to show.
And recently, I've bumped into an issue with the scroll (similar to https://github.com/Redocly/redoc/issues/1177), I ended up adding a callback to remove the side menu as it turns out to be the quick-fix:
Redoc.init(spec, {
disableSearch: true
},
document.querySelector("redoc"),
function() {
document.querySelector(".menu-content").remove();
});
If we get a greenlight on this, maybe we can work on a PR to make it happen 馃檪
Thanks!
I think this option can be added. Could you elaborate on your use case though?
@RomanHotsiy thanks, good to confirm that 馃檪
Our use case is that we have our own sidebar that contains hand-crafted links like API guideline, changelog, and top-level grouped API pages, etc. For each ReDoc API page, we also have a custom table of contents links aboe of the API doc, so we don't need the default ReDoc side menu (been hiding them via css).
I support this option. We use ReDoc exclusively for our COVID API docs, and would love to remove the right side bar.
Most helpful comment
@RomanHotsiy thanks, good to confirm that 馃檪
Our use case is that we have our own sidebar that contains hand-crafted links like API guideline, changelog, and top-level grouped API pages, etc. For each ReDoc API page, we also have a custom table of contents links aboe of the API doc, so we don't need the default ReDoc side menu (been hiding them via css).