Skip to content

Commit 947ace5

Browse files
committed
Tweaked for release
1 parent 4842162 commit 947ace5

File tree

5 files changed

+85
-12
lines changed

5 files changed

+85
-12
lines changed

Griddly/App_Start/RouteConfig.cs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using System.Linq;
4-
using System.Web;
5-
using System.Web.Mvc;
1+
using System.Web.Mvc;
62
using System.Web.Routing;
73

84
namespace Griddly
@@ -11,6 +7,7 @@ public class RouteConfig
117
{
128
public static void RegisterRoutes(RouteCollection routes)
139
{
10+
routes.LowercaseUrls = true;
1411
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
1512

1613
routes.MapRoute(

Griddly/Griddly.csproj

Lines changed: 50 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,23 @@
142142
<Content Include="Content\griddly-48.png" />
143143
<Content Include="Content\griddly-64.png" />
144144
<Content Include="Content\griddly.css" />
145+
<Content Include="Content\SyntaxHighlighter\shCore.css" />
146+
<Content Include="Content\SyntaxHighlighter\shCoreDefault.css" />
147+
<Content Include="Content\SyntaxHighlighter\shCoreDjango.css" />
148+
<Content Include="Content\SyntaxHighlighter\shCoreEclipse.css" />
149+
<Content Include="Content\SyntaxHighlighter\shCoreEmacs.css" />
150+
<Content Include="Content\SyntaxHighlighter\shCoreFadeToGrey.css" />
151+
<Content Include="Content\SyntaxHighlighter\shCoreMDUltra.css" />
152+
<Content Include="Content\SyntaxHighlighter\shCoreMidnight.css" />
153+
<Content Include="Content\SyntaxHighlighter\shCoreRDark.css" />
154+
<Content Include="Content\SyntaxHighlighter\shThemeDefault.css" />
155+
<Content Include="Content\SyntaxHighlighter\shThemeDjango.css" />
156+
<Content Include="Content\SyntaxHighlighter\shThemeEclipse.css" />
157+
<Content Include="Content\SyntaxHighlighter\shThemeEmacs.css" />
158+
<Content Include="Content\SyntaxHighlighter\shThemeFadeToGrey.css" />
159+
<Content Include="Content\SyntaxHighlighter\shThemeMDUltra.css" />
160+
<Content Include="Content\SyntaxHighlighter\shThemeMidnight.css" />
161+
<Content Include="Content\SyntaxHighlighter\shThemeRDark.css" />
145162
<Content Include="favicon.ico" />
146163
<Content Include="fonts\glyphicons-halflings-regular.svg" />
147164
<Content Include="Global.asax" />
@@ -158,6 +175,7 @@
158175
<Content Include="fonts\glyphicons-halflings-regular.eot" />
159176
<Content Include="Content\bootstrap-theme.css.map" />
160177
<Content Include="Content\bootstrap.css.map" />
178+
<None Include="Properties\PublishProfiles\local.pubxml" />
161179
<None Include="Scripts\jquery-1.11.0.intellisense.js" />
162180
<Content Include="Scripts\jquery-1.11.0.js" />
163181
<Content Include="Scripts\jquery-1.11.0.min.js" />
@@ -169,8 +187,39 @@
169187
<Content Include="Scripts\npm.js" />
170188
<Content Include="Scripts\respond.js" />
171189
<Content Include="Scripts\respond.min.js" />
190+
<Content Include="Scripts\SyntaxHighlighter\shAutoloader.js" />
191+
<Content Include="Scripts\SyntaxHighlighter\shBrushAppleScript.js" />
192+
<Content Include="Scripts\SyntaxHighlighter\shBrushAS3.js" />
193+
<Content Include="Scripts\SyntaxHighlighter\shBrushBash.js" />
194+
<Content Include="Scripts\SyntaxHighlighter\shBrushColdFusion.js" />
195+
<Content Include="Scripts\SyntaxHighlighter\shBrushCpp.js" />
196+
<Content Include="Scripts\SyntaxHighlighter\shBrushCSharp.js" />
197+
<Content Include="Scripts\SyntaxHighlighter\shBrushCss.js" />
198+
<Content Include="Scripts\SyntaxHighlighter\shBrushDelphi.js" />
199+
<Content Include="Scripts\SyntaxHighlighter\shBrushDiff.js" />
200+
<Content Include="Scripts\SyntaxHighlighter\shBrushErlang.js" />
201+
<Content Include="Scripts\SyntaxHighlighter\shBrushGroovy.js" />
202+
<Content Include="Scripts\SyntaxHighlighter\shBrushJava.js" />
203+
<Content Include="Scripts\SyntaxHighlighter\shBrushJavaFX.js" />
204+
<Content Include="Scripts\SyntaxHighlighter\shBrushJScript.js" />
205+
<Content Include="Scripts\SyntaxHighlighter\shBrushPerl.js" />
206+
<Content Include="Scripts\SyntaxHighlighter\shBrushPhp.js" />
207+
<Content Include="Scripts\SyntaxHighlighter\shBrushPlain.js" />
208+
<Content Include="Scripts\SyntaxHighlighter\shBrushPowerShell.js" />
209+
<Content Include="Scripts\SyntaxHighlighter\shBrushPython.js" />
210+
<Content Include="Scripts\SyntaxHighlighter\shBrushRazor.js" />
211+
<Content Include="Scripts\SyntaxHighlighter\shBrushRuby.js" />
212+
<Content Include="Scripts\SyntaxHighlighter\shBrushSass.js" />
213+
<Content Include="Scripts\SyntaxHighlighter\shBrushScala.js" />
214+
<Content Include="Scripts\SyntaxHighlighter\shBrushSql.js" />
215+
<Content Include="Scripts\SyntaxHighlighter\shBrushVb.js" />
216+
<Content Include="Scripts\SyntaxHighlighter\shBrushXml.js" />
217+
<Content Include="Scripts\SyntaxHighlighter\shCore.js" />
218+
<Content Include="Scripts\SyntaxHighlighter\shLegacy.js" />
172219
<Content Include="Scripts\_references.js" />
173-
<Content Include="Web.config" />
220+
<Content Include="Web.config">
221+
<SubType>Designer</SubType>
222+
</Content>
174223
<Content Include="Web.Debug.config">
175224
<DependentUpon>Web.config</DependentUpon>
176225
</Content>

Griddly/Views/Home/Index.cshtml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717

1818
<p>The default UI is rendered using <a href="http://getbootstrap.com">Bootstrap 3</a>, but you can add templates for whatever UI framework you use.</p>
1919

20-
<h2>Get Griddly on NuGet</h2>
20+
<h2>Get Griddly</h2>
21+
<p>First, <a href="http://docs.nuget.org/docs/start-here/installing-nuget">install NuGet</a>. Then, install Griddly from the package manager console:</p>
2122
<div class="nuget-badge">
2223
<p>
2324
<code>

Griddly/Views/Shared/_Layout.cshtml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,9 @@
2121
@Html.ActionLink("Griddly", "Index", "Home", null, new { @class = "navbar-brand" })
2222
</div>
2323
<div class="navbar-collapse collapse">
24-
@*<ul class="nav navbar-nav">
25-
<li>@Html.ActionLink("Home", "Index", "Home")</li>
26-
<li>@Html.ActionLink("About", "About", "Home")</li>
27-
<li>@Html.ActionLink("Contact", "Contact", "Home")</li>
24+
<ul class="nav navbar-nav">
25+
<li href="https://github.com/programcsharp/griddly/issues">Issues</li>
2826
</ul>
29-
*@
3027
</div>
3128
</div>
3229
</div>

Griddly/Web.config

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,35 @@
1414
<compilation debug="true" targetFramework="4.5" />
1515
<httpRuntime targetFramework="4.5" />
1616
</system.web>
17+
<system.webServer>
18+
<rewrite>
19+
<rules>
20+
<rule name="www to non-www" stopProcessing="false">
21+
<match url="(.*)" />
22+
<conditions>
23+
<add input="{HTTP_HOST}" pattern="^www.(.*)$" />
24+
</conditions>
25+
<action type="Redirect" url="http://{C:1}/{R:1}" redirectType="Permanent" appendQueryString="true" />
26+
</rule>
27+
<!--<rule name="http to https" stopProcessing="false">
28+
<match url="(.*)" />
29+
<conditions>
30+
<add input="{HTTP_HOST}" pattern="^griddly.com$" />
31+
<add input="{HTTPS}" pattern="^OFF$" />
32+
</conditions>
33+
<action type="Redirect" url="https://griddly.com/{R:1}" redirectType="Permanent" appendQueryString="true" />
34+
</rule>-->
35+
<rule name="remove trailing slash" stopProcessing="false">
36+
<match url="(.*)/$" />
37+
<action type="Redirect" redirectType="Permanent" url="{R:1}" />
38+
</rule>
39+
<rule name="force lower case" stopProcessing="false">
40+
<match url=".*[A-Z].*" ignoreCase="false" />
41+
<action type="Redirect" url="{ToLower:{R:0}}" redirectType="Permanent" />
42+
</rule>
43+
</rules>
44+
</rewrite>
45+
</system.webServer>
1746
<runtime>
1847
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
1948
<dependentAssembly>

0 commit comments

Comments
 (0)