Skip to content

Commit 256e8ff

Browse files
authored
Ensure detection rules while hidden still allow indexing if the env allows it (#1132)
1 parent 9cfa0a7 commit 256e8ff

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Elastic.Markdown/Slices/HtmlWriter.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
using System.Collections.Concurrent;
66
using System.IO.Abstractions;
7+
using Elastic.Markdown.Extensions.DetectionRules;
78
using Elastic.Markdown.IO;
89
using Elastic.Markdown.IO.Discovery;
910
using Elastic.Markdown.IO.HistoryMapping;
@@ -132,7 +133,7 @@ private async Task<string> RenderLayout(MarkdownFile markdown, MarkdownDocument
132133
UrlPathPrefix = markdown.UrlPathPrefix,
133134
AppliesTo = markdown.YamlFrontMatter?.AppliesTo,
134135
GithubEditUrl = editUrl,
135-
AllowIndexing = DocumentationSet.Build.AllowIndexing && !markdown.Hidden,
136+
AllowIndexing = DocumentationSet.Build.AllowIndexing && (markdown is DetectionRuleFile || !markdown.Hidden),
136137
CanonicalBaseUrl = DocumentationSet.Build.CanonicalBaseUrl,
137138
GoogleTagManager = DocumentationSet.Build.GoogleTagManager,
138139
Features = DocumentationSet.Configuration.Features,

0 commit comments

Comments
 (0)