48a6ba2d68b9

cl-ggp: Update site.
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Mon, 28 Mar 2016 17:53:43 +0000
parents 73c9b8445871
children 0be66a504a79
branches/tags (none)
files cl-ggp/_dmedia/style.less cl-ggp/changelog/index.html cl-ggp/index.html cl-ggp/installation/index.html cl-ggp/overview/index.html cl-ggp/reference/index.html

Changes

--- a/cl-ggp/_dmedia/style.less	Mon Mar 28 17:52:57 2016 +0000
+++ b/cl-ggp/_dmedia/style.less	Mon Mar 28 17:53:43 2016 +0000
@@ -2,49 +2,109 @@
     overflow-y: scroll;
 }
 .wrap {
-    width: 500px;
+    width: 600px;
     margin: 40px auto 180px;
 }
-h1, h2, h3 {
+body {
+    font-size: 18px;
+    line-height: 1.4;
+    font-family: Georgia, Palatino, "Palatino Linotype", serif;
+    color: #111111;
+}
+a {
+    text-decoration: none;
+    color: #0069d6;
+}
+h1, h2, h3, h4, h5 {
+    font-family: Palatino, "Palatino Linotype", serif;
+
     a {
-        color: #404040;
+        color: #111111;
 
         &:hover {
             color: #0069d6;
-            text-decoration: none;
         }
     }
 }
+h1 {
+    font-size: 48px;
+    line-height: 1;
+}
 h2 {
-    font-size: 18px;
+    font-size: 34px;
+    line-height: 1;
+    margin-top: 40px;
+    margin-bottom: 0;
+
+    code {
+        font-size: 34px;
+        border: none;
+        background: #fff4f4;
+        padding: 0px 5px;
+    }
 }
 h3 {
-    font-size: 16px;
+    font-size: 26px;
+    line-height: 1;
+    margin-top: 40px;
+    margin-bottom: 0;
+
+    code {
+        font-size: 24px;
+        border: none;
+        background: #fff4f4;
+        padding: 0px 5px;
+    }
 }
 h4 {
-    font-size: 14px;
+    font-size: 20px;
+    line-height: 1;
+    margin-top: 30px;
+    margin-bottom: 0;
+
+    code {
+        font-size: 18px;
+        border: none;
+        background: #fff4f4;
+        padding: 0px 5px;
+    }
 }
 h5 {
-    font-size: 12px;
-}
-i, em {
-    a {
-        font-style: italic;
+    font-size: 16px;
+    line-height: 1;
+    margin-top: 18px;
+    margin-bottom: 0;
+
+    code {
+        font-size: 14px/1;
+        border: none;
+        background: #fff4f4;
+        padding: 0px 5px;
     }
 }
 pre {
-    line-height: 16px;
+    font-size: 15px;
+    line-height: 1.3;
     white-space: pre;
     overflow-x: auto;
+    border: 1px solid #fdd;
+    background: #fffafa;
+    padding: 10px 10px;
+    font-family: Menlo, Monaco, Consolas, monospace;
+}
+code {
+    font-size: 15px;
+    border: 1px solid #fdd;
+    background: #fffafa;
+    padding: 1px 4px;
+    font-family: Menlo, Monaco, Consolas, monospace;
 }
 ol, ul {
     margin-bottom: 9px;
-
-    li {
-        color: #404040;
-    }
 }
 footer {
+    margin-top: 36px;
+    border-top: 1px solid #eee;
     text-align: center;
 }
 body.index {
@@ -56,15 +116,14 @@
             margin-bottom: 40px;
         }
     }
+    h2 {
+        font-size: 28px/1;
+    }
     ol.toc {
         list-style-type: none;
         margin-left: 0;
-
-        li {
-            font-size: 16px;
-            line-height: 1.25;
-
-        }
+        margin-left: 0px;
+        padding-left: 0px;
     }
 }
 body.content {
@@ -77,16 +136,18 @@
             text-align: right;
             font-size: 24px;
             line-height: 1;
-            margin-top: 10px;
+            margin-top: 0px;
         }
     }
     .toc {
         ul {
             list-style-type: none;
             margin-left: 0px;
+            padding-left: 0px;
 
             ul {
                 margin-left: 20px;
+                margin-bottom: 0;
             }
         }
     }
--- a/cl-ggp/changelog/index.html	Mon Mar 28 17:52:57 2016 +0000
+++ b/cl-ggp/changelog/index.html	Mon Mar 28 17:53:43 2016 +0000
@@ -3,7 +3,6 @@
     <head>
         <meta charset="utf-8"/>
         <title>Changelog / cl-ggp</title>
-        <link rel="stylesheet" href="../_dmedia/bootstrap.css"/>
         <link rel="stylesheet" href="../_dmedia/tango.css"/>
         <link rel="stylesheet/less" type="text/css" href="../_dmedia/style.less"/>
         <script src="../_dmedia/less.js" type="text/javascript">
--- a/cl-ggp/index.html	Mon Mar 28 17:52:57 2016 +0000
+++ b/cl-ggp/index.html	Mon Mar 28 17:53:43 2016 +0000
@@ -3,7 +3,6 @@
     <head>
         <meta charset="utf-8" />
         <title>cl-ggp</title>
-        <link rel="stylesheet" href="./_dmedia/bootstrap.css"/>
         <link rel="stylesheet" href="./_dmedia/tango.css"/>
         <link rel="stylesheet/less" type="text/css" href="./_dmedia/style.less">
         <script src="./_dmedia/less.js" type="text/javascript">
--- a/cl-ggp/installation/index.html	Mon Mar 28 17:52:57 2016 +0000
+++ b/cl-ggp/installation/index.html	Mon Mar 28 17:53:43 2016 +0000
@@ -3,7 +3,6 @@
     <head>
         <meta charset="utf-8"/>
         <title>Installation / cl-ggp</title>
-        <link rel="stylesheet" href="../_dmedia/bootstrap.css"/>
         <link rel="stylesheet" href="../_dmedia/tango.css"/>
         <link rel="stylesheet/less" type="text/css" href="../_dmedia/style.less"/>
         <script src="../_dmedia/less.js" type="text/javascript">
--- a/cl-ggp/overview/index.html	Mon Mar 28 17:52:57 2016 +0000
+++ b/cl-ggp/overview/index.html	Mon Mar 28 17:53:43 2016 +0000
@@ -3,7 +3,6 @@
     <head>
         <meta charset="utf-8"/>
         <title>Overview / cl-ggp</title>
-        <link rel="stylesheet" href="../_dmedia/bootstrap.css"/>
         <link rel="stylesheet" href="../_dmedia/tango.css"/>
         <link rel="stylesheet/less" type="text/css" href="../_dmedia/style.less"/>
         <script src="../_dmedia/less.js" type="text/javascript">
--- a/cl-ggp/reference/index.html	Mon Mar 28 17:52:57 2016 +0000
+++ b/cl-ggp/reference/index.html	Mon Mar 28 17:53:43 2016 +0000
@@ -3,7 +3,6 @@
     <head>
         <meta charset="utf-8"/>
         <title> API Reference / cl-ggp</title>
-        <link rel="stylesheet" href="../_dmedia/bootstrap.css"/>
         <link rel="stylesheet" href="../_dmedia/tango.css"/>
         <link rel="stylesheet/less" type="text/css" href="../_dmedia/style.less"/>
         <script src="../_dmedia/less.js" type="text/javascript">
@@ -42,11 +41,11 @@
 </li>
 <li><a href="#package-ggp-rules">Package GGP-RULES</a></li>
 </ul></div>
-<h2 id="package-ggp">Package GGP</h2>
+<h2 id="package-ggp">Package <code>GGP</code></h2>
 <p>The main GGP package.</p>
-<h3 id="ggp-player-class">GGP-PLAYER (class)</h3>
+<h3 id="ggp-player-class"><code>GGP-PLAYER</code> (class)</h3>
 <p>The base class for a GGP player.  Custom players should extend this.</p>
-<h4 id="slot-name">Slot NAME</h4>
+<h4 id="slot-name">Slot <code>NAME</code></h4>
 <ul>
 <li>Allocation: <code>:INSTANCE</code></li>
 <li>Type: <code>STRING</code></li>
@@ -55,7 +54,7 @@
 <li>Reader: <code>PLAYER-NAME</code></li>
 </ul>
 <p>The name of the player.</p>
-<h4 id="slot-port">Slot PORT</h4>
+<h4 id="slot-port">Slot <code>PORT</code></h4>
 <ul>
 <li>Allocation: <code>:INSTANCE</code></li>
 <li>Type: <code>(INTEGER 0)</code></li>
@@ -64,7 +63,7 @@
 <li>Reader: <code>PLAYER-PORT</code></li>
 </ul>
 <p>The port the HTTP server should listen on.</p>
-<h4 id="slot-match-roles">Slot MATCH-ROLES</h4>
+<h4 id="slot-match-roles">Slot <code>MATCH-ROLES</code></h4>
 <ul>
 <li>Allocation: <code>:INSTANCE</code></li>
 <li>Type: <code>(OR NULL LIST)</code></li>
@@ -72,39 +71,39 @@
 <li>Reader: <code>PLAYER-MATCH-ROLES</code></li>
 </ul>
 <p>A list of the roles for the current match.  Feel free to read and use this if you like.  <strong>Do not modify this.</strong></p>
-<h4 id="slot-start-clock">Slot START-CLOCK</h4>
+<h4 id="slot-start-clock">Slot <code>START-CLOCK</code></h4>
 <ul>
 <li>Allocation: <code>:INSTANCE</code></li>
 <li>Type: <code>(OR NULL (INTEGER 1))</code></li>
 <li>Initform: <code>NIL</code></li>
 </ul>
 <p>The start clock for the current game.  <strong>Do not touch this.</strong>  Use the <code>timeout</code> value passed to your methods instead.</p>
-<h4 id="slot-play-clock">Slot PLAY-CLOCK</h4>
+<h4 id="slot-play-clock">Slot <code>PLAY-CLOCK</code></h4>
 <ul>
 <li>Allocation: <code>:INSTANCE</code></li>
 <li>Type: <code>(OR NULL (INTEGER 1))</code></li>
 <li>Initform: <code>NIL</code></li>
 </ul>
 <p>The play clock for the current game.  <strong>Do not touch this.</strong>  Use the <code>timeout</code> value passed to your methods instead.</p>
