Skip to content

Commit

Permalink
Version (patch) bump, docs update
Browse files Browse the repository at this point in the history
  • Loading branch information
Cimbali committed Mar 3, 2017
1 parent d5f7817 commit 026b6ac
Show file tree
Hide file tree
Showing 19 changed files with 111 additions and 170 deletions.
18 changes: 11 additions & 7 deletions docs/README.html
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
<br />
<a href="index.html" class="icon icon-home"> Docs home</a>
<div class="version">
v1.0
v1.0.1
</div>


Expand All @@ -74,8 +74,9 @@




<ul class="current">


<ul class="current">
<li class="toctree-l1 current"><a class="current reference internal" href="#">What is Pympress?</a></li>
<li class="toctree-l1"><a class="reference internal" href="#installing">Installing</a><ul>
<li class="toctree-l2"><a class="reference internal" href="#if-you-have-python">If you have python</a><ul>
Expand All @@ -99,6 +100,7 @@
<li class="toctree-l1"><a class="reference internal" href="pympress.html">Pympress package</a></li>
</ul>




<hr style="border: 0; height: 0; border-top: 1px solid rgba(0, 0, 0, 0.1); border-bottom: 1px solid rgba(255, 255, 255, 0.3); width:80%; margin: 10px auto;" />
Expand Down Expand Up @@ -218,8 +220,10 @@
<li>Introspection bindings for poppler may be shipped separately, ensure you have those as well (<code class="docutils literal"><span class="pre">typelib-1_0-Poppler-0_18</span></code> on OpenSUSE, <code class="docutils literal"><span class="pre">gir1.2-poppler-0.18</span></code> on Ubuntu)</li>
</ul>
</li>
<li>optionally VLC, to play videos (with the same bitness as Python)</li>
<li>optionally <a class="reference external" href="https://www.videolan.org/vlc/">VLC</a>, to play videos (with the same bitness as Python)</li>
<li>optionally <a class="reference external" href="https://www.gnu.org/software/gettext/">gettext</a>, to get a translated version of Pympress.</li>
</ul>
<p>Gettext is part of libc on Linux, and part of the PyGi installer on Windows. On Mac OS X, you can <a class="reference external" href="http://stackoverflow.com/a/33896321/1387346">use brew to install gettext</a>.</p>
<p>On windows GTK+3, Poppler and their python bindings are all shipped together in <a class="reference external" href="https://sourceforge.net/projects/pygobjectwin32/">the PyGi installer</a>. <em>Be sure to check the supported Python versions (up to 3.4 at the time of writing)</em>, they appear in the FEATURES list in the linked page.</p>
<p>On other platforms they are often installed by default, or easily available through your package or software manager.
For example, on ubuntu, you can run the following as root to make sure you have all the prerequisites <em>assuming you use python3</em>:</p>
Expand Down Expand Up @@ -285,10 +289,10 @@

<div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">

<a href="pympress.html" class="btn btn-neutral float-right" title="Pympress package" accesskey="n">Next <span class="fa fa-arrow-circle-right"></span></a>
<a href="pympress.html" class="btn btn-neutral float-right" title="Pympress package" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right"></span></a>


<a href="index.html" class="btn btn-neutral" title="Welcome to pympress’s documentation!" accesskey="p"><span class="fa fa-arrow-circle-left"></span> Previous</a>
<a href="index.html" class="btn btn-neutral" title="Welcome to pympress’s documentation!" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left"></span> Previous</a>

</div>

Expand Down Expand Up @@ -319,7 +323,7 @@
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT:'./',
VERSION:'b&#39;0.6-107-g2817d0c&#39;',
VERSION:'b&#39;0.6-117-gd5f7817&#39;',
COLLAPSE_INDEX:false,
FILE_SUFFIX:'.html',
HAS_SOURCE: true,
Expand Down
29 changes: 4 additions & 25 deletions docs/_modules/gi/overrides/Gtk.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
<br />
<a href="../../../index.html" class="icon icon-home"> Docs home</a>
<div class="version">
v1.0
v1.0.1
</div>


