Skip to content

Commit f07f4e0

Browse files
committed
add link to docs version 5.12.0
1 parent c2946bc commit f07f4e0

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

.github/workflows/docs.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ jobs:
110110
uses: chabad360/htmlproofer@master
111111
with:
112112
directory: ./artifacts/docs/preview
113-
arguments: --ignore-urls /api/,/docs/ --allow-hash-href --allow-missing-href --assume-extension --disable-external --no-check_external_hash
113+
arguments: --ignore-urls /api/,/docs/,/5.12.0/ --allow-hash-href --allow-missing-href --assume-extension --disable-external --no-check_external_hash
114114
-
115115
name: '[Reviewdog Reporter]'
116116
id: reporter

docs/input/_Navbar.cshtml

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
@{
2+
List<Tuple<string, string>> pages = new List<Tuple<string, string>>
3+
{
4+
Tuple.Create("Documentation", Context.GetLink("docs")),
5+
Tuple.Create("API", Context.GetLink("api")),
6+
Tuple.Create("<i></i> 5.12.0", "/5.12.0/docs"),
7+
};
8+
foreach(Tuple<string, string> p in pages)
9+
{
10+
string active = Context.GetLink(Document).StartsWith(p.Item2) ? "active" : null;
11+
<li class="@active"><a href="@p.Item2">@Html.Raw(p.Item1)</a></li>
12+
}
13+
}

0 commit comments

Comments
 (0)