Skip to content

Commit 0d2ef12

Browse files
authored
Include site sections on mobile sidenav (#13085)
Also renames "User Guides" to just "Guides" as we prefer "Developers" over "Users" and the title case is inconsistent with what we use elsewhere. Fixes #13084
1 parent a70f41a commit 0d2ef12

4 files changed

Lines changed: 23 additions & 25 deletions

File tree

site/lib/src/components/layout/header.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ class DashHeader extends StatelessComponent {
5454
ul(classes: 'nav-items', [
5555
_NavItem(
5656
href: '/',
57-
label: 'User Guides',
57+
label: 'Guides',
5858
isActive: activeEntry == ActiveNavEntry.home,
5959
),
6060
_NavItem(

site/lib/src/components/layout/sidenav.dart

Lines changed: 20 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -30,28 +30,26 @@ final class DashSideNav extends StatelessComponent {
3030
final activeEntry = activeNavEntry(context.page.url);
3131

3232
return div(id: 'sidenav', [
33-
// Only show the nav items if the tutorial is active for now.
34-
if (activeEntry == ActiveNavEntry.learn)
35-
ul(classes: 'navbar-nav', [
36-
_TopNavItem(
37-
href: '/',
38-
label: 'Home',
39-
iconId: 'asterisk',
40-
active: activeEntry == ActiveNavEntry.home,
41-
),
42-
_TopNavItem(
43-
href: '/learn',
44-
label: 'Learn',
45-
iconId: 'play_lesson',
46-
active: activeEntry == ActiveNavEntry.learn,
47-
),
48-
const _TopNavItem(
49-
href: 'https://api.flutter.dev',
50-
label: 'Reference',
51-
iconId: 'api',
52-
),
53-
const _SideNavDivider(),
54-
]),
33+
ul(classes: 'navbar-nav', [
34+
_TopNavItem(
35+
href: '/',
36+
label: 'Guides',
37+
iconId: 'asterisk',
38+
active: activeEntry == ActiveNavEntry.home,
39+
),
40+
_TopNavItem(
41+
href: '/learn',
42+
label: 'Learn',
43+
iconId: 'play_lesson',
44+
active: activeEntry == ActiveNavEntry.learn,
45+
),
46+
const _TopNavItem(
47+
href: 'https://api.flutter.dev',
48+
label: 'Reference',
49+
iconId: 'api',
50+
),
51+
const _SideNavDivider(),
52+
]),
5553

5654
nav([
5755
_SideNavLevel(

site/lib/src/style_hash.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
// dart format off
33

44
/// The generated hash of the `main.css` file.
5-
const generatedStylesHash = 'D1OovaDfTpf7';
5+
const generatedStylesHash = '';

src/content/release/whats-new.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ significant changes:
3939
both Flutter and Dart, as announced in a recent [blog post][fwe].
4040
You can find the Flutter [learning pathway][] under the **Learn**
4141
tab at the top of [docs.flutter.dev][]. To return to the rest of the site,
42-
select the **User Guides** tab. As always, the **Reference**
42+
select the **Guides** tab. As always, the **Reference**
4343
tab takes you to the [Flutter API docs][].
4444

4545
* Flutter and Dart now have an [official glossary][].

0 commit comments

Comments
 (0)