Make topbar doc code consistent with example