Show documentation on server.

This commit is contained in:
2017-10-12 18:44:13 +01:00
parent cc99b6e714
commit 0a840b59ce
13 changed files with 225 additions and 79 deletions

View File

@@ -0,0 +1,18 @@
<%@ Page Language="C#" %>
<!DOCTYPE html>
<html>
<meta charset="UTF-8">
<head runat="server">
<link type='text/css' rel='stylesheet' href='dos.css' />
<title>DiscImageChef's TODO</title>
</head>
<body id="body" runat="server">
<p>
<a href="Default.aspx">Return to main page.</a><br/>
DiscImageChef list of changes:
</p>
<div>
<velyo:MarkdownContent ID="todo" runat="server" Path="docs/Changelog.md" />
</div>
</body>
</html>

View File

@@ -0,0 +1,18 @@
<%@ Page Language="C#" %>
<!DOCTYPE html>
<html>
<meta charset="UTF-8">
<head runat="server">
<link type='text/css' rel='stylesheet' href='dos.css' />
<title>DiscImageChef's TODO</title>
</head>
<body id="body" runat="server">
<p>
<a href="Default.aspx">Return to main page.</a><br/>
DiscImageChef list of things to be donated:
</p>
<div>
<velyo:MarkdownContent ID="todo" runat="server" Path="docs/DONATING.md" />
</div>
</body>
</html>

View File

@@ -0,0 +1,13 @@
<%@ Page Language="C#" Inherits="DiscImageChef.Server.Default" %>
<!DOCTYPE html>
<html>
<meta charset="UTF-8">
<head runat="server">
<link type='text/css' rel='stylesheet' href='dos.css' />
<title>DiscImageChef</title>
</head>
<body id="body" runat="server">
<h1 align="center">Welcome to <i><a href="http://github.com/claunia/discimagechef" target="_blank">DiscImageChef</a></i> Server version <asp:Label id="lblVersion" runat="server"/></h1>
</body>
</html>

View File

@@ -0,0 +1,25 @@
using System;
using System.Web;
using System.Web.UI;
using Velyo.AspNet.Markdown;
using System.IO;
namespace DiscImageChef.Server
{
public partial class Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
MarkdownContent mkdown = new MarkdownContent();
StreamReader sr = new StreamReader("docs/README.md");
string mdcontent = sr.ReadToEnd();
sr.Close();
mkdown.Content = mdcontent.Replace(".md)", ".aspx)");
body.Controls.Add(mkdown);
lblVersion.Text = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString();
}
}
}

View File

@@ -0,0 +1,20 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace DiscImageChef.Server {
public partial class Default {
protected System.Web.UI.HtmlControls.HtmlGenericControl body;
protected System.Web.UI.WebControls.Label lblVersion;
}
}

View File

@@ -60,6 +60,9 @@
<Reference Include="Newtonsoft.Json">
<HintPath>..\packages\Newtonsoft.Json.6.0.8\lib\net45\Newtonsoft.Json.dll</HintPath>
</Reference>
<Reference Include="Velyo.AspNet.Markdown">
<HintPath>..\packages\Velyo.AspNet.Markdown.1.0.26.6184\lib\net451\Velyo.AspNet.Markdown.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<Content Include="Global.asax" />
@@ -71,6 +74,10 @@
<Content Include="int10h.org\vga_squarepx.ttf" />
<Content Include="int10h.org\vga_squarepx.woff" />
<Content Include="ViewReport.aspx" />
<Content Include="Default.aspx" />
<Content Include="Changelog.aspx" />
<Content Include="TODO.aspx" />
<Content Include="DONATING.aspx" />
</ItemGroup>
<ItemGroup>
<Compile Include="Global.asax.cs">
@@ -102,6 +109,12 @@
<Compile Include="Controllers\UploadStatsController.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Controllers\UploadReportController.cs" />
<Compile Include="Default.aspx.cs">
<DependentUpon>Default.aspx</DependentUpon>
</Compile>
<Compile Include="Default.aspx.designer.cs">
<DependentUpon>Default.aspx</DependentUpon>
</Compile>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\DiscImageChef.Metadata\DiscImageChef.Metadata.csproj">
@@ -133,6 +146,15 @@
<None Include="..\README.md">
<Link>docs\README.md</Link>
</None>
<None Include="..\Changelog.md">
<Link>docs\Changelog.md</Link>
</None>
<None Include="..\DONATING.md">
<Link>docs\DONATING.md</Link>
</None>
<None Include="..\TODO.md">
<Link>docs\TODO.md</Link>
</None>
</ItemGroup>
<ItemGroup>
<Folder Include="docs\" />

View File

@@ -0,0 +1,18 @@
<%@ Page Language="C#" %>
<!DOCTYPE html>
<html>
<meta charset="UTF-8">
<head runat="server">
<link type='text/css' rel='stylesheet' href='dos.css' />
<title>DiscImageChef's TODO</title>
</head>
<body id="body" runat="server">
<p>
<a href="Default.aspx">Return to main page.</a><br/>
DiscImageChef list of things to do:
</p>
<div>
<velyo:MarkdownContent ID="todo" runat="server" Path="docs/TODO.md" />
</div>
</body>
</html>

View File

@@ -7,10 +7,15 @@ http://www.mono-project.com/Config_system.web and
http://msdn2.microsoft.com/en-us/library/b5ysx397.aspx
-->
<configuration>
<system.web>
<compilation targetFramework="4.5">
<assemblies />
</compilation>
<httpRuntime targetFramework="4.5" />
</system.web>
<system.web>
<compilation targetFramework="4.5">
<assemblies />
</compilation>
<httpRuntime targetFramework="4.5" />
</system.web>
<pages>
<controls>
<add assembly="Velyo.AspNet.Markdown" namespace="Velyo.AspNet.Markdown" tagPrefix="velyo" />
</controls>
</pages>
</configuration>

View File

@@ -5,4 +5,5 @@
<package id="Microsoft.AspNet.WebApi.Core" version="5.2.3" targetFramework="net461" />
<package id="Microsoft.AspNet.WebApi.WebHost" version="5.2.3" targetFramework="net461" />
<package id="Newtonsoft.Json" version="6.0.8" targetFramework="net461" />
<package id="Velyo.AspNet.Markdown" version="1.0.26.6184" targetFramework="net461" />
</packages>