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.