ugly hack to make the docs build

This commit is contained in:
Folkert 2022-07-14 22:15:19 +02:00
parent 632f153b3e
commit b6224a3806
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C
2 changed files with 10 additions and 1 deletions

View file

@ -4374,8 +4374,10 @@ fn canonicalize_and_constrain<'a>(
ModuleNameEnum::Platform => None,
ModuleNameEnum::App(_) => None,
ModuleNameEnum::Interface(name) | ModuleNameEnum::Hosted(name) => {
let mut scope = module_output.scope.clone();
scope.add_docs_imports();
let docs = crate::docs::generate_module_docs(
module_output.scope.clone(),
scope,
name.as_str().into(),
&parsed_defs_for_docs,
);