mirror of
https://github.com/ShareX/ShareX.git
synced 2024-09-30 01:07:21 +13:00
Use html5 instead of xhtml for directory indexer output
This commit is contained in:
parent
e062be9908
commit
f83c60a2cb
5 changed files with 5 additions and 25 deletions
|
@ -42,7 +42,11 @@ public IndexerHtml(IndexerSettings indexerSettings)
|
|||
public override string Index(string folderPath)
|
||||
{
|
||||
StringBuilder sbHtmlIndex = new StringBuilder();
|
||||
sbHtmlIndex.AppendLine(Resources.doctype_xhtml);
|
||||
sbHtmlIndex.AppendLine("<!DOCTYPE html>");
|
||||
sbHtmlIndex.AppendLine(HtmlHelper.StartTag("html"));
|
||||
sbHtmlIndex.AppendLine(HtmlHelper.StartTag("head"));
|
||||
sbHtmlIndex.AppendLine("<meta charset=\"UTF-8\">");
|
||||
sbHtmlIndex.AppendLine("<meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">");
|
||||
sbHtmlIndex.AppendLine(HtmlHelper.Tag("title", "Index for " + Path.GetFileName(folderPath)));
|
||||
sbHtmlIndex.AppendLine(GetCssStyle());
|
||||
sbHtmlIndex.AppendLine(HtmlHelper.EndTag("head"));
|
||||
|
|
13
ShareX.IndexerLib/Properties/Resources.Designer.cs
generated
13
ShareX.IndexerLib/Properties/Resources.Designer.cs
generated
|
@ -60,19 +60,6 @@ internal Resources() {
|
|||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
|
||||
///<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
///<head>
|
||||
///<meta http-equiv="content-type" content="application/xhtml+xml; charset=utf-8" />
|
||||
///<meta http-equiv="X-UA-Compatible" content="IE=Edge" />.
|
||||
/// </summary>
|
||||
internal static string doctype_xhtml {
|
||||
get {
|
||||
return ResourceManager.GetString("doctype_xhtml", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to body {
|
||||
/// font-family: Arial, Helvetica, sans-serif;
|
||||
|
|
|
@ -118,9 +118,6 @@
|
|||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
||||
<data name="doctype_xhtml" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\doctype_xhtml.txt;System.String, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;Windows-1252</value>
|
||||
</data>
|
||||
<data name="IndexerDefault" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\resources\indexerdefault.css;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;Windows-1252</value>
|
||||
</data>
|
||||
|
|
|
@ -1,5 +0,0 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="application/xhtml+xml; charset=utf-8" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=Edge" />
|
|
@ -97,9 +97,6 @@
|
|||
<ItemGroup>
|
||||
<None Include="packages.config" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="Resources\doctype_xhtml.txt" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="Resources\IndexerDefault.css" />
|
||||
</ItemGroup>
|
||||
|
|
Loading…
Reference in a new issue