nitc :: DocPage :: init_topmenu
# Build top menu template if any
fun init_topmenu(doc: DocModel) do
topmenu = new DocTopMenu
var home = new Link("index.html", "Nitdoc")
var custom_brand = doc.custom_brand
if custom_brand != null then
topmenu.brand = new Link("index.html", custom_brand)
topmenu.items.add new ListItem(home)
else
topmenu.brand = home
end
end
src/doc/static/static_html.nit:58,2--71,4