Skip to content

Commit

Permalink
epub switch
Browse files Browse the repository at this point in the history
  • Loading branch information
ShawnDriscoll committed Oct 26, 2017
1 parent b189000 commit 9b9292c
Show file tree
Hide file tree
Showing 22 changed files with 41 additions and 102 deletions.
Binary file modified docs/build/.doctrees/environment.pickle
Binary file not shown.
Binary file modified docs/build/.doctrees/license.doctree
Binary file not shown.
Binary file modified docs/build/.doctrees/samples.doctree
Binary file not shown.
Binary file modified docs/build/.doctrees/tutorial.doctree
Binary file not shown.
Binary file modified docs/build/_images/diceroll_manual_cover_art.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions docs/build/debugging.html
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,8 @@ <h3>Navigation</h3>
</ul>
</div>
<div class="footer">
&copy; Copyright 2017, Shawn Driscoll.
Last updated on Oct 25, 2017.
&copy; Copyright 2017, SHONNER CORP.
Last updated on Oct 26, 2017.
Created using <a href="http://sphinx.pocoo.org/">Sphinx</a>.
</div>
</body>
Expand Down
4 changes: 2 additions & 2 deletions docs/build/designers_notes.html
Original file line number Diff line number Diff line change
Expand Up @@ -200,8 +200,8 @@ <h3>Navigation</h3>
</ul>
</div>
<div class="footer">
&copy; Copyright 2017, Shawn Driscoll.
Last updated on Oct 25, 2017.
&copy; Copyright 2017, SHONNER CORP.
Last updated on Oct 26, 2017.
Created using <a href="http://sphinx.pocoo.org/">Sphinx</a>.
</div>
</body>
Expand Down
4 changes: 2 additions & 2 deletions docs/build/diceroll.html
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,8 @@ <h3>Navigation</h3>
</ul>
</div>
<div class="footer">
&copy; Copyright 2017, Shawn Driscoll.
Last updated on Oct 25, 2017.
&copy; Copyright 2017, SHONNER CORP.
Last updated on Oct 26, 2017.
Created using <a href="http://sphinx.pocoo.org/">Sphinx</a>.
</div>
</body>
Expand Down
4 changes: 2 additions & 2 deletions docs/build/genindex.html
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@ <h3>Navigation</h3>
</ul>
</div>
<div class="footer">
&copy; Copyright 2017, Shawn Driscoll.
Last updated on Oct 25, 2017.
&copy; Copyright 2017, SHONNER CORP.
Last updated on Oct 26, 2017.
Created using <a href="http://sphinx.pocoo.org/">Sphinx</a>.
</div>
</body>
Expand Down
4 changes: 2 additions & 2 deletions docs/build/glossary.html
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,8 @@ <h3>Navigation</h3>
</ul>
</div>
<div class="footer">
&copy; Copyright 2017, Shawn Driscoll.
Last updated on Oct 25, 2017.
&copy; Copyright 2017, SHONNER CORP.
Last updated on Oct 26, 2017.
Created using <a href="http://sphinx.pocoo.org/">Sphinx</a>.
</div>
</body>
Expand Down
4 changes: 2 additions & 2 deletions docs/build/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,8 @@ <h3>Navigation</h3>
</ul>
</div>
<div class="footer">
&copy; Copyright 2017, Shawn Driscoll.
Last updated on Oct 25, 2017.
&copy; Copyright 2017, SHONNER CORP.
Last updated on Oct 26, 2017.
Created using <a href="http://sphinx.pocoo.org/">Sphinx</a>.
</div>
</body>
Expand Down
4 changes: 2 additions & 2 deletions docs/build/introduction.html
Original file line number Diff line number Diff line change
Expand Up @@ -217,8 +217,8 @@ <h3>Navigation</h3>
</ul>
</div>
<div class="footer">
&copy; Copyright 2017, Shawn Driscoll.
Last updated on Oct 25, 2017.
&copy; Copyright 2017, SHONNER CORP.
Last updated on Oct 26, 2017.
Created using <a href="http://sphinx.pocoo.org/">Sphinx</a>.
</div>
</body>
Expand Down
6 changes: 3 additions & 3 deletions docs/build/license.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ <h1><strong>Open Source</strong><a class="headerlink" href="#open-source" title=
<div class="section" id="mit-license">
<h2>MIT License<a class="headerlink" href="#mit-license" title="Permalink to this headline"></a></h2>
<p class="centered">
<strong>LICENSE AGREEMENT</strong></p><p>Copyright (c) 2017 Shawn Driscoll</p>
<strong>LICENSE AGREEMENT</strong></p><p>Copyright (c) 2017, SHONNER CORPORATION</p>
<p>Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the &quot;Software&quot;), to deal
in the Software without restriction, including without limitation the rights
Expand Down Expand Up @@ -115,8 +115,8 @@ <h3>Navigation</h3>
</ul>
</div>
<div class="footer">
&copy; Copyright 2017, Shawn Driscoll.
Last updated on Oct 25, 2017.
&copy; Copyright 2017, SHONNER CORP.
Last updated on Oct 26, 2017.
Created using <a href="http://sphinx.pocoo.org/">Sphinx</a>.
</div>
</body>
Expand Down
6 changes: 3 additions & 3 deletions docs/build/modindex.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<link rel="index" title="Global index" href="genindex.html" />
<link rel="search" title="Search" href="search.html" />
<link rel="top" title="diceroll 2.4 Operations Manual" href="index.html" />
<generator object at 0x0388D918>
<generator object at 0x035CD990>

