Skip to content

Show collapsed directory when custom wiki sidebar exists

Annabel Dunstone Gray requested to merge show-both-wiki-sidebars into master

What does this MR do and why?

  • Add expand/collapse button to Pages header
  • Change Edit sidebar text depending on whether custom sidebar exists or not
  • Auto collapse directory if custom sidebar exists

Screenshots or screen recordings

When custom sidebar exists:

Before After (default, collapsed) After (expanded)
Screenshot_2024-05-31_at_3.20.50_PM Screenshot_2024-05-31_at_3.15.55_PM Screenshot_2024-06-04_at_10.25.22_AM

When no custom sidebar (no change):

Screenshot_2024-05-31_at_3.16.10_PM

How to set up and validate locally

  • Go to wiki
  • Create some pages
  • Create custom sidebar

Links

Edited by Annabel Dunstone Gray

Merge request reports