Expand All @@ -73,16 +73,6 @@




<ul>
<li class="toctree-l1"><a class="reference internal" href="../../../README.html">What is Pympress?</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../README.html#installing">Installing</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../README.html#usage">Usage</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../README.html#hacking">Hacking</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../pympress.html">Pympress package</a></li>
</ul>



<hr style="border: 0; height: 0; border-top: 1px solid rgba(0, 0, 0, 0.1); border-bottom: 1px solid rgba(255, 255, 255, 0.3); width:80%; margin: 10px auto;" />
<a href="../../../genindex.html">Index</a>
Expand Down Expand Up @@ -1233,11 +1223,8 @@ <h1>Source code for gi.overrides.Gtk</h1><div class="highlight"><pre>
<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="n">start</span><span class="p">,</span> <span class="n">stop</span><span class="p">,</span> <span class="n">step</span><span class="p">):</span>
<span class="n">alist</span><span class="o">.</span><span class="n">append</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">model</span><span class="o">.</span><span class="n">get_value</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">iter</span><span class="p">,</span> <span class="n">i</span><span class="p">))</span>
<span class="k">return</span> <span class="n">alist</span>
<span class="k">elif</span> <span class="nb">isinstance</span><span class="p">(</span><span class="n">key</span><span class="p">,</span> <span class="nb">tuple</span><span class="p">):</span>
<span class="k">return</span> <span class="p">[</span><span class="bp">self</span><span class="p">[</span><span class="n">k</span><span class="p">]</span> <span class="k">for</span> <span class="n">k</span> <span class="ow">in</span> <span class="n">key</span><span class="p">]</span>
<span class="k">else</span><span class="p">:</span>
<span class="k">raise</span> <span class="ne">TypeError</span><span class="p">(</span><span class="s2">&quot;indices must be integers, slice or tuple, not </span><span class="si">%s</span><span class="s2">&quot;</span>
<span class="o">%</span> <span class="nb">type</span><span class="p">(</span><span class="n">key</span><span class="p">)</span><span class="o">.</span><span class="vm">__name__</span><span class="p">)</span>
<span class="k">raise</span> <span class="ne">TypeError</span><span class="p">(</span><span class="s2">&quot;indices must be integers, not </span><span class="si">%s</span><span class="s2">&quot;</span> <span class="o">%</span> <span class="nb">type</span><span class="p">(</span><span class="n">key</span><span class="p">)</span><span class="o">.</span><span class="vm">__name__</span><span class="p">)</span>

<span class="k">def</span> <span class="nf">__setitem__</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">key</span><span class="p">,</span> <span class="n">value</span><span class="p">):</span>
<span class="k">if</span> <span class="nb">isinstance</span><span class="p">(</span><span class="n">key</span><span class="p">,</span> <span class="nb">int</span><span class="p">):</span>
Expand All @@ -1256,16 +1243,8 @@ <h1>Source code for gi.overrides.Gtk</h1><div class="highlight"><pre>

<span class="k">for</span> <span class="n">i</span><span class="p">,</span> <span class="n">v</span> <span class="ow">in</span> <span class="nb">enumerate</span><span class="p">(</span><span class="n">indexList</span><span class="p">):</span>
<span class="bp">self</span><span class="o">.</span><span class="n">model</span><span class="o">.</span><span class="n">set_value</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">iter</span><span class="p">,</span> <span class="n">v</span><span class="p">,</span> <span class="n">value</span><span class="p">[</span><span class="n">i</span><span class="p">])</span>
<span class="k">elif</span> <span class="nb">isinstance</span><span class="p">(</span><span class="n">key</span><span class="p">,</span> <span class="nb">tuple</span><span class="p">):</span>
<span class="k">if</span> <span class="nb">len</span><span class="p">(</span><span class="n">key</span><span class="p">)</span> <span class="o">!=</span> <span class="nb">len</span><span class="p">(</span><span class="n">value</span><span class="p">):</span>
<span class="k">raise</span> <span class="ne">ValueError</span><span class="p">(</span>
<span class="s2">&quot;attempt to assign sequence of size </span><span class="si">%d</span><span class="s2"> to sequence of size </span><span class="si">%d</span><span class="s2">&quot;</span>
<span class="o">%</span> <span class="p">(</span><span class="nb">len</span><span class="p">(</span><span class="n">value</span><span class="p">),</span> <span class="nb">len</span><span class="p">(</span><span class="n">key</span><span class="p">)))</span>
<span class="k">for</span> <span class="n">k</span><span class="p">,</span> <span class="n">v</span> <span class="ow">in</span> <span class="nb">zip</span><span class="p">(</span><span class="n">key</span><span class="p">,</span> <span class="n">value</span><span class="p">):</span>
<span class="bp">self</span><span class="p">[</span><span class="n">k</span><span class="p">]</span> <span class="o">=</span> <span class="n">v</span>
<span class="k">else</span><span class="p">:</span>
<span class="k">raise</span> <span class="ne">TypeError</span><span class="p">(</span><span class="s2">&quot;indices must be an integer, slice or tuple, not </span><span class="si">%s</span><span class="s2">&quot;</span>
<span class="o">%</span> <span class="nb">type</span><span class="p">(</span><span class="n">key</span><span class="p">)</span><span class="o">.</span><span class="vm">__name__</span><span class="p">)</span>
<span class="k">raise</span> <span class="ne">TypeError</span><span class="p">(</span><span class="s2">&quot;index must be an integer or slice, not </span><span class="si">%s</span><span class="s2">&quot;</span> <span class="o">%</span> <span class="nb">type</span><span class="p">(</span><span class="n">key</span><span class="p">)</span><span class="o">.</span><span class="vm">__name__</span><span class="p">)</span>

<span class="k">def</span> <span class="nf">_convert_negative_index</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">index</span><span class="p">):</span>
<span class="n">new_index</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">model</span><span class="o">.</span><span class="n">get_n_columns</span><span class="p">()</span> <span class="o">+</span> <span class="n">index</span>
Expand Down Expand Up @@ -1754,7 +1733,7 @@ <h1>Source code for gi.overrides.Gtk</h1><div class="highlight"><pre>
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT:'../../../',
VERSION:'b&#39;0.6-107-g2817d0c&#39;',
VERSION:'b&#39;0.6-117-gd5f7817&#39;',
COLLAPSE_INDEX:false,
FILE_SUFFIX:'.html',
HAS_SOURCE: true,
Expand Down
14 changes: 2 additions & 12 deletions docs/_modules/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
<br />
<a href="../index.html" class="icon icon-home"> Docs home</a>
<div class="version">
v1.0
v1.0.1
</div>


Expand All @@ -72,16 +72,6 @@




<ul>
<li class="toctree-l1"><a class="reference internal" href="../README.html">What is Pympress?</a></li>
<li class="toctree-l1"><a class="reference internal" href="../README.html#installing">Installing</a></li>
<li class="toctree-l1"><a class="reference internal" href="../README.html#usage">Usage</a></li>
<li class="toctree-l1"><a class="reference internal" href="../README.html#hacking">Hacking</a></li>
<li class="toctree-l1"><a class="reference internal" href="../pympress.html">Pympress package</a></li>
</ul>



