Skip to content

Commit

Permalink
Fix Sphinx warnings and build with '-W'
Browse files Browse the repository at this point in the history
  • Loading branch information
arteymix committed Feb 7, 2016
1 parent 487fbcb commit 01882fc
Show file tree
Hide file tree
Showing 9 changed files with 25 additions and 18 deletions.
Empty file added docs/_static/.gitignore
Empty file.
14 changes: 7 additions & 7 deletions docs/about/gnu-lgpl-v3.0.rst
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,12 @@ facility is invoked), then you may convey a copy of the modified
version:

* **a)** under this License, provided that you make a good faith effort to
ensure that, in the event an Application does not supply the
function or data, the facility still operates, and performs
whatever part of its purpose remains meaningful, or
ensure that, in the event an Application does not supply the
function or data, the facility still operates, and performs
whatever part of its purpose remains meaningful, or

* **b)** under the GNU GPL, with none of the additional permissions of
this License applicable to that copy.
this License applicable to that copy.

### 3. Object Code Incorporating Material from Library Header Files

Expand All @@ -75,10 +75,10 @@ layouts and accessors, or small macros, inline functions and templates
(ten or fewer lines in length), you do both of the following:

* **a)** Give prominent notice with each copy of the object code that the
Library is used in it and that the Library and its use are
covered by this License.
Library is used in it and that the Library and its use are
covered by this License.
* **b)** Accompany the object code with a copy of the GNU GPL and this license
document.
document.

4. Combined Works
~~~~~~~~~~~~~~~~~
Expand Down
2 changes: 1 addition & 1 deletion docs/getting-started.rst
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ Running the example
VSGI produces process-based applications that are either self-hosted or able to
communicate with a HTTP server according to a standardized protocol.

The :doc:`vsgi/http/soup` implementation is self-hosting, so you just have to
The :doc:`vsgi/server/http` implementation is self-hosting, so you just have to
run it and point your browser at http://127.0.0.1:3003 to see the result.

.. code-block:: bash
Expand Down
2 changes: 1 addition & 1 deletion docs/hacking.rst
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ spending time on producing a body that won't be considered is important.
return;
}
res.body.write_all ("<!DOCTYPE html><html>...</html>");
res.body.write_all ("<!DOCTYPE html><html></html>");
Use the ``construct`` block to perform post-initialization work. It will be
called independently of how the object is constructed.
Expand Down
12 changes: 8 additions & 4 deletions docs/index.rst
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
Valum web micro-framework
=========================

.. image:: https://travis-ci.org/valum-framework/valum.svg?branch=master
:target: https://travis-ci.org/valum-framework/valum
.. raw:: html

.. image:: https://coveralls.io/repos/valum-framework/valum/badge.svg?branch=master
:target: https://coveralls.io/r/valum-framework/valum?branch=master
<a href="https://travis-ci.org/valum-framework/valum">
<img src="https://travis-ci.org/valum-framework/valum.svg?branch=master">
</a>

<a href="https://coveralls.io/repos/valum-framework/valum/badge.svg?branch=master">
<img src="https://coveralls.io/r/valum-framework/valum?branch=master">
</a>

Valum is a web micro-framework written in Vala and licensed under the LGPLv3.
Its source code and releases are available on GitHub: `valum-framework/valum`_.
Expand Down
2 changes: 1 addition & 1 deletion docs/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ Run the sample application

You can run the sample application from the ``build`` folder if you called
``./waf configure`` with the ``--enable-examples`` flag, it uses the
:doc:`vsgi/server/soup`.
:doc:`vsgi/server/http`.

.. code-block:: bash
Expand Down
3 changes: 3 additions & 0 deletions docs/router.rst
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,8 @@ accordingly. Similarly to status codes, errors are propagated in the
``HandlerCallback`` and ``NextCallback`` delegate signatures and can be handled
with a ``500`` handler.

.. _GLib.Error: http://valadoc.org/#!api=glib-2.0/GLib.Error

It provides a nice way to ignore passively unrecoverable errors.

.. code:: vala
Expand All @@ -210,6 +212,7 @@ It provides a nice way to ignore passively unrecoverable errors.
});
});
});
If the routing context is lost, any operation can still be performed within
``Router.invoke``

Expand Down
2 changes: 1 addition & 1 deletion docs/vsgi/connection.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ output stream of the used technology.
.. _GLib.IOStream: http://valadoc.org/#!api=gio-2.0/GLib.IOStream

The following example shows how to bypass processing with higher-level
abstractions. It will only work on :doc:`server/soup`, as CGI-like protocols
abstractions. It will only work on :doc:`server/http`, as CGI-like protocols
require the status to be part of the response headers.

.. code::
Expand Down
6 changes: 3 additions & 3 deletions docs/wscript
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ def build(bld):
if bld.env.SPHINXBUILD:
bld.load('gnu_dirs')
bld(
rule = '${SPHINXBUILD} -b html ../docs ${TGT}',
target = '.',
source = bld.path.ant_glob('*.rst') + bld.path.ant_glob('**/*.rst'))
rule = '${SPHINXBUILD} -W -b html ../docs ${TGT}',
target = '.',
source = bld.path.ant_glob('*.rst') + bld.path.ant_glob('**/*.rst'))

0 comments on commit 01882fc

Please sign in to comment.