Skip to content

Commit 32a7af9

Browse files
committed
Updated engineering.
1 parent ef18cb1 commit 32a7af9

File tree

8 files changed

+42
-24
lines changed

8 files changed

+42
-24
lines changed

code/PostSharp.Documentation.Consolidated/.idea/.idea.PostSharp.Documentation.dir/.idea/.gitignore

Lines changed: 13 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

code/PostSharp.Documentation.Consolidated/.idea/.idea.PostSharp.Documentation.dir/.idea/.name

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

code/PostSharp.Documentation.Consolidated/.idea/.idea.PostSharp.Documentation.dir/.idea/encodings.xml

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

code/PostSharp.Documentation.Consolidated/.idea/.idea.PostSharp.Documentation.dir/.idea/indexLayout.xml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

code/PostSharp.Documentation.Consolidated/.idea/.idea.PostSharp.Documentation.dir/.idea/vcs.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

eng/src/PostSharpDocCrawler.cs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,17 @@
11
// Copyright (c) SharpCrafters s.r.o. See the LICENSE.md file in the root directory of this repository root for details.
2-
32
using HtmlAgilityPack;
43
using PostSharp.Engineering.BuildTools.Search.Crawlers;
54
using System;
65
using System.Linq;
76

87
namespace BuildPostSharpDocumentation;
98

10-
internal class PostSharpDocCrawler : DocFxCrawler
9+
internal class PostSharpDocCrawler : DocFxDocumentParser
1110
{
12-
protected override BreadcrumbInfo GetBreadcrumbData( HtmlNode[] breadcrumbLinks )
11+
protected override BreadcrumbInfo GetBreadcrumbData( string[] breadcrumbLinks )
1312
{
1413
var relevantBreadCrumbTitles = breadcrumbLinks
1514
.Skip( 4 )
16-
.Select( n => n.GetText() )
1715
.ToArray();
1816

1917
var breadcrumb = string.Join(
@@ -24,7 +22,7 @@ protected override BreadcrumbInfo GetBreadcrumbData( HtmlNode[] breadcrumbLinks
2422

2523
var category = breadcrumbLinks.Length < 5
2624
? null
27-
: NormalizeCategoryName( breadcrumbLinks.Skip( 4 ).First().GetText() );
25+
: NormalizeCategoryName( breadcrumbLinks.Skip( 4 ).First() );
2826

2927
var isApiReference = category?.Equals( "api reference", StringComparison.OrdinalIgnoreCase ) ?? false;
3028

@@ -58,4 +56,4 @@ protected override BreadcrumbInfo GetBreadcrumbData( HtmlNode[] breadcrumbLinks
5856
false,
5957
isApiReference );
6058
}
61-
}
59+
}

eng/src/Program.cs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
using PostSharp.Engineering.BuildTools.Search;
1414
using PostSharp.Engineering.DocFx;
1515
using PostSharpDocumentationDependencies = PostSharp.Engineering.BuildTools.Dependencies.Definitions.PostSharpDependencies;
16-
using PostSharpDependencies = PostSharp.Engineering.BuildTools.Dependencies.Definitions.PostSharpDependencies.V2025_1;
16+
using PostSharpDependencies = PostSharp.Engineering.BuildTools.Dependencies.Definitions.PostSharpDependencies.V2025_1_GitHub;
1717

1818
const string docPackageFileName = "PostSharp.Doc.zip";
1919

@@ -57,12 +57,15 @@
5757
} ),
5858
Extensions =
5959
[
60+
6061
// Run `b generate-scripts` after changing these parameters.
61-
new UpdateSearchProductExtension<UpdatePostSharpDocumentationCommand>(
62+
new UpdateSearchProductExtension(
6263
"https://typesense.postsharp.net",
6364
"postsharpdoc",
6465
"https://doc-production.postsharp.net/sitemap.xml",
65-
true )
66+
() => new PostSharpDocCrawler(),
67+
["PostSharp"])
68+
6669
]
6770
};
6871

eng/src/UpdatePostSharpDocumentationCommand.cs

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)