In a support discussion about integrating the Pavilion Layouts Plugin with Discourse Docs, Fma965 asks how to display layouts on Docs pages, noting their absence on Docs - CyanLabs Official Community despite working elsewhere on the site. osioke tags keegan for input. keegan explains that the Layouts plugin currently doesn’t support custom contexts like the /docs route created by the Docs plugin, though it may be considered for future development. Fma965 seeks guidance on implementing a workaround, acknowledging limited Ruby experience. keegan points to a specific commit where angus added new contexts, suggesting it as a starting point. Fma965 thanks them and plans to review the code.
Unfortunately, the Layouts plugin at this time doesn’t support custom contexts.
Although the layouts plugin supports a variety of Discourse routes, since the docs plugin creates a new custom route at /docs, it’s not currently possible to add layouts there.
Perhaps this is a feature we may consider including in the future.