Commit 0ce934ec authored by nachtgold's avatar nachtgold
Browse files

merged other changes and reduced the color blue in the docs

parents b2004684 a944821f
...@@ -30,7 +30,6 @@ INSTALLED_APPS = [ ...@@ -30,7 +30,6 @@ INSTALLED_APPS = [
'django.contrib.sessions', 'django.contrib.sessions',
'django.contrib.messages', 'django.contrib.messages',
'django.contrib.staticfiles', 'django.contrib.staticfiles',
'widget_tweaks',
'core', 'core',
'visualization', 'visualization',
'ide', 'ide',
......
...@@ -17,6 +17,35 @@ ...@@ -17,6 +17,35 @@
border: none; border: none;
} }
.markdown-body code,
.markdown-body tt {
color: white;
background-color: #333;
}
.markdown-body dl dt { .markdown-body dl dt {
font-size: 1.2em; font-size: 1.2em;
} }
\ No newline at end of file
table thead tr td {
background: rgb(0,0,0,.50);
font-weight: 700;
}
.markdown-body table tr {
background-color: #1a1a1a;
}
.markdown-body table tr:nth-child(2n) {
background-color: #242424;
}
th,
.markdown-body table td {
border-color: #303030;
}
.markdown-body a {
color: white;
text-decoration: underline;
}
...@@ -63,12 +63,24 @@ return [==[ ...@@ -63,12 +63,24 @@ return [==[
# for kind,items in module.kinds() do # for kind,items in module.kinds() do
<h2><a href="#$(no_spaces(kind))">$(kind)</a></h2> <h2><a href="#$(no_spaces(kind))">$(kind)</a></h2>
<table class="function_list"> <table class="function_list">
<thead>
<tr>
<td>
Function name
</td>
<td>
Description
</td>
</tr>
</thead>
<tbody>
# for item in items() do # for item in items() do
<tr> <tr>
<td class="name" $(nowrap)><a href="#$(item.name)">$(display_name(item))</a></td> <td class="name" $(nowrap)><a href="#$(item.name)">$(display_name(item))</a></td>
<td class="summary">$(M(item.summary,item))</td> <td class="summary">$(M(item.summary,item))</td>
</tr> </tr>
# end -- for items # end -- for items
</tbody>
</table> </table>
#end -- for kinds #end -- for kinds
......
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
--- Every bot is allowed to store 100MB within the global namespace and the --- Every bot is allowed to store 100MB within the global namespace and the
--- data persists until the bot dies. So the bot can save data from frame --- data persists until the bot dies. So the bot can save data from frame
--- to frame. --- to frame.
--- <h2>Lua global namespace</h2>
--- <p>The following Lua standard functions are allowed:</p> --- <p>The following Lua standard functions are allowed:</p>
--- <p><a href="http://pgl.yoyo.org/luai/i/assert">assert</a>, --- <p><a href="http://pgl.yoyo.org/luai/i/assert">assert</a>,
--- <a href="http://pgl.yoyo.org/luai/i/print">print</a>, --- <a href="http://pgl.yoyo.org/luai/i/print">print</a>,
...@@ -59,7 +60,11 @@ ...@@ -59,7 +60,11 @@
--- <a href="http://pgl.yoyo.org/luai/i/table.sort">sort</a></p> --- <a href="http://pgl.yoyo.org/luai/i/table.sort">sort</a></p>
--- <h2>Globals</h2> --- <h2>Globals</h2>
--- <p>Every snake can describe itself with the following attributes of the global variable <code>self</code>:</p> --- <p>Every snake can describe itself with the following attributes of the global variable <code>self</code>:</p>
--- <table><tbody> --- <table>
--- <thead>
--- <tr><td>Variable within self</td><td>Type</td><td>Description</td></tr>
--- </thead>
--- <tbody>
--- <tr><td>id</td><td>number</td><td>internal identifier</td></tr> --- <tr><td>id</td><td>number</td><td>internal identifier</td></tr>
--- <tr><td>segment_radius</td><td>number</td><td>the size of the snake</td></tr> --- <tr><td>segment_radius</td><td>number</td><td>the size of the snake</td></tr>
--- <tr><td>mass</td><td>number</td><td>the weight of the snake</td></tr> --- <tr><td>mass</td><td>number</td><td>the weight of the snake</td></tr>
...@@ -121,9 +126,13 @@ end ...@@ -121,9 +126,13 @@ end
-- A negative angle means turn left and a positive angle -- A negative angle means turn left and a positive angle
-- means turn right. With 0, the snake keeps its direction. -- means turn right. With 0, the snake keeps its direction.
-- @return new angle relative to the head direction -- @return new angle relative to the head direction
--@return if true the snake will use boost, otherwise false or empty (optional)
-- @usage function step() -- @usage function step()
-- return 0.005 -- return 0.005
-- end -- end
-- @usage function step()
-- return 0.005, true
-- end
function step() function step()
return 0.005 return 0.005
end end
This diff is collapsed.
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