Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
- Add sitemap
- Add GitHub link and badges
- Delete API docs before building
  • Loading branch information
russcam committed Nov 18, 2024
1 parent 9a6f697 commit 5c49509
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 3 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
[![NuGet Release][nuget image]][nuget url]
[![Build Status](https://github.com/searchpioneer/lingua-dotnet/actions/workflows/dotnet.yml/badge.svg)](https://github.com/searchpioneer/lingua-dotnet/actions/workflows/dotnet.yml)
[![license badge][license badge]][license url]
[![docs][docs badge]][docs url]

Ranklib for .NET is a hardened port to .NET of [RankLib](https://sourceforge.net/p/lemur/wiki/RankLib/),
a popular open source learning to rank library written in Java. It maintains compatibility with input and output
Expand Down Expand Up @@ -72,4 +73,6 @@ The following metrics are implemented to measure the effectiveness of ranking
[nuget url]: https://www.nuget.org/packages/SearchPioneer.RankLib/
[nuget image]: https://img.shields.io/nuget/v/SearchPioneer.RankLib.svg
[license badge]: https://img.shields.io/badge/license-Apache%202.0-blue.svg
[license url]: https://www.apache.org/licenses/LICENSE-2.0
[license url]: https://www.apache.org/licenses/LICENSE-2.0
[docs badge]: https://img.shields.io/badge/documentation-gray.svg
[docs url]: https://searchpioneer.github.io/ranklib-dotnet
4 changes: 4 additions & 0 deletions build/Build/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@

Target(Docs, () =>
{
foreach (var file in Directory.EnumerateFiles("docs/Docs/api")
.Where(file => file.EndsWith(".yml") || file.EndsWith(".manifest")))
File.Delete(file);

Run("docfx", "docs/Docs/docfx.json --serve");
});

Expand Down
5 changes: 5 additions & 0 deletions docs/Docs/docfx.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@
"_lang": "en",
"_enableSearch": true
},
"sitemap": {
"baseUrl": "https://searchpioneer.github.io/ranklib-dotnet/",
"priority": 0.1,
"changefreq": "daily"
},
"template": [
"default",
"modern",
Expand Down
2 changes: 1 addition & 1 deletion docs/Docs/documentation/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ dotnet tool install -g SearchPioneer.RankLib.Cli --prerelease
To see all the commands supported by the command line tool

```sh
dotnet-ranklib --help~~~~
dotnet-ranklib --help
```
2 changes: 1 addition & 1 deletion docs/Docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,4 @@ The following metrics are implemented to measure the effectiveness of ranking
[nuget url]: https://www.nuget.org/packages/SearchPioneer.RankLib/
[nuget image]: https://img.shields.io/nuget/v/SearchPioneer.RankLib.svg
[license badge]: https://img.shields.io/badge/license-Apache%202.0-blue.svg
[license url]: https://www.apache.org/licenses/LICENSE-2.0
[license url]: https://www.apache.org/licenses/LICENSE-2.0
9 changes: 9 additions & 0 deletions docs/Docs/template/public/main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
export default {
iconLinks: [
{
icon: 'github',
href: 'https://github.com/searchpioneer/ranklib-dotnet',
title: 'GitHub'
}
]
}

0 comments on commit 5c49509

Please sign in to comment.