Updated website
This commit is contained in:
commit
57a0fa9a6e
27 changed files with 6706 additions and 0 deletions
136
file.config_file.html
Normal file
136
file.config_file.html
Normal file
|
@ -0,0 +1,136 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>
|
||||
File: Configuration File
|
||||
|
||||
— Sapling Documentation
|
||||
|
||||
</title>
|
||||
|
||||
<link rel="stylesheet" href="css/style.css" type="text/css" charset="utf-8" />
|
||||
|
||||
<link rel="stylesheet" href="css/common.css" type="text/css" charset="utf-8" />
|
||||
|
||||
<script type="text/javascript" charset="utf-8">
|
||||
pathId = "config_file";
|
||||
relpath = '';
|
||||
</script>
|
||||
|
||||
|
||||
<script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
|
||||
|
||||
<script type="text/javascript" charset="utf-8" src="js/app.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<div class="nav_wrap">
|
||||
<iframe id="nav" src="file_list.html?1"></iframe>
|
||||
<div id="resizer"></div>
|
||||
</div>
|
||||
|
||||
<div id="main" tabindex="-1">
|
||||
<div id="header">
|
||||
<div id="menu">
|
||||
|
||||
<a href="_index.html">Index</a> »
|
||||
<span class="title">File: Configuration File</span>
|
||||
|
||||
</div>
|
||||
|
||||
<div id="search">
|
||||
|
||||
<a class="full_list_link" id="class_list_link"
|
||||
href="class_list.html">
|
||||
|
||||
<svg width="24" height="24">
|
||||
<rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
|
||||
<rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
|
||||
<rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
|
||||
</svg>
|
||||
</a>
|
||||
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
|
||||
<div id="content"><div id='filecontents'><h1>Configuration File Documentation</h1>
|
||||
|
||||
<p>The configuration file for <code>sapling</code> is a standard YAML file. The general
|
||||
outline looks something like this:</p>
|
||||
|
||||
<pre class="code ruby"><code class="ruby"> ---
|
||||
-
|
||||
trunk: "This is a description of the dialogue tree."
|
||||
-
|
||||
branch:
|
||||
number: 1
|
||||
text: "This is the overall text for the branch."
|
||||
leaf:
|
||||
-
|
||||
text: "This is option 1."
|
||||
branch: 2
|
||||
-
|
||||
text: "This is option 2."
|
||||
branch: 3
|
||||
-
|
||||
branch:
|
||||
number: 2
|
||||
text: "This is the overall text for the branch."
|
||||
leaf:
|
||||
-
|
||||
text: "This is option 1."
|
||||
branch: 1
|
||||
-
|
||||
text: "This is option 2."
|
||||
branch: 3
|
||||
-
|
||||
branch:
|
||||
number: 3
|
||||
text: "This is the overall text for the branch."
|
||||
</code></pre>
|
||||
|
||||
<h2>Outline</h2>
|
||||
|
||||
<h4>Trunk</h4>
|
||||
|
||||
<p>The <code>trunk</code> is a metadata list. Currently, the only information we really care
|
||||
about is a general description for the tree. Because of this, <code>trunk</code> is the
|
||||
key, and the description is the value.</p>
|
||||
|
||||
<h4>Branch</h4>
|
||||
|
||||
<p>Branches are the content of a dialogue tree. Each <code>branch</code> has the following
|
||||
options:</p>
|
||||
|
||||
<ul>
|
||||
<li><code>number</code>: The branch number. This is how leaves get around. It must be unique.</li>
|
||||
<li><code>text</code>: The text provided by getting to this branch. The first branch is shown
|
||||
by default when the tree is opened.</li>
|
||||
<li><code>leaf</code>: [Optional] The list of options for the branch. Details for leaves are
|
||||
below. If no leaves are provided, the branch is considered a "terminal
|
||||
branch", and the program will end after reaching it.</li>
|
||||
</ul>
|
||||
|
||||
<h4>Leaf</h4>
|
||||
|
||||
<p>Leaves are the options of a branch. Each <code>leaf</code> has the following options:</p>
|
||||
|
||||
<ul>
|
||||
<li><code>text</code>: The text shown as the option.</li>
|
||||
<li><code>branch</code>: The branch this option takes the user to.</li>
|
||||
</ul>
|
||||
</div></div>
|
||||
|
||||
<div id="footer">
|
||||
Generated on Sat Oct 14 23:40:01 2017 by
|
||||
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
||||
0.9.9 (ruby-2.4.2).
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue