~fkmclane/armagetronad/armagetron.py

« back to all changes in this revision

Viewing changes to doc.html

  • Committer: Foster McLane
  • Date: 2018-06-24 21:48:17 UTC
  • Revision ID: fkmclane@gmail.com-20180624214817-scgxc5eyq3njqztf
rename doc.html to api.html

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
<html>
3
3
        <head>
4
4
                <title>Scripting Library</title>
5
 
 
6
5
                <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
7
 
 
8
6
                <link href="/res/common.css" rel="stylesheet" type="text/css"/>
9
 
 
10
7
                <style>
11
8
                        .content table {
12
9
                                width: 100%;
24
21
                </style>
25
22
        </head>
26
23
        <body>
27
 
                <header>
28
 
                        <img src="/res/aalogo.png" alt=""/>
29
 
                        <span>Scripting Library</span>
30
 
                </header>
31
 
 
32
 
                <main>
 
24
                <div class="header">
 
25
                        <img src="/res/aalogo.png" alt="" class="logo"/>
 
26
                        <span class="title">Scripting Library</span>
 
27
                </div>
 
28
                <div class="content">
33
29
                        To use the library, you must first use <code>import armagetron</code> at the beginning of your python script.  You must also call <code>armagetron.run()</code> after all of your handler initialization.  This function will then go into a loop and parse all of the ladderlog commands for you.  Examples are available at the bottom.
34
30
                        <br/>
35
31
                        <br/>
557
553
 
558
554
armagetron.run()
559
555
                        </code></pre>
560
 
                </main>
 
556
                </div>
561
557
        </body>
562
558
</html>