func render_symbol_page(
package: String,
module: String,
module_page: String,
collection: &DocumentableCollection,
entry: &DocumentableEntry,
modules: &[ModuleLink],
symbols: &[SymbolLink]
) -> String
View Source
pub func render_symbol_page(
package: String,
module: String,
module_page: String,
collection: &DocumentableCollection,
entry: &DocumentableEntry,
modules: &[ModuleLink],
symbols: &[SymbolLink]
) -> String {
if is_top_level(entry: entry) {
let signature = signature_of(collection: collection, entry: entry)
let page = symbol_page(module_page: module_page, signature: signature)
let view = entry_view(
collection: collection,
module: module,
page: page,
symbols: symbols,
entry: entry,
documentation_heading_offset: 1
)
let name = declaration_name(entry: entry)
let catalog = catalog_navigation(
package: package.clone(),
modules: modules,
current: module.clone()
).into_string()
let wip = wip_banner(
description: collection.module_wip,
module: module,
page: page,
symbols: symbols
)
return render_symbol_view(
package: package,
module: module,
name: name,
view: view,
catalog_html: catalog,
wip_html: wip
)
}
""
}