blob: 19484cd44c119b0d37d5abb6536479b1e4b7faf4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
<%@ Page Language="C#" %>
<%@ Import Namespace="System.IO" %>
<%@ Import Namespace="System.Linq" %>
<script runat="server">
protected virtual void Page_Load(object sender, EventArgs e) {
string apiPath = Path.GetDirectoryName(Request.PhysicalPath);
string htmlPath = Path.Combine(apiPath, "html");
var namespaceFiles = Directory.GetFiles(htmlPath, "N_*.htm*").Select(ns => Path.GetFileName(ns));
NamespaceRepeater.DataSource = namespaceFiles.Select(ns => new {
Href = "html/" + ns,
Title = Path.GetFileNameWithoutExtension(ns).Substring(2).Replace("_", "."),
});
NamespaceRepeater.DataBind();
}
</script>
<html>
<head>
<title>DotNetOpenAuth API documentation</title>
</head>
<body>
<h1>DotNetOpenAuth API documentation</h1>
<h2>Documentation by namespace</h2>
<ul>
<asp:Repeater runat="server" ID="NamespaceRepeater">
<ItemTemplate>
<li><a href="<%# Eval("Href") %>">
<%# Eval("Title") %></a></li>
</ItemTemplate>
</asp:Repeater>
</ul>
</body>
</html>
|