~fkmclane/armagetronad/armagetron.py

« back to all changes in this revision

Viewing changes to doc.html

  • Committer: Foster McLane
  • Date: 2018-06-25 01:04:57 UTC
  • Revision ID: fkmclane@gmail.com-20180625010457-nww0m76jfleimn8u
use semantic 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
 
5
6
                <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
 
7
 
6
8
                <link href="/res/common.css" rel="stylesheet" type="text/css"/>
 
9
 
7
10
                <style>
8
11
                        .content table {
9
12
                                width: 100%;
21
24
                </style>
22
25
        </head>
23
26
        <body>
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">
 
27
                <header>
 
28
                        <img src="/res/aalogo.png" alt=""/>
 
29
                        <span>Scripting Library</span>
 
30
                </header>
 
31
 
 
32
                <main>
29
33
                        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.
30
34
                        <br/>
31
35
                        <br/>
553
557
 
554
558
armagetron.run()
555
559
                        </code></pre>
556
 
                </div>
 
560
                </main>
557
561
        </body>
558
562
</html>