<hr style="border: 0; height: 0; border-top: 1px solid rgba(0, 0, 0, 0.1); border-bottom: 1px solid rgba(255, 255, 255, 0.3); width:80%; margin: 10px auto;" />
<a href="../genindex.html">Index</a>
Expand Down Expand Up @@ -192,7 +182,7 @@ <h1>All modules for which code is available</h1>
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT:'../',
VERSION:'b&#39;0.6-107-g2817d0c&#39;',
VERSION:'b&#39;0.6-117-gd5f7817&#39;',
COLLAPSE_INDEX:false,
FILE_SUFFIX:'.html',
HAS_SOURCE: true,
Expand Down
16 changes: 3 additions & 13 deletions docs/_modules/pympress/document.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
<br />
<a href="../../index.html" class="icon icon-home"> Docs home</a>
<div class="version">
v1.0
v1.0.1
</div>


Expand All @@ -73,16 +73,6 @@




<ul>
<li class="toctree-l1"><a class="reference internal" href="../../README.html">What is Pympress?</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../README.html#installing">Installing</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../README.html#usage">Usage</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../README.html#hacking">Hacking</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../pympress.html">Pympress package</a></li>
</ul>



<hr style="border: 0; height: 0; border-top: 1px solid rgba(0, 0, 0, 0.1); border-bottom: 1px solid rgba(255, 255, 255, 0.3); width:80%; margin: 10px auto;" />
<a href="../../genindex.html">Index</a>
Expand Down Expand Up @@ -728,7 +718,7 @@ <h1>Source code for pympress.document</h1><div class="highlight"><pre>
<span class="sd"> &quot;&quot;&quot;</span>
<span class="k">if</span> <span class="n">number</span> <span class="o">&lt;</span> <span class="mi">0</span><span class="p">:</span>
<span class="n">number</span> <span class="o">=</span> <span class="mi">0</span>
<span class="k">elif</span> <span class="n">number</span> <span class="o">&gt;=</span> <span class="bp">self</span><span class="o">.</span><span class="n">nb_pages</span><span class="p">:</span>
<span class="k">if</span> <span class="n">number</span> <span class="o">&gt;=</span> <span class="bp">self</span><span class="o">.</span><span class="n">nb_pages</span><span class="p">:</span>
<span class="n">number</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">nb_pages</span> <span class="o">-</span> <span class="mi">1</span>

<span class="k">if</span> <span class="n">number</span> <span class="o">!=</span> <span class="bp">self</span><span class="o">.</span><span class="n">cur_page</span><span class="p">:</span>
Expand Down Expand Up @@ -909,7 +899,7 @@ <h1>Source code for pympress.document</h1><div class="highlight"><pre>
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT:'../../',
VERSION:'b&#39;0.6-107-g2817d0c&#39;',
VERSION:'b&#39;0.6-117-gd5f7817&#39;',
COLLAPSE_INDEX:false,
FILE_SUFFIX:'.html',
HAS_SOURCE: true,
Expand Down
14 changes: 2 additions & 12 deletions docs/_modules/pympress/surfacecache.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
<br />
<a href="../../index.html" class="icon icon-home"> Docs home</a>
<div class="version">
v1.0
v1.0.1
</div>


Expand All @@ -73,16 +73,6 @@




<ul>
<li class="toctree-l1"><a class="reference internal" href="../../README.html">What is Pympress?</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../README.html#installing">Installing</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../README.html#usage">Usage</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../README.html#hacking">Hacking</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../pympress.html">Pympress package</a></li>
</ul>



<hr style="border: 0; height: 0; border-top: 1px solid rgba(0, 0, 0, 0.1); border-bottom: 1px solid rgba(255, 255, 255, 0.3); width:80%; margin: 10px auto;" />
<a href="../../genindex.html">Index</a>
Expand Down Expand Up @@ -484,7 +474,7 @@ <h1>Source code for pympress.surfacecache</h1><div class="highlight"><pre>
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT:'../../',
VERSION:'b&#39;0.6-107-g2817d0c&#39;',
VERSION:'b&#39;0.6-117-gd5f7817&#39;',
COLLAPSE_INDEX:false,
FILE_SUFFIX:'.html',
HAS_SOURCE: true,
Expand Down
Loading

0 comments on commit 026b6ac

Please sign in to comment.