+ @if (!string.IsNullOrEmpty(Model.Description))
+ {
+
@Model.Description
+ }
+
@GetIconSvg("documents", "fill-current size-3") @Model.PageCount pages
diff --git a/src/Elastic.Codex/Navigation/CodexIndexPage.cs b/src/Elastic.Codex/Navigation/CodexIndexPage.cs
index e4d68b3390..e337defa1e 100644
--- a/src/Elastic.Codex/Navigation/CodexIndexPage.cs
+++ b/src/Elastic.Codex/Navigation/CodexIndexPage.cs
@@ -38,6 +38,11 @@ public record CodexDocumentationSetInfo
///
public required string Url { get; init; }
+ ///
+ /// The repo-scoped path segment (e.g. "/r/beacon"), derived from .
+ ///
+ public string RepoPath => $"/r/{Name}";
+
///
/// The group id this documentation set belongs to, if any.
///
diff --git a/src/Elastic.Codex/Navigation/CodexNavigation.cs b/src/Elastic.Codex/Navigation/CodexNavigation.cs
index a49df4f814..c3b75fab4c 100644
--- a/src/Elastic.Codex/Navigation/CodexNavigation.cs
+++ b/src/Elastic.Codex/Navigation/CodexNavigation.cs
@@ -97,14 +97,13 @@ private void ProcessDocumentationSet(CodexDocumentationSetReference docSetRef)
if (docSetNav is not IRootNavigationItem
rootNavItem)
return;
- var pathPrefix = $"{codex.Url}/r/{repoName}";
var docSetInfo = CreateDocumentationSetInfo(docSetRef, rootNavItem, repoName);
_docSetInfos.Add(docSetInfo);
if (!string.IsNullOrEmpty(docSetRef.Group))
- AttachToGroup(docSetRef, docSetNav, rootNavItem, pathPrefix, docSetInfo);
+ AttachToGroup(docSetRef, docSetNav, rootNavItem, docSetInfo.Url, docSetInfo);
else
- AttachToCodexRoot(docSetNav, rootNavItem, pathPrefix);
+ AttachToCodexRoot(docSetNav, rootNavItem, docSetInfo.Url);
}
private CodexDocumentationSetInfo CreateDocumentationSetInfo(