Skip to content

Commit 1c7917a

Browse files
committed
touchups
1 parent c5f5b15 commit 1c7917a

File tree

4 files changed

+1
-13
lines changed

4 files changed

+1
-13
lines changed

src/Elastic.Documentation.Navigation/Assembler/SiteNavigation.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
using Elastic.Documentation.Configuration.Assembler;
88
using Elastic.Documentation.Configuration.DocSet;
99
using Elastic.Documentation.Extensions;
10-
using Elastic.Documentation.Navigation.Isolated;
1110
using Elastic.Documentation.Navigation.Isolated.Node;
1211

1312
namespace Elastic.Documentation.Navigation.Assembler;
@@ -211,9 +210,6 @@ void IAssignableChildrenNavigation.SetNavigationItems(IReadOnlyCollection<INavig
211210
node.NavigationIndex = index;
212211
homeAccessor.HomeProvider = new NavigationHomeProvider(pathPrefix, root);
213212

214-
//var wrapped = new SiteTableOfContentsNavigation<IDocumentationFile>(node, homeAccessor.HomeProvider, parent, root);
215-
//parent = wrapped;
216-
217213
var children = new List<INavigationItem>();
218214

219215
// Always start with the node's existing children and update their HomeProvider

src/Elastic.Documentation.Navigation/IDocumentationFile.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,10 @@
44

55
namespace Elastic.Documentation.Navigation;
66

7-
/// <summary>
87
/// Represents a documentation file that can be used in navigation.
98
/// Extends <see cref="INavigationModel"/> with a navigation title.
10-
/// </summary>
119
public interface IDocumentationFile : INavigationModel
1210
{
13-
/// <summary>
1411
/// Gets the title to display in navigation for this documentation file.
15-
/// </summary>
1612
string NavigationTitle { get; }
1713
}

src/Elastic.Documentation.Navigation/INavigationItem.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,7 @@ public interface INavigationItem
2323
/// Gets the root navigation item.
2424
IRootNavigationItem<INavigationModel, INavigationItem> NavigationRoot { get; }
2525

26-
/// <summary>
2726
/// Gets or sets the parent navigation item.
28-
/// </summary>
2927
INodeNavigationItem<INavigationModel, INavigationItem>? Parent { get; set; }
3028

3129
bool Hidden { get; }
@@ -56,9 +54,7 @@ public interface INodeNavigationItem<out TIndex, out TChildNavigation> : INaviga
5654
/// Gets the index model associated with this node.
5755
ILeafNavigationItem<TIndex> Index { get; }
5856

59-
/// <summary>
6057
/// Gets the collection of child navigation items.
61-
/// </summary>
6258
IReadOnlyCollection<TChildNavigation> NavigationItems { get; }
6359
}
6460

src/Elastic.Documentation.Navigation/NavigationItemExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ ILeafNavigationItem<TModel> LookupIndex()
2323
{
2424
foreach (var item in items)
2525
{
26-
// Check for exact type match
26+
// Check for the exact type match
2727
if (item is ILeafNavigationItem<TModel> leaf)
2828
return leaf;
2929

0 commit comments

Comments
 (0)