<script type="text/javascript">
DOCUMENTATION_OPTIONS.COLLAPSE_MODINDEX = true;
Expand Down Expand Up @@ -90,8 +90,8 @@ <h3>Navigation</h3>
</ul>
</div>
<div class="footer">
&copy; Copyright 2017, Shawn Driscoll.
Last updated on Oct 25, 2017.
&copy; Copyright 2017, SHONNER CORP.
Last updated on Oct 26, 2017.
Created using <a href="http://sphinx.pocoo.org/">Sphinx</a>.
</div>
</body>
Expand Down
56 changes: 6 additions & 50 deletions docs/build/samples.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,27 +53,7 @@ <h1><strong>Using roll() in Your Own Code</strong><a class="headerlink" href="#u
<div class="section" id="for-simple-die-rolls">
<h2>For Simple Die Rolls<a class="headerlink" href="#for-simple-die-rolls" title="Permalink to this headline"></a></h2>
<p>Sample Outputting of Die Rolls:</p>
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre> 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21</pre></div></td><td class="code"><div class="highlight"><pre><span class="c"># import the roll() module</span>
<div class="highlight"><pre><span class="c"># import the roll() module</span>
<span class="kn">from</span> <span class="nn">diceroll</span> <span class="kn">import</span> <span class="n">roll</span>

<span class="c"># enter the roll type to be made</span>
Expand All @@ -95,35 +75,11 @@ <h2>For Simple Die Rolls<a class="headerlink" href="#for-simple-die-rolls" title
<span class="k">for</span> <span class="n">i</span> <span class="ow">in</span> <span class="nb">range</span><span class="p">(</span><span class="mi">20</span><span class="p">):</span>
<span class="k">print</span> <span class="s">&#39;You rolled a </span><span class="si">%d</span><span class="s">&#39;</span> <span class="o">%</span> <span class="n">roll</span><span class="p">(</span><span class="n">dice</span><span class="p">)</span>
</pre></div>
</td></tr></table></div>
</div>
<div class="section" id="for-probabilites">
<h2>For Probabilites<a class="headerlink" href="#for-probabilites" title="Permalink to this headline"></a></h2>
<p>Sample Task Resolution:</p>
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre> 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25</pre></div></td><td class="code"><div class="highlight"><pre><span class="c"># import the roll() module</span>
<div class="highlight"><pre><span class="c"># import the roll() module</span>
<span class="kn">from</span> <span class="nn">diceroll</span> <span class="kn">import</span> <span class="n">roll</span>

<span class="c"># Enter your character&#39;s chances to succeed at a task</span>
Expand All @@ -149,7 +105,7 @@ <h2>For Probabilites<a class="headerlink" href="#for-probabilites" title="Permal
<span class="k">if</span> <span class="n">dice_roll</span> <span class="o">-</span> <span class="mi">8</span> <span class="o">&lt;</span> <span class="o">-</span><span class="mi">6</span><span class="p">:</span>
<span class="k">print</span> <span class="s">&#39;Your character died from injuries!&#39;</span>
</pre></div>
</td></tr></table></div>
</div>
<div class="section" id="for-repairing-game-code">
<h2>For Repairing Game Code<a class="headerlink" href="#for-repairing-game-code" title="Permalink to this headline"></a></h2>
<p>Often times, game code will be downloaded or found that contains
Expand Down Expand Up @@ -225,8 +181,8 @@ <h3>Navigation</h3>
</ul>
</div>
<div class="footer">
&copy; Copyright 2017, Shawn Driscoll.
Last updated on Oct 25, 2017.
&copy; Copyright 2017, SHONNER CORP.
Last updated on Oct 26, 2017.
Created using <a href="http://sphinx.pocoo.org/">Sphinx</a>.
</div>
</body>
Expand Down
6 changes: 3 additions & 3 deletions docs/build/search.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<link rel="index" title="Global index" href="genindex.html" />
<link rel="search" title="Search" href="" />
<link rel="top" title="diceroll 2.4 Operations Manual" href="index.html" />
<generator object at 0x036BB738>
<generator object at 0x035C19B8>
<script type="text/javascript" src="_static/searchtools.js"></script>

</head>
Expand Down Expand Up @@ -81,8 +81,8 @@ <h3>Navigation</h3>
</ul>
</div>
<div class="footer">
&copy; Copyright 2017, Shawn Driscoll.
Last updated on Oct 25, 2017.
&copy; Copyright 2017, SHONNER CORP.
Last updated on Oct 26, 2017.
Created using <a href="http://sphinx.pocoo.org/">Sphinx</a>.
</div>
</body>
Expand Down
2 changes: 1 addition & 1 deletion docs/build/searchindex.json

