In some huge scale sites, we may need to display different pages according to the switching of different modes, such as the react and vue modes of a tool library document.
At this time, clicking the mode switching button is expected to cause the sidebar content to change.
What does the proposed API look like?
It is hoped that context configuration will be supported in _meta.jaon, and by injecting data-context when generating the sidebar dom, users can control the display of sidebar via css when clicking the switch button, so as to achieve the purpose of controlling sidebar content display.
What problem does this feature solve?
In some huge scale sites, we may need to display different pages according to the switching of different modes, such as the react and vue modes of a tool library document.
At this time, clicking the mode switching button is expected to cause the sidebar content to change.
What does the proposed API look like?
It is hoped that
context
configuration will be supported in_meta.jaon
, and by injectingdata-context
when generating the sidebar dom, users can control the display of sidebar via css when clicking the switch button, so as to achieve the purpose of controlling sidebar content display.