Commit 8db9672
committed
fix(docs): suppress AppSidebar on /docs so the docs nav is the only sidebar
Two-sidebar stack (AppSidebar at left edge of viewport + the in-page
DocsSidebar right next to it) read as cluttered even after the prior
collision fix. ``/docs`` ships with its own dense docs nav that
wants to be the primary sidebar while reading; the global app nav is
visual noise in that mode.
Wrapped the AppSidebar render, its mobile hamburger toggle, and the
mobile drawer backdrop in a ``hideAppSidebar = location.pathname.
startsWith("/docs")`` guard inside ``Layout.jsx``. When signed-in
users land on /docs, they now see only the docs sidebar inside
``.main``; the page header (logo + OrgSwitcher + plan badge +
NotificationBell + UserButton) stays as the global affordance for
leaving docs.
Other ``SmartLayout``-routed pages (/pricing, /sentinel) still render
the AppSidebar — the pattern is per-route, not for everything that
happens to share PublicLayout-able URLs. If we add another page in
the future that owns its own primary nav, just extend the same
``startsWith`` check.
Verification: ``npm run build`` clean (485ms), ``npm run test`` 55/55
green.1 parent 34d1110 commit 8db9672
1 file changed
Lines changed: 30 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
19 | 27 | | |
20 | 28 | | |
21 | 29 | | |
| |||
38 | 46 | | |
39 | 47 | | |
40 | 48 | | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
50 | 60 | | |
51 | 61 | | |
52 | 62 | | |
| |||
92 | 102 | | |
93 | 103 | | |
94 | 104 | | |
95 | | - | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
96 | 108 | | |
97 | 109 | | |
98 | 110 | | |
99 | 111 | | |
100 | 112 | | |
101 | 113 | | |
102 | 114 | | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
109 | 123 | | |
110 | 124 | | |
111 | 125 | | |
| |||
0 commit comments