Skip to content

Commit c5740d4

Browse files
Remove comment
1 parent 0d82286 commit c5740d4

File tree

1 file changed

+0
-26
lines changed

1 file changed

+0
-26
lines changed

EssentialCSharp.Web/Views/Shared/_Layout.cshtml

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -266,32 +266,6 @@
266266
@await RenderSectionAsync("Scripts", required: false);
267267
<script>
268268
@{
269-
// object GetItems(IEnumerable<SiteMapping> chapterItems, int indentLevel) => chapterItems
270-
// // Skip the chapter entry itself
271-
// .Skip(1)
272-
// // Examine all items up until we move up to a level higher than where we're starting,
273-
// // which would indicate that we've reached the end of the entries nested under `indentationLevel`
274-
// .TakeWhile(i => i.IndentLevel >= indentLevel)
275-
// // Of all the multi-level descendants we found, take only those at the current level that we're wanting to render.
276-
// .Where(i => i.IndentLevel == indentLevel)
277-
// .Select(i => new
278-
// {
279-
// Level = indentLevel,
280-
// Key = i.Keys,
281-
// Href = $"{i.Keys.First()}#{i.AnchorId}",
282-
// Title = i.RawHeading,
283-
// // Any children of this node will be /after/ this node,
284-
// // so skip any items that are /before/ the current node.
285-
// Items = GetItems(chapterItems.SkipWhile(q => i.Keys.First() != q.Keys.First()), indentLevel + 1)
286-
// });
287-
// var tocData = _SiteMappings.SiteMappings.GroupBy(x => x.ChapterNumber).OrderBy(x => x.Key).Select(x => new
288-
// {
289-
// Level = 0,
290-
// Key = x.First().Keys.First(),
291-
// Href = $"{x.First().Keys.First()}#{x.First().AnchorId}",
292-
// Title = $"Chapter {x.Key}: {x.First().ChapterTitle}",
293-
// Items = GetItems(x, 1)
294-
// });
295269
var tocData = _SiteMappings.GetTocData();
296270
}
297271

0 commit comments

Comments
 (0)