Skip to content

Commit 23f27b3

Browse files
theletterfclaude
andcommitted
feat(nav-v2): add Extension points and Account isolated sections; remove back arrow
Adds two isolated nav sections (not shown in top bar): - Extension points (extend + kibana/logstash/beats/elasticsearch/integrations) - Account and preferences (cloud-account) Removes the back arrow from isolated sections — the UX for returning from an island is still under design review. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent ef333f8 commit 23f27b3

2 files changed

Lines changed: 18 additions & 11 deletions

File tree

config/navigation-v2.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2861,3 +2861,21 @@ nav:
28612861
url: /reference/
28622862
children:
28632863
- toc: docs-content://reference
2864+
2865+
- section: Extension points
2866+
url: /extend/
2867+
isolated: true
2868+
children:
2869+
- toc: docs-content://extend
2870+
children:
2871+
- toc: kibana://extend
2872+
- toc: logstash://extend
2873+
- toc: beats://extend
2874+
- toc: elasticsearch://extend
2875+
- toc: integrations://extend
2876+
2877+
- section: Account and preferences
2878+
url: /cloud-account/
2879+
isolated: true
2880+
children:
2881+
- toc: docs-content://cloud-account

src/Elastic.Documentation.Site/Navigation/_TocTree.cshtml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -71,17 +71,6 @@
7171
<div class="pages-nav-menu min-h-0 min-w-0 flex-1 overflow-y-auto">
7272
@if (Model.IsNavV2)
7373
{
74-
@if (Model.IsIsolatedSection)
75-
{
76-
<a href="/"
77-
@Model.Htmx.GetNavHxAttributes(true, null)
78-
class="flex items-center gap-2 px-4 py-3 text-sm font-semibold text-ink-light hover:text-blue-elastic border-b border-grey-20">
79-
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" class="w-4 h-4" aria-hidden="true">
80-
<path stroke-linecap="round" stroke-linejoin="round" d="M10.5 19.5 3 12m0 0 7.5-7.5M3 12h18"/>
81-
</svg>
82-
Back to Docs
83-
</a>
84-
}
8574
@* Root for V2-only CSS; JS still uses [data-nav-v2]. Scope overrides: .docs-sidebar-nav-v2 … *@
8675
<nav class="docs-sidebar-nav-v2" data-nav-v2 @if (Model.SectionUrl is not null) { <text>data-section-url="@Model.SectionUrl"</text> }>
8776
<ul class="docs-sidebar-nav-v2__tree block" id="nav-tree">

0 commit comments

Comments
 (0)