Large diffs are not rendered by default.

17 changes: 4 additions & 13 deletions docs/build/tutorial.html
Original file line number Diff line number Diff line change
Expand Up @@ -101,16 +101,7 @@ <h2>Rolling the Dice<a class="headerlink" href="#rolling-the-dice" title="Permal
</div>
<p><strong>diceroll</strong> uses a simple standard when it comes to rolling various dice types.</p>
<p>Some examples are:</p>
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre> 1
2
3
4
5
6
7
8
9
10</pre></div></td><td class="code"><div class="highlight"><pre><span class="n">roll</span><span class="p">(</span><span class="s">&#39;D6&#39;</span><span class="p">)</span> <span class="ow">or</span> <span class="n">roll</span><span class="p">(</span><span class="s">&#39;1D6&#39;</span><span class="p">)</span> <span class="c"># roll one 6-sided die</span>
<div class="highlight"><pre><span class="n">roll</span><span class="p">(</span><span class="s">&#39;D6&#39;</span><span class="p">)</span> <span class="ow">or</span> <span class="n">roll</span><span class="p">(</span><span class="s">&#39;1D6&#39;</span><span class="p">)</span> <span class="c"># roll one 6-sided die</span>
<span class="n">roll</span><span class="p">(</span><span class="s">&#39;2D6&#39;</span><span class="p">)</span> <span class="c"># roll two 6-sided dice</span>
<span class="n">roll</span><span class="p">(</span><span class="s">&#39;D10&#39;</span><span class="p">)</span> <span class="c"># roll a 10-sided die (1 - 10)</span>
<span class="n">roll</span><span class="p">(</span><span class="s">&#39;D100&#39;</span><span class="p">)</span> <span class="c"># roll a 100-sided die (1 - 100)</span>
Expand All @@ -121,7 +112,7 @@ <h2>Rolling the Dice<a class="headerlink" href="#rolling-the-dice" title="Permal
<span class="n">roll</span><span class="p">(</span><span class="s">&#39;2DD+3&#39;</span><span class="p">)</span> <span class="c"># roll (2D6+3) x 10</span>
<span class="n">roll</span><span class="p">(</span><span class="s">&#39;BOON&#39;</span><span class="p">)</span> <span class="c"># roll 3D6 and keep the higher two dice</span>
</pre></div>
</td></tr></table><p>
<p>
<span class="versionmodified">Deprecated in version 1.9.</span></p>
<p>D00 has been replaced with D100.</p>
<p>
Expand Down Expand Up @@ -184,8 +175,8 @@ <h3>Navigation</h3>
</ul>
</div>
<div class="footer">
&copy; Copyright 2017, Shawn Driscoll.
Last updated on Oct 25, 2017.
&copy; Copyright 2017, SHONNER CORP.
Last updated on Oct 26, 2017.
Created using <a href="http://sphinx.pocoo.org/">Sphinx</a>.
</div>
</body>
Expand Down
14 changes: 7 additions & 7 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,13 +85,13 @@
# The style sheet to use for HTML and HTML Help pages. A file of that name
# must exist either in Sphinx' static/ path, or in one of the custom paths
# given in html_static_path.
#html_style = 'default.css'
html_style = 'default.css'

# on_rtd = os.environ.get('READTHEDOCS') == 'True'
# if on_rtd:
# html_theme = 'default'
# else:
# html_theme = 'nature'
on_rtd = os.environ.get('READTHEDOCS') == 'True'
if on_rtd:
html_theme = 'default'
else:
html_theme = 'nature'

# The name for this set of Sphinx documents. If None, it defaults to
# "<project> v<release> documentation".
Expand Down Expand Up @@ -167,7 +167,7 @@
# (source start file, target name, title, author, document class [howto/manual]).
latex_documents = [
('index', 'diceroll.tex', u'diceroll Operations Manual',
u'Shawn Driscoll\nSHONNER PRESS', 'manual'),
u'Shawn Driscoll', 'manual'),
]

# The name of an image file (relative to this directory) to place at the top of
Expand Down
Binary file modified docs/source/diceroll_manual_cover_art.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 0 additions & 3 deletions docs/source/samples.rst
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
**Using roll() in Your Own Code**
=================================

.. highlight:: python
:linenothreshold: 5

For Simple Die Rolls
--------------------

Expand Down
5 changes: 0 additions & 5 deletions docs/source/tutorial.rst
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,9 @@ Three additional dice types are now available:

**diceroll** uses a simple standard when it comes to rolling various dice types.

.. highlight:: python
:linenothreshold: 5

Some examples are:

.. literalinclude:: databox1.dat
:language: python
:linenos:

.. deprecated:: 1.9

Expand Down

0 comments on commit 9b9292c

Please sign in to comment.