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,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();
}
}
}