-
Notifications
You must be signed in to change notification settings - Fork 43
Expand file tree
/
Copy pathNavigationSection.cs
More file actions
31 lines (28 loc) · 979 Bytes
/
NavigationSection.cs
File metadata and controls
31 lines (28 loc) · 979 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// Licensed to Elasticsearch B.V under one or more agreements.
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
// See the LICENSE file in the project root for more information
namespace Elastic.Documentation.Navigation.V2;
/// <summary>
/// Lightweight data carrier for a navigation section, used by the rendering layer
/// to drive the secondary nav bar tabs and resolve which sidebar to show.
/// </summary>
public record NavigationSection(
string Id,
string Label,
string Url,
bool Isolated,
IReadOnlyList<INavigationItem> NavigationItems
);
/// <summary>
/// A nav island nested within a parent section. When a page belongs to an island,
/// the sidebar shows only the island's tree with a back arrow to the parent section.
/// </summary>
public record NavigationIsland(
string Id,
string Label,
string Url,
string SourceTocRootId,
NavigationSection ParentSection,
string BackUrl,
IReadOnlyList<INavigationItem> NavigationItems
);