-<h4 id="slot-message-start">Slot MESSAGE-START</h4>
+<h4 id="slot-message-start">Slot <code>MESSAGE-START</code></h4>
 <ul>
 <li>Allocation: <code>:INSTANCE</code></li>
 <li>Type: <code>(OR NULL (INTEGER 0))</code></li>
 <li>Initform: <code>NIL</code></li>
 </ul>
 <p>The (internal-real) timestamp of when the current GGP message was received.  <strong>Do not touch this.</strong>  Use the <code>timeout</code> value passed to your methods instead.</p>
-<h4 id="slot-current-match">Slot CURRENT-MATCH</h4>
+<h4 id="slot-current-match">Slot <code>CURRENT-MATCH</code></h4>
 <ul>
 <li>Allocation: <code>:INSTANCE</code></li>
 <li>Initform: <code>NIL</code></li>
 </ul>
 <p>The ID of the current match the player is playing, or <code>nil</code> if it is waiting.  <strong>Do not touch this.</strong></p>
-<h4 id="slot-server">Slot SERVER</h4>
+<h4 id="slot-server">Slot <code>SERVER</code></h4>
 <ul>
 <li>Allocation: <code>:INSTANCE</code></li>
 </ul>
 <p>The Clack server object of the player.  <strong>Do not touch this.</strong>  Use <code>start-player</code> and <code>kill-player</code> to start/stop the server safely.</p>
-<h3 id="kill-player-function">KILL-PLAYER (function)</h3>
+<h3 id="kill-player-function"><code>KILL-PLAYER</code> (function)</h3>
 <div class="codehilite"><pre>(KILL-PLAYER PLAYER)
 </pre></div>
 
@@ -112,7 +111,7 @@
 <p>Kill the HTTP server for the given player.</p>
 <p>This will <strong>not</strong> be done gently.  No cleanup will be performed if the player
   is in the middle of a game.  Be careful.</p>
-<h3 id="player-select-move-generic-function">PLAYER-SELECT-MOVE (generic function)</h3>
+<h3 id="player-select-move-generic-function"><code>PLAYER-SELECT-MOVE</code> (generic function)</h3>
 <div class="codehilite"><pre>(PLAYER-SELECT-MOVE PLAYER TIMEOUT)
 </pre></div>
 
@@ -125,7 +124,7 @@
 <p><code>timeout</code> is the timestamp that the response to the server is due by, in
   internal-real time units.  Basically: when <code>(get-internal-real-time)</code> returns
   this number, your message better have reached the server.</p>
-<h3 id="player-start-game-generic-function">PLAYER-START-GAME (generic function)</h3>
+<h3 id="player-start-game-generic-function"><code>PLAYER-START-GAME</code> (generic function)</h3>
 <div class="codehilite"><pre>(PLAYER-START-GAME PLAYER RULES ROLE TIMEOUT)
 </pre></div>
 
@@ -137,7 +136,7 @@
 <p><code>timeout</code> is the timestamp that the response to the server is due by, in
   internal-real time units.  Basically: when <code>(get-internal-real-time)</code> returns
   this number, your message better have reached the server.</p>
-<h3 id="player-stop-game-generic-function">PLAYER-STOP-GAME (generic function)</h3>
+<h3 id="player-stop-game-generic-function"><code>PLAYER-STOP-GAME</code> (generic function)</h3>
 <div class="codehilite"><pre>(PLAYER-STOP-GAME PLAYER)
 </pre></div>
 
@@ -145,7 +144,7 @@
 <p>Called when the game is stopped.</p>
 <p>This is a good place to do any teardown stuff your player might need, or maybe
   to suggest a GC to your Lisp implementation.</p>
-<h3 id="player-update-game-generic-function">PLAYER-UPDATE-GAME (generic function)</h3>
+<h3 id="player-update-game-generic-function"><code>PLAYER-UPDATE-GAME</code> (generic function)</h3>
 <div class="codehilite"><pre>(PLAYER-UPDATE-GAME PLAYER MOVES)
 </pre></div>
 
@@ -153,13 +152,13 @@
 <p>Called after all players have made their moves.</p>
 <p><code>moves</code> will be a list of <code>(role . move)</code> conses representing moves made by
   each player last turn.</p>
-<h3 id="start-player-function">START-PLAYER (function)</h3>
+<h3 id="start-player-function"><code>START-PLAYER</code> (function)</h3>
 <div class="codehilite"><pre>(START-PLAYER PLAYER)
 </pre></div>
 
 
 <p>Start the HTTP server for the given player.</p>
-<h2 id="package-ggp-rules">Package GGP-RULES</h2>
+<h2 id="package-ggp-rules">Package <code>GGP-RULES</code></h2>
 <p>Symbol storage package.</p>
 <p>The <code>GGP-RULES</code> package is used to hold all the symbols in the GDL game
   descriptions, as well as some special symbols in the GGP protocol.  It is