22// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
33// See the LICENSE file in the project root for more information
44
5- using System . IO . Abstractions ;
65using Elastic . Documentation . Configuration . Builder ;
76using Elastic . Documentation . Configuration . DocSet ;
8- using Elastic . Documentation . Navigation ;
97
108namespace Elastic . Documentation . Configuration . Plugins . DetectionRules . TableOfContents ;
119
@@ -50,7 +48,7 @@ private IReadOnlyCollection<ITableOfContentsItem> CreateTableOfContentItems(Conf
5048
5149 private IReadOnlyCollection < ITableOfContentsItem > ReadDetectionRuleFolder ( IDocumentationSetContext context , string detectionRuleFolder )
5250 {
53- var detectionRulesFolder = System . IO . Path . Combine ( ParentPath , detectionRuleFolder ) . TrimStart ( System . IO . Path . DirectorySeparatorChar ) ;
51+ var detectionRulesFolder = Path . Combine ( ParentPath , detectionRuleFolder ) . TrimStart ( Path . DirectorySeparatorChar ) ;
5452 var fs = context . ReadFileSystem ;
5553 var sourceDirectory = context . DocumentationSourceDirectory ;
5654 var directory = fs . DirectoryInfo . New ( fs . Path . GetFullPath ( fs . Path . Combine ( sourceDirectory . FullName , detectionRulesFolder ) ) ) ;
@@ -60,10 +58,10 @@ private IReadOnlyCollection<ITableOfContentsItem> ReadDetectionRuleFolder(IDocum
6058 . Where ( f => ! f . Directory ! . Attributes . HasFlag ( FileAttributes . Hidden ) && ! f . Directory ! . Attributes . HasFlag ( FileAttributes . System ) )
6159 . Where ( f => f . Extension is ".md" or ".toml" )
6260 . Where ( f => f . Name != "README.md" )
63- . Where ( f => ! f . FullName . Contains ( $ "{ System . IO . Path . DirectorySeparatorChar } _deprecated{ System . IO . Path . DirectorySeparatorChar } ") )
61+ . Where ( f => ! f . FullName . Contains ( $ "{ Path . DirectorySeparatorChar } _deprecated{ Path . DirectorySeparatorChar } ") )
6462 . Select ( f =>
6563 {
66- var relativePath = System . IO . Path . GetRelativePath ( sourceDirectory . FullName , f . FullName ) ;
64+ var relativePath = Path . GetRelativePath ( sourceDirectory . FullName , f . FullName ) ;
6765 if ( f . Extension == ".toml" )
6866 {
6967 var rule = DetectionRule . From ( f ) ;
0 commit comments