Commit e7b975d8 authored by Vinicius Jarina's avatar Vinicius Jarina
Browse files

Create gh-pages branch via GitHub

parent 0a5229a5
...@@ -3,64 +3,122 @@ ...@@ -3,64 +3,122 @@
<head> <head>
<meta charset='utf-8'> <meta charset='utf-8'>
<meta http-equiv="X-UA-Compatible" content="chrome=1"> <meta http-equiv="X-UA-Compatible" content="chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> <link href='https://fonts.googleapis.com/css?family=Chivo:900' rel='stylesheet' type='text/css'>
<link href='https://fonts.googleapis.com/css?family=Architects+Daughter' rel='stylesheet' type='text/css'>
<link rel="stylesheet" type="text/css" href="stylesheets/stylesheet.css" media="screen" /> <link rel="stylesheet" type="text/css" href="stylesheets/stylesheet.css" media="screen" />
<link rel="stylesheet" type="text/css" href="stylesheets/pygment_trac.css" media="screen" /> <link rel="stylesheet" type="text/css" href="stylesheets/pygment_trac.css" media="screen" />
<link rel="stylesheet" type="text/css" href="stylesheets/print.css" media="print" /> <link rel="stylesheet" type="text/css" href="stylesheets/print.css" media="print" />
<!--[if lt IE 9]> <!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script> <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]--> <![endif]-->
<title>Nlua by NLua</title> <title>Nlua by NLua</title>
</head> </head>
<body> <body>
<header> <div id="container">
<div class="inner"> <div class="inner">
<h1>Nlua</h1>
<h2>NLua is the bind between Lua world and the .NET world.</h2>
<a href="https://github.com/NLua/NLua" class="button"><small>View project on</small>GitHub</a>
</div>
</header>
<div id="content-wrapper"> <header>
<div class="inner clearfix"> <h1>Nlua</h1>
<section id="main-content"> <h2>NLua is the bind between Lua world and the .NET world.</h2>
<h1>NLua</h1> </header>
<section id="downloads" class="clearfix">
<a href="https://github.com/NLua/NLua/zipball/master" id="download-zip" class="button"><span>Download .zip</span></a>
<a href="https://github.com/NLua/NLua/tarball/master" id="download-tar-gz" class="button"><span>Download .tar.gz</span></a>
<a href="https://github.com/NLua/NLua" id="view-on-github" class="button"><span>View on GitHub</span></a>
</section>
<hr>
<section id="main_content">
<h1>
<a name="nlua" class="anchor" href="#nlua"><span class="octicon octicon-link"></span></a>NLua</h1>
<blockquote>
<h3>
<a name="help-nlua" class="anchor" href="#help-nlua"><span class="octicon octicon-link"></span></a>Help NLua</h3>
<p>If you are using NLua consider to help with some easy todo items.</p>
<h3>
<a name="todo" class="anchor" href="#todo"><span class="octicon octicon-link"></span></a>TODO:</h3>
<ul>
<li>Windows CI server.</li>
<li>
<p>Port to other platforms (using a csproj/sln for each platform like RestSharp/MonoGame/Cocos2d-XNA)</p>
<ul>
<li>Android (port means create the project files + make files, no code change needed)</li>
<li>iOS (done)</li>
<li>Windows/Linux/Mac (done)</li>
<li>Windows Phone 8 (done)</li>
<li>Windows Phone 7 (done)</li>
</ul>
</li>
<li><p>Fix warnings/Gendarme/FxCop issues.</p></li>
<li><h2>
<a name="contributing" class="anchor" href="#contributing"><span class="octicon octicon-link"></span></a>Contributing</h2></li>
<li><p>NLua is using the Mono Code-Style <a href="http://www.mono-project.com/Coding_Guidelines">http://www.mono-project.com/Coding_Guidelines</a> .</p></li>
<li><p>Please, do not change the line-end or re-indent the code.</p></li>
<li><p>Run the tests before push.</p></li>
<li><p>Avoid to push unneeded style changes (unless is really needed) renaming, move code.</p></li>
</ul>
</blockquote>
<p><a href=""><img src="https://secure.gravatar.com/avatar/77ecf0fb9d8419be7715c6e822e66562?s=150" alt="Logo"></a></p> <p><a href=""><img src="https://secure.gravatar.com/avatar/77ecf0fb9d8419be7715c6e822e66562?s=150" alt="Logo"></a></p>
<p>NLua is a fork of project NLua (from Fábio Mascarenhas/Craig Presti).</p> <p>NLua is a fork of project LuaInterface (from Fábio Mascarenhas/Craig Presti).</p>
<p>NLua allow use Lua from C#, using Windows, Linux, Mac, iOS , Android, Windows Phone 7 and Windows Phone 8.</p> <p>NLua allow use Lua from C#, using Windows, Linux, Mac, iOS , Android, Windows Phone 7 and Windows Phone 8.</p>
<p>Linux: <a href="https://travis-ci.org/NLua/NLua"><img src="https://travis-ci.org/NLua/NLua.png?branch=master" alt="Build Status"></a></p> <p>Linux: <a href="https://travis-ci.org/NLua/NLua"><img src="https://travis-ci.org/NLua/NLua.png?branch=master" alt="Build Status"></a></p>
<p>OSX: <a href="http://jenkins-nlua.sytes.net:8080/job/NLua/"><img src="http://jenkins-nlua.sytes.net:8080/job/NLua/badge/icon" alt="Build Status"></a> <p>OSX: <a href="http://codefoco.com:8080/job/NLua/"><img src="http://codefoco.com:8080/job/NLua/badge/icon" alt="Build Status"></a>
<strong>Download</strong> <a href="http://jenkins-nlua.sytes.net:8080/job/NLua/lastSuccessfulBuild/artifact/NLua.OSX.zip"><img src="http://nvlabs.github.com/cub/download-icon.png" alt="dwn_osx" title="Download for iOS"></a></p> <strong>Download</strong> <a href="http://codefoco.com:8080/job/NLua/lastSuccessfulBuild/artifact/NLua.OSX.zip"><img src="http://nvlabs.github.com/cub/download-icon.png" alt="dwn_osx" title="Download for OSX"></a></p>
<p>iOS : <a href="http://codefoco.com:8080/job/NLua_iOS/"><img src="http://codefoco.com:8080/job/NLua_iOS/badge/icon" alt="Build Status"></a>
<strong>Download</strong> <a href="http://codefoco.com:8080/job/NLua_iOS/lastSuccessfulBuild/artifact/NLua.iOS.zip"><img src="http://nvlabs.github.com/cub/download-icon.png" alt="dwn_ios" title="Download for iOS"></a></p>
<p>iOS : <a href="http://jenkins-nlua.sytes.net:8080/job/NLua_iOS/"><img src="http://jenkins-nlua.sytes.net:8080/job/NLua_iOS/badge/icon" alt="Build Status"></a> <p>Win32: <strong>Download</strong> <a href="https://www.dropbox.com/s/jkr1pnwvqw6w0r8/NLua.Win32.zip"><img src="http://nvlabs.github.com/cub/download-icon.png" alt="dwn_w32" title="Download for Win32"></a></p>
<strong>Download</strong> <a href="http://jenkins-nlua.sytes.net:8080/job/NLua_iOS/lastSuccessfulBuild/artifact/NLua.iOS.zip"><img src="http://nvlabs.github.com/cub/download-icon.png" alt="dwn_ios" title="Download for iOS"></a></p>
<div class="highlight"><pre> <p>Win64: <strong>Download</strong> <a href="https://www.dropbox.com/s/xraxkgi2kuwbu4a/NLua.Win64.zip"><img src="http://nvlabs.github.com/cub/download-icon.png" alt="dwn_w64" title="Download for Win64"></a></p>
<span class="kt">string</span> <span class="n">url</span> <span class="p">=</span> <span class="s">@"http://raw.github.com/NLua/NLua/master/README.md"</span><span class="p">;</span>
<p>Windows Phone 7: <strong>Download</strong> <a href="https://www.dropbox.com/s/c08wphdmk5o7tdx/NLua.WP7.zip"><img src="http://nvlabs.github.com/cub/download-icon.png" alt="dwn_wp7" title="Download for Windows Phone 7"></a></p>
<p>Windows Phone 8: <strong>Download</strong> <a href="https://www.dropbox.com/s/47qqimfnux104a7/NLua.WP8.zip"><img src="http://nvlabs.github.com/cub/download-icon.png" alt="dwn_wp8" title="Download for Windows Phone 8 (ARM+x86)"></a></p>
<p>Windows: We don't have a CI Server for Windows.
You can build NLua , you will need (msysgit, CMake, NUnit) <a href="http://screencast.com/t/rYuDtCdFG7">http://screencast.com/t/rYuDtCdFG7</a></p>
<div class="highlight highlight-csharp"><pre>
<span class="kt">string</span> <span class="n">script</span> <span class="p">=</span> <span class="s">@"</span> <span class="kt">string</span> <span class="n">script</span> <span class="p">=</span> <span class="s">@"</span>
<span class="s"> luanet.load_assembly ('System.dll')</span> <span class="s"> local s = Scriptable (""My String Parameter"")</span>
<span class="s"> WebClient = luanet.import_type ('System.Net.WebClient')</span> <span class="s"> s:DoSomething ()</span>
<span class="s"> local client = WebClient ()</span>
<span class="s"> print (s.Param1)</span>
<span class="s"> local ret = s:SumOfLengths (""Name"", 10);</span>
<span class="s"> print (tostring(ret))</span>
<span class="s"> Scriptable.Print(""Hello NLua"")</span>
<span class="s"> local ret = client:DownloadString (url);</span> <span class="s"> s.Param3 = 0.5;</span>
<span class="s"> return ret;</span> <span class="s"> local p2 = tostring(s.Param3)</span>
<span class="s"> "</span><span class="p">;</span>
<span class="s"> print (p2)</span>
<span class="s"> "</span><span class="p">;</span>
<span class="k">using</span> <span class="p">(</span><span class="n">Lua</span> <span class="n">lua</span> <span class="p">=</span> <span class="k">new</span> <span class="n">Lua</span> <span class="p">())</span> <span class="p">{</span> <span class="k">using</span> <span class="p">(</span><span class="n">Lua</span> <span class="n">lua</span> <span class="p">=</span> <span class="k">new</span> <span class="n">Lua</span> <span class="p">())</span> <span class="p">{</span>
<span class="n">lua</span> <span class="p">[</span><span class="s">"url"</span><span class="p">]</span> <span class="p">=</span> <span class="n">url</span><span class="p">;</span> <span class="n">lua</span><span class="p">.</span><span class="n">LoadCLRPackage</span> <span class="p">();</span>
<span class="n">lua</span><span class="p">.</span><span class="n">DoString</span> <span class="p">(</span><span class="s">@" import ('NLuaSample') "</span><span class="p">);</span>
<span class="n">lua</span> <span class="p">[</span><span class="s">"gValue"</span><span class="p">]</span> <span class="p">=</span> <span class="s">"This is a global value"</span><span class="p">;</span> <span class="c1">// You can set a global value.</span>
<span class="kt">var</span> <span class="n">returns</span> <span class="p">=</span> <span class="n">lua</span><span class="p">.</span><span class="n">DoString</span> <span class="p">(</span><span class="n">script</span><span class="p">);</span> <span class="kt">var</span> <span class="n">returns</span> <span class="p">=</span> <span class="n">lua</span><span class="p">.</span><span class="n">DoString</span> <span class="p">(</span><span class="n">script</span><span class="p">);</span>
...@@ -68,14 +126,23 @@ ...@@ -68,14 +126,23 @@
<span class="p">}</span> <span class="p">}</span>
</pre></div> </pre></div>
<p>Copyright (c) 2013 Vinicius Jarina (viniciusjarina@gmail.com)</p> <p>Copyright (c) 2013 Vinicius Jarina (<a href="mailto:viniciusjarina@gmail.com">viniciusjarina@gmail.com</a>)</p>
<h2>NLua 1.0.0</h2> <h2>
<a name="nlua-110" class="anchor" href="#nlua-110"><span class="octicon octicon-link"></span></a>NLua 1.1.0</h2>
<ul>
<li>Port to WP7 (Thanks to Mangatome)</li>
<li>NLua now using Lua 5.2.2</li>
<li>Bug fixes.</li>
</ul><h2>
<a name="nlua-100" class="anchor" href="#nlua-100"><span class="octicon octicon-link"></span></a>NLua 1.0.0</h2>
<ul> <ul>
<li>Forked from LuaInterface 2.0.4</li> <li>Forked from LuaInterface 2.0.4</li>
<li>Added iOS support using KeraLua (C# PInvoke Lua)</li> <li>Added iOS support using KeraLua (C# P/Invoke Lua)</li>
</ul><h2>LuaInterface </h2> </ul><h2>
<a name="luainterface--" class="anchor" href="#luainterface--"><span class="octicon octicon-link"></span></a>LuaInterface </h2>
<p>Copyright (c) 2003-2006 Fabio Mascarenhas de Queiroz</p> <p>Copyright (c) 2003-2006 Fabio Mascarenhas de Queiroz</p>
...@@ -83,7 +150,8 @@ ...@@ -83,7 +150,8 @@
<p>lua51.dll and lua51.exe are Copyright (c) 2005 Tecgraf, PUC-Rio</p> <p>lua51.dll and lua51.exe are Copyright (c) 2005 Tecgraf, PUC-Rio</p>
<h2>Getting started with NLua:</h2> <h2>
<a name="getting-started-with-nlua" class="anchor" href="#getting-started-with-nlua"><span class="octicon octicon-link"></span></a>Getting started with NLua:</h2>
<ul> <ul>
<li>Look at src/TestNLua/TestLua to see example usage from C# <li>Look at src/TestNLua/TestLua to see example usage from C#
...@@ -93,7 +161,8 @@ methods from Lua and use NLua from within your .NET application.</li> ...@@ -93,7 +161,8 @@ methods from Lua and use NLua from within your .NET application.</li>
<li>Look at samples/testluaform.lua to see examples of how to use <li>Look at samples/testluaform.lua to see examples of how to use
.NET from inside Lua</li> .NET from inside Lua</li>
<li>More instructions for installing and using in the doc/guide.pdf file.</li> <li>More instructions for installing and using in the doc/guide.pdf file.</li>
</ul><h2>What's new in LuaInterface 2.0.3</h2> </ul><h2>
<a name="whats-new-in-luainterface-203" class="anchor" href="#whats-new-in-luainterface-203"><span class="octicon octicon-link"></span></a>What's new in LuaInterface 2.0.3</h2>
<ul> <ul>
<li>Fix: Private methods accessible via LuaInterface</li> <li>Fix: Private methods accessible via LuaInterface</li>
...@@ -107,17 +176,20 @@ methods from Lua and use NLua from within your .NET application.</li> ...@@ -107,17 +176,20 @@ methods from Lua and use NLua from within your .NET application.</li>
<li>Added: LoadString and LoadFile (submitted by Paul Moore)</li> <li>Added: LoadString and LoadFile (submitted by Paul Moore)</li>
<li>Added: Overloaded DoString</li> <li>Added: Overloaded DoString</li>
<li>Added: Lua debugging support (rostermeier)</li> <li>Added: Lua debugging support (rostermeier)</li>
</ul><h2>What's new in LuaInterface 2.0.1</h2> </ul><h2>
<a name="whats-new-in-luainterface-201" class="anchor" href="#whats-new-in-luainterface-201"><span class="octicon octicon-link"></span></a>What's new in LuaInterface 2.0.1</h2>
<ul> <ul>
<li>Apparently the 2.0 built binaries had an issue for some users, this is just a rebuild with the lua sources pulled into the LuaInterface.zip</li> <li>Apparently the 2.0 built binaries had an issue for some users, this is just a rebuild with the lua sources pulled into the LuaInterface.zip</li>
</ul><h2>What's new in LuaInterface 2.0</h2> </ul><h2>
<a name="whats-new-in-luainterface-20" class="anchor" href="#whats-new-in-luainterface-20"><span class="octicon octicon-link"></span></a>What's new in LuaInterface 2.0</h2>
<ul> <ul>
<li>The base lua5.1.2 library is now built as entirely manged code. LuaInterface is now pure CIL</li> <li>The base lua5.1.2 library is now built as entirely manged code. LuaInterface is now pure CIL</li>
<li>Various adapters to connect the older x86 version of lua are no longer needed</li> <li>Various adapters to connect the older x86 version of lua are no longer needed</li>
<li>Performance fixes contributed by Toby Lawrence, Oliver Nemoz and Craig Presti</li> <li>Performance fixes contributed by Toby Lawrence, Oliver Nemoz and Craig Presti</li>
</ul><h2>What's new in LuaInterface 1.5.3</h2> </ul><h2>
<a name="whats-new-in-luainterface-153" class="anchor" href="#whats-new-in-luainterface-153"><span class="octicon octicon-link"></span></a>What's new in LuaInterface 1.5.3</h2>
<ul> <ul>
<li>Internal lua panics (due to API violations) now throw LuaExceptions into .net</li> <li>Internal lua panics (due to API violations) now throw LuaExceptions into .net</li>
...@@ -125,14 +197,16 @@ methods from Lua and use NLua from within your .NET application.</li> ...@@ -125,14 +197,16 @@ methods from Lua and use NLua from within your .NET application.</li>
original exception is forwarded back out to .net land.</li> original exception is forwarded back out to .net land.</li>
<li>Fix bug in the Lua 5.1.1 gmatch C code - it was improperly assuming gmatch <li>Fix bug in the Lua 5.1.1 gmatch C code - it was improperly assuming gmatch
only works with tables.</li> only works with tables.</li>
</ul><h2>What's new in LuaInterface 1.5.2</h2> </ul><h2>
<a name="whats-new-in-luainterface-152" class="anchor" href="#whats-new-in-luainterface-152"><span class="octicon octicon-link"></span></a>What's new in LuaInterface 1.5.2</h2>
<ul> <ul>
<li>Overriding C# methods from Lua is fixed (broken with .net 2.0!)</li> <li>Overriding C# methods from Lua is fixed (broken with .net 2.0!)</li>
<li>Registering static C# functions for Lua is fixed (broken with Lua-5.1.1)</li> <li>Registering static C# functions for Lua is fixed (broken with Lua-5.1.1)</li>
<li>Rebuilt to fix linking problems with the binaries included in 1.5.1</li> <li>Rebuilt to fix linking problems with the binaries included in 1.5.1</li>
<li>RegisterFunction has been leaking things onto the stack </li> <li>RegisterFunction has been leaking things onto the stack </li>
</ul><h2>What's new in LuaInterface 1.5.1</h2> </ul><h2>
<a name="whats-new-in-luainterface-151" class="anchor" href="#whats-new-in-luainterface-151"><span class="octicon octicon-link"></span></a>What's new in LuaInterface 1.5.1</h2>
<p>Fix a serious bug w.r.t. garbage collection - made especially apparent <p>Fix a serious bug w.r.t. garbage collection - made especially apparent
with the new lua5.1 switch: If you were <em>very</em> unlucky with timing with the new lua5.1 switch: If you were <em>very</em> unlucky with timing
...@@ -147,7 +221,8 @@ course you can still use a colon if an <em>instance</em> is being used.</p> ...@@ -147,7 +221,8 @@ course you can still use a colon if an <em>instance</em> is being used.</p>
<p>Static method calls are now much faster (due to better caching).</p> <p>Static method calls are now much faster (due to better caching).</p>
<h2>What's new in LuaInterface 1.5</h2> <h2>
<a name="whats-new-in-luainterface-15" class="anchor" href="#whats-new-in-luainterface-15"><span class="octicon octicon-link"></span></a>What's new in LuaInterface 1.5</h2>
<p>LuaInterface is now updated to be based on Lua5.1.1. You can either use <p>LuaInterface is now updated to be based on Lua5.1.1. You can either use
your own build/binaries for Lua5.1.1 or use the version distributed here. your own build/binaries for Lua5.1.1 or use the version distributed here.
...@@ -172,7 +247,8 @@ windows libraries.</p> ...@@ -172,7 +247,8 @@ windows libraries.</p>
modify Lua internals (a built version of lua51.dll is included in the modify Lua internals (a built version of lua51.dll is included in the
regular LuaInterface distribution)</p> regular LuaInterface distribution)</p>
<h2>What's New in LuaInterface 1.4</h2> <h2>
<a name="whats-new-in-luainterface-14" class="anchor" href="#whats-new-in-luainterface-14"><span class="octicon octicon-link"></span></a>What's New in LuaInterface 1.4</h2>
<p>Note: Fabio area of interest has moved off in other directions (hopefully only temporarily). <p>Note: Fabio area of interest has moved off in other directions (hopefully only temporarily).
I've talked with Fabio and he's said he's okay with me doing a new release with various fixes I've talked with Fabio and he's said he's okay with me doing a new release with various fixes
...@@ -205,7 +281,8 @@ Lua 5.0.2 with an appropriate VS 2005 project file. You do not need to ...@@ -205,7 +281,8 @@ Lua 5.0.2 with an appropriate VS 2005 project file. You do not need to
download this file unless you want to modify Lua internals (a built version download this file unless you want to modify Lua internals (a built version
of lua50.dll is included in the regular LuaInterface distribution)</p> of lua50.dll is included in the regular LuaInterface distribution)</p>
<h2>What's New in LuaInterface 1.3</h2> <h2>
<a name="whats-new-in-luainterface-13" class="anchor" href="#whats-new-in-luainterface-13"><span class="octicon octicon-link"></span></a>What's New in LuaInterface 1.3</h2>
<p>LuaInterface now works with LuaBinaries Release 2 (<a href="http://luabinaries.luaforge.net">http://luabinaries.luaforge.net</a>) <p>LuaInterface now works with LuaBinaries Release 2 (<a href="http://luabinaries.luaforge.net">http://luabinaries.luaforge.net</a>)
and Compat-5.1 Release 3 (<a href="http://luaforge.net/projects/compat">http://luaforge.net/projects/compat</a>). The loader DLL is now and Compat-5.1 Release 3 (<a href="http://luaforge.net/projects/compat">http://luaforge.net/projects/compat</a>). The loader DLL is now
...@@ -222,7 +299,8 @@ do require"luanet").</p> ...@@ -222,7 +299,8 @@ do require"luanet").</p>
<p>There is an alternate form of loading assemblies and importing types (based on an <p>There is an alternate form of loading assemblies and importing types (based on an
anonymous contribution in the Lua wiki). Check the _alt files in the samples folder.</p> anonymous contribution in the Lua wiki). Check the _alt files in the samples folder.</p>
<h2>What's New in LuaInterface 1.2.1</h2> <h2>
<a name="whats-new-in-luainterface-121" class="anchor" href="#whats-new-in-luainterface-121"><span class="octicon octicon-link"></span></a>What's New in LuaInterface 1.2.1</h2>
<p>Now checks if two LuaInterface.Lua instances are trying to share the same Lua state, <p>Now checks if two LuaInterface.Lua instances are trying to share the same Lua state,
and throws an exception if this is the case. Also included readonly clauses in public and throws an exception if this is the case. Also included readonly clauses in public
...@@ -231,7 +309,8 @@ members of the Lua and ObjectTranslator classes.</p> ...@@ -231,7 +309,8 @@ members of the Lua and ObjectTranslator classes.</p>
<p>This version includes the source of LuaInterfaceLoader.dll, with VS.Net 2003 project <p>This version includes the source of LuaInterfaceLoader.dll, with VS.Net 2003 project
files.</p> files.</p>
<h2>What's New in LuaInterface 1.2</h2> <h2>
<a name="whats-new-in-luainterface-12" class="anchor" href="#whats-new-in-luainterface-12"><span class="octicon octicon-link"></span></a>What's New in LuaInterface 1.2</h2>
<p>LuaInterface now can be loaded as a module, so you can use the lua standalone <p>LuaInterface now can be loaded as a module, so you can use the lua standalone
interpreter to run scripts. Thanks to Paul Winwood for this idea and sample code interpreter to run scripts. Thanks to Paul Winwood for this idea and sample code
...@@ -255,23 +334,13 @@ will fail. The test cases in src/TestLuaInterface/TestLua.cs have examples of th ...@@ -255,23 +334,13 @@ will fail. The test cases in src/TestLuaInterface/TestLua.cs have examples of th
functions.</p> functions.</p>
</section> </section>
<aside id="sidebar"> <footer>
<a href="https://github.com/NLua/NLua/zipball/master" class="button"> Nlua is maintained by <a href="https://github.com/NLua">NLua</a><br>
<small>Download</small> This page was generated by <a href="http://pages.github.com">GitHub Pages</a>. Tactile theme by <a href="https://twitter.com/jasonlong">Jason Long</a>.
.zip file </footer>
</a>
<a href="https://github.com/NLua/NLua/tarball/master" class="button">
<small>Download</small>
.tar.gz file
</a>
<p class="repo-owner"><a href="https://github.com/NLua/NLua"></a> is maintained by <a href="https://github.com/NLua">NLua</a>.</p>
<p>This page was generated by <a href="pages.github.com">GitHub Pages</a> using the Architect theme by <a href="http://twitter.com/jasonlong">Jason Long</a>.</p>
</aside>
</div> </div>
</div> </div>
</body> </body>
</html> </html>
\ No newline at end of file
This diff is collapsed.
...@@ -48,138 +48,146 @@ table { ...@@ -48,138 +48,146 @@ table {
/* LAYOUT STYLES */ /* LAYOUT STYLES */
body { body {
font-size: 15px; font-size: 1em;
line-height: 1.5; line-height: 1.5;
background: #fafafa url(../images/body-bg.jpg) 0 0 repeat; background: #e7e7e7 url(../images/body-bg.png) 0 0 repeat;
font-family: 'Helvetica Neue', Helvetica, Arial, serif; font-family: 'Helvetica Neue', Helvetica, Arial, serif;
font-weight: 400; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
color: #666; color: #6d6d6d;
} }
a { a {
color: #2879d0; color: #d5000d;
} }
a:hover { a:hover {
color: #2268b2; color: #c5000c;
} }
header { header {
padding-top: 40px; padding-top: 35px;
padding-bottom: 40px; padding-bottom: 25px;
font-family: 'Architects Daughter', 'Helvetica Neue', Helvetica, Arial, serif;
background: #2e7bcf url(../images/header-bg.jpg) 0 0 repeat-x;
border-bottom: solid 1px #275da1;
} }
header h1 { header h1 {
font-family: 'Chivo', 'Helvetica Neue', Helvetica, Arial, serif; font-weight: 900;
letter-spacing: -1px; letter-spacing: -1px;
font-size: 72px; font-size: 48px;
color: #fff; color: #303030;
line-height: 1; line-height: 1.2;
margin-bottom: 0.2em;
width: 540px;
} }
header h2 { header h2 {
font-size: 26px; letter-spacing: -1px;
color: #9ddcff; font-size: 24px;
color: #aaa;
font-weight: normal; font-weight: normal;
line-height: 1.3; line-height: 1.3;
width: 540px;
letter-spacing: 0;
}
.inner {
position: relative;
width: 940px;
margin: 0 auto;
} }
#content-wrapper { #container {
border-top: solid 1px #fff; background: transparent url(../images/highlight-bg.jpg) 50% 0 no-repeat;
padding-top: 30px; min-height: 595px;
} }
#main-content { .inner {
width: 690px; width: 620px;
float: left; margin: 0 auto;
} }
#main-content img { #container .inner img {
max-width: 100%; max-width: 100%;
} }
aside#sidebar {
width: 200px;
padding-left: 20px;
min-height: 504px;
float: right;
background: transparent url(../images/sidebar-bg.jpg) 0 0 no-repeat;
font-size: 12px;
line-height: 1.3;
}
aside#sidebar p.repo-owner,
aside#sidebar p.repo-owner a {
font-weight: bold;
}
#downloads { #downloads {
margin-bottom: 40px; margin-bottom: 40px;
} }
a.button { a.button {
width: 134px; -moz-border-radius: 30px;
height: 58px; -webkit-border-radius: 30px;
line-height: 1.2; border-radius: 30px;
font-size: 23px; border-top: solid 1px #cbcbcb;
color: #fff; border-left: solid 1px #b7b7b7;
padding-left: 68px; border-right: solid 1px #b7b7b7;
padding-top: 22px; border-bottom: solid 1px #b3b3b3;
font-family: 'Architects Daughter', 'Helvetica Neue', Helvetica, Arial, serif; color: #303030;
} line-height: 25px;
a.button small { font-weight: bold;
font-size: 15px;
padding: 12px 8px 12px 8px;
display: block;
float: left;
width: 179px;
margin-right: 14px;
background: #fdfdfd; /* Old browsers */
background: -moz-linear-gradient(top, #fdfdfd 0%, #f2f2f2 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#fdfdfd), color-stop(100%,#f2f2f2)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, #fdfdfd 0%,#f2f2f2 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, #fdfdfd 0%,#f2f2f2 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, #fdfdfd 0%,#f2f2f2 100%); /* IE10+ */
background: linear-gradient(top, #fdfdfd 0%,#f2f2f2 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#fdfdfd', endColorstr='#f2f2f2',GradientType=0 ); /* IE6-9 */
-webkit-box-shadow: 10px 10px 5px #888;
-moz-box-shadow: 10px 10px 5px #888;
box-shadow: 0px 1px 5px #e8e8e8;
}
a.button:hover {
border-top: solid 1px #b7b7b7;
border-left: solid 1px #b3b3b3;
border-right: solid 1px #b3b3b3;
border-bottom: solid 1px #b3b3b3;
background: #fafafa; /* Old browsers */
background: -moz-linear-gradient(top, #fdfdfd 0%, #f6f6f6 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#fdfdfd), color-stop(100%,#f6f6f6)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, #fdfdfd 0%,#f6f6f6 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, #fdfdfd 0%,#f6f6f6 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, #fdfdfd 0%,#f6f6f6 100%); /* IE10+ */
background: linear-gradient(top, #fdfdfd 0%,#f6f6f6, 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#fdfdfd', endColorstr='#f6f6f6',GradientType=0 ); /* IE6-9 */
}
a.button span {
padding-left: 50px;
display: block; display: block;
font-size: 11px; height: 23px;
}
#download-zip span {
background: transparent url(../images/zip-icon.png) 12px 50% no-repeat;
} }
header a.button { #download-tar-gz span {
position: absolute; background: transparent url(../images/tar-gz-icon.png) 12px 50% no-repeat;
right: 0;
top: 0;
background: transparent url(../images/github-button.png) 0 0 no-repeat;
} }
aside a.button { #view-on-github span {
width: 138px; background: transparent url(../images/octocat-icon.png) 12px 50% no-repeat;
padding-left: 64px; }
display: block; #view-on-github {
background: transparent url(../images/download-button.png) 0 0 no-repeat; margin-right: 0;
margin-bottom: 20px;
font-size: 21px;
} }
code, pre { code, pre {
font-family: Monaco, "Bitstream Vera Sans Mono", "Lucida Console", Terminal, monospace; font-family: Monaco, "Bitstream Vera Sans Mono", "Lucida Console", Terminal;
color: #222; color: #222;
margin-bottom: 30px; margin-bottom: 30px;
font-size: 13px; font-size: 14px;
} }
code { code {
background-color: #f2f8fc; background-color: #f2f2f2;
border: solid 1px #dbe7f3; border: solid 1px #ddd;
padding: 0 3px; padding: 0 3px;
} }
pre { pre {
padding: 20px; padding: 20px;
background: #fff; background: #303030;
color: #f2f2f2;
text-shadow: none; text-shadow: none;
overflow: auto; overflow: auto;
border: solid 1px #f2f2f2;
} }
pre code { pre code {
color: #2879d0; color: #f2f2f2;
background-color: #fff; background-color: #303030;
border: none; border: none;
padding: 0; padding: 0;
} }
...@@ -197,7 +205,15 @@ hr { ...@@ -197,7 +205,15 @@ hr {
margin-top: 1em; margin-top: 1em;
padding-bottom: 1em; padding-bottom: 1em;
border: none; border: none;
background: transparent url('../images/hr.png') 0 0 no-repeat; background: transparent url('../images/hr.png') 50% 0 no-repeat;
}
strong {
font-weight: bold;
}
em {
font-style: italic;
} }
table { table {
...@@ -224,89 +240,42 @@ form { ...@@ -224,89 +240,42 @@ form {
/* GENERAL ELEMENT TYPE STYLES */ /* GENERAL ELEMENT TYPE STYLES */
#main-content h1 { h1 {
font-family: 'Architects Daughter', 'Helvetica Neue', Helvetica, Arial, serif; font-size: 32px;
font-size: 2.8em;
letter-spacing: -1px;
color: #474747;
} }
#main-content h1:before { h2 {
content: "/";
color: #9ddcff;
padding-right: 0.3em;
margin-left: -0.9em;
}
#main-content h2 {
font-family: 'Architects Daughter', 'Helvetica Neue', Helvetica, Arial, serif;
font-size: 22px; font-size: 22px;
font-weight: bold; font-weight: bold;
color: #303030;
margin-bottom: 8px; margin-bottom: 8px;
color: #474747;
} }
#main-content h2:before {
content: "//";
color: #9ddcff;
padding-right: 0.3em;
margin-left: -1.5em;
}
#main-content h3 { h3 {
font-family: 'Architects Daughter', 'Helvetica Neue', Helvetica, Arial, serif; color: #d5000d;
font-size: 18px; font-size: 18px;
font-weight: bold; font-weight: bold;
margin-top: 24px;
margin-bottom: 8px; margin-bottom: 8px;
color: #474747;
} }
#main-content h3:before { h4 {
content: "///"; font-size: 16px;
color: #9ddcff; color: #303030;
padding-right: 0.3em;
margin-left: -2em;
}
#main-content h4 {
font-family: 'Architects Daughter', 'Helvetica Neue', Helvetica, Arial, serif;
font-size: 15px;
font-weight: bold; font-weight: bold;
color: #474747;
} }
h4:before { h5 {
content: "////"; font-size: 1em;
color: #9ddcff; color: #303030;
padding-right: 0.3em;
margin-left: -2.8em;
}
#main-content h5 {
font-family: 'Architects Daughter', 'Helvetica Neue', Helvetica, Arial, serif;
font-size: 14px;
color: #474747;
} }
h5:before {
content: "/////";
color: #9ddcff;
padding-right: 0.3em;
margin-left: -3.2em;
}
#main-content h6 { h6 {
font-family: 'Architects Daughter', 'Helvetica Neue', Helvetica, Arial, serif;
font-size: .8em; font-size: .8em;
color: #474747; color: #303030;
} }
h6:before {
content: "//////";
color: #9ddcff;
padding-right: 0.3em;
margin-left: -3.7em;
}
p { p {
font-weight: 300;
margin-bottom: 20px; margin-bottom: 20px;
} }
...@@ -335,9 +304,8 @@ ol li { ...@@ -335,9 +304,8 @@ ol li {
padding-left: 3px; padding-left: 3px;
} }
dl dd { dl dt {
font-style: italic; color: #303030;
font-weight: 100;
} }
footer { footer {
...@@ -376,99 +344,23 @@ footer a:hover { ...@@ -376,99 +344,23 @@ footer a:hover {
@media only screen and (max-width: 959px) {} @media only screen and (max-width: 959px) {}
/* Tablet Portrait size to standard 960 (devices and browsers) */ /* Tablet Portrait size to standard 960 (devices and browsers) */
@media only screen and (min-width: 768px) and (max-width: 959px) { @media only screen and (min-width: 768px) and (max-width: 959px) {}
.inner {
width: 740px;
}
header h1, header h2 {
width: 340px;
}
header h1 {
font-size: 60px;
}
header h2 {
font-size: 30px;
}
#main-content {
width: 490px;
}
#main-content h1:before,
#main-content h2:before,
#main-content h3:before,
#main-content h4:before,
#main-content h5:before,
#main-content h6:before {
content: none;
padding-right: 0;
margin-left: 0;
}
}
/* All Mobile Sizes (devices and browser) */ /* All Mobile Sizes (devices and browser) */
@media only screen and (max-width: 767px) { @media only screen and (max-width: 767px) {
.inner {
width: 93%;
}
header { header {
padding: 20px 0; padding-top: 10px;
} padding-bottom: 10px;
header .inner {
position: relative;
}
header h1, header h2 {
width: 100%;
}
header h1 {
font-size: 48px;
}
header h2 {
font-size: 24px;
} }
header a.button { #downloads {
background-image: none; margin-bottom: 25px;
width: auto;
height: auto;
display: inline-block;
margin-top: 15px;
padding: 5px 10px;
position: relative;
text-align: center;
font-size: 13px;
line-height: 1;
background-color: #9ddcff;
color: #2879d0;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
border-radius: 5px;
} }
header a.button small { #download-zip, #download-tar-gz {
font-size: 13px;
display: inline;
}
#main-content,
aside#sidebar {
float: none;
width: 100% ! important;
}
aside#sidebar {
background-image: none;
margin-top: 20px;
border-top: solid 1px #ddd;
padding: 20px 0;
min-height: 0;
}
aside#sidebar a.button {
display: none; display: none;
} }
#main-content h1:before, .inner {
#main-content h2:before, width: 94%;
#main-content h3:before, margin: 0 auto;
#main-content h4:before,
#main-content h5:before,
#main-content h6:before {
content: none;
padding-right: 0;
margin-left: 0;
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment