feat: add folder-based tree sidebar to org wiki #680
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
The org wiki sidebar currently shows a flat page list. Add folder-based tree navigation (collapsible
<details>menus) matching the repo wiki pattern, up to 2 levels deep.Behavior
_Sidebar.mdexists → render its content (takes precedence, overrides auto-generated tree)_Sidebar.md→ show auto-generated folder tree with collapsible folders<details open>for expand/collapseFiles Modified
routers/web/org/wiki.go— AddedOrgWikiTreeNodetype andbuildOrgWikiTree()function, replaced flat page listtemplates/org/wiki/view.tmpl— Updated sidebar to render tree with folder icons and collapsible menusTesting Checklist (manual UI)
<details>with expand/collapse_Sidebar.mdoverrides auto-generated tree when present_Sidebar.mdand_Footer.mdexcluded from page list