Skip to content

Commit

Permalink
Fix multiple issues with links going to TestFramework instead of Core
Browse files Browse the repository at this point in the history
  • Loading branch information
paulirwin committed Oct 10, 2024
1 parent 8290f57 commit 189a213
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
1 change: 0 additions & 1 deletion websites/apidocs/docfx.site.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@
"_site/api/sandbox/xrefmap.yml",
"_site/api/spatial/xrefmap.yml",
"_site/api/suggest/xrefmap.yml",
"_site/api/test-framework/xrefmap.yml",
"_site/api/demo/xrefmap.yml"
],
"dest": "_site",
Expand Down
9 changes: 2 additions & 7 deletions websites/apidocs/docs.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -192,23 +192,18 @@ if ($? -and $DisableBuild -eq $false) {
}

if ($?) {

# Before we build the site we have to clear the frickin docfx cache!
# else the xref links don't work on the home page. That is crazy.
Remove-Item (Join-Path -Path $ApiDocsFolder "obj\.cache") -recurse -force -ErrorAction SilentlyContinue

$DocFxLog = Join-Path -Path $ApiDocsFolder "obj\docfx.site.json.log"

if ($ServeDocs -eq $false) {

# build the output
Write-Host "Building docs..."
& dotnet tool run docfx $DocFxJsonSite --log "$DocFxLog" --logLevel $LogLevel --debug
& dotnet tool run docfx $DocFxJsonSite --log "$DocFxLog" --logLevel $LogLevel --debug --maxParallelism 1
}
else {
# build + serve (for testing)
Write-Host "starting website..."
& dotnet tool run docfx $DocFxJsonSite --log "$DocFxLog" --logLevel $LogLevel --serve --port $StagingPort --debug
& dotnet tool run docfx $DocFxJsonSite --log "$DocFxLog" --logLevel $LogLevel --serve --port $StagingPort --debug --maxParallelism 1
}
}

Expand Down
5 changes: 4 additions & 1 deletion websites/apidocs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ on some of the conceptual or inner details of Lucene:

## Libraries

<!-- NOTE: The namespace collisions in test-framework require it to be linked without
a xref style link. This also is why test-framework's xrefmap is not in docfx.site.json. -->

- <xref:Lucene.Net> - Core library
- <xref:Lucene.Net.Analysis.Common> - Analyzers for indexing content in different languages and domains
- [Lucene.Net.Analysis.Kuromoji](xref:Lucene.Net.Analysis.Ja) - Japanese Morphological Analyzer
Expand All @@ -65,7 +68,7 @@ on some of the conceptual or inner details of Lucene:
- <xref:Lucene.Net.Sandbox> - Various third party contributions and new ideas
- [Lucene.Net.Spatial](xref:Lucene.Net.Spatial) - Geospatial search
- <xref:Lucene.Net.Suggest> - Auto-suggest and Spell-checking support
- <xref:Lucene.Net.TestFramework> - Framework for testing Lucene-based applications
- [Lucene.Net.TestFramework](api/test-framework/overview.html) - Framework for testing Lucene-based applications

### Tools

Expand Down

0 comments on commit 189a213

Please sign in to comment.