Skip to content

Commit 100261e

Browse files
committed
Fix Sphinx warnings and build with '-W'
1 parent 487fbcb commit 100261e

24 files changed

+150
-142
lines changed

docs/_static/.gitignore

Whitespace-only changes.

docs/about/gnu-lgpl-v3.0.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,12 @@ facility is invoked), then you may convey a copy of the modified
5858
version:
5959

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

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

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

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

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

8383
4. Combined Works
8484
~~~~~~~~~~~~~~~~~

docs/application.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ VSGI (Vala Server Gateway Interface) offers abstractions for different web
1111
server technologies. You can choose which implementation you want with
1212
a ``using`` statement as they all respect a common interface.
1313

14-
.. code:: vala
14+
::
1515

1616
using Valum;
1717
using VSGI.HTTP; // or VSGI.FastCGI
@@ -25,7 +25,7 @@ An application is defined by a function that respects the ``VSGI.ApplicationCall
2525
delegate. The :doc:`router` provides ``handle`` for that purpose along with
2626
powerful routing facilities for client requests.
2727

28-
.. code:: vala
28+
::
2929

3030
var app = new Router ();
3131

@@ -36,7 +36,7 @@ An application constitute of a list of routes matching and handling user
3636
requests. The router provides helpers to declare routes which internally use
3737
a :doc:`route` instance.
3838

39-
.. code:: vala
39+
::
4040

4141
app.get ("", (req, res, next, context) => {
4242
res.body.write_all ("Hello world!".data, null);
@@ -58,7 +58,7 @@ This part is pretty straightforward: you create a server that will serve your
5858
application at port ``3003`` and since ``using VSGI.HTTP`` was specified,
5959
``Server`` refers to :doc:`vsgi/server/http`.
6060

61-
.. code:: vala
61+
::
6262

6363
new Server ("org.valum.example.App", app.handle).run ({"app", "--port", "3003"});
6464

@@ -68,7 +68,7 @@ application at port ``3003`` and since ``using VSGI.HTTP`` was specified,
6868
Minimal application can be defined using a simple lambda function taking
6969
a :doc:`vsgi/request` and :doc:`vsgi/response`.
7070

71-
.. code:: vala
71+
::
7272

7373
new Server ("org.valum.example.App", (req, res) => {
7474
res.status = 200;
@@ -79,7 +79,7 @@ Usually, you would only pass the CLI arguments to ``run``, so that your runtime
7979
can be parametrized easily, but in this case we just want our application to
8080
run with fixed parameters. Options are documented per implementation.
8181

82-
.. code:: vala
82+
::
8383

8484
public static void main (string[] args) {
8585
var app = new Router ();

docs/getting-started.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ the latest changes in the framework.
2424

2525
.. _valum-framework/example: https://github.com/valum-framework/example
2626

27-
.. code:: vala
27+
::
2828

2929
using Valum;
3030
using VSGI.HTTP;
@@ -108,7 +108,7 @@ Running the example
108108
VSGI produces process-based applications that are either self-hosted or able to
109109
communicate with a HTTP server according to a standardized protocol.
110110

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

114114
.. code-block:: bash

docs/hacking.rst

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ byte will count.
4343
Since ``GET`` handle ``HEAD`` as well, verifying the request method to prevent
4444
spending time on producing a body that won't be considered is important.
4545

46-
.. code:: vala
46+
::
4747

4848
res.headers.set_content_type ("text/html", null);
4949

@@ -52,7 +52,7 @@ spending time on producing a body that won't be considered is important.
5252
return;
5353
}
5454

55-
res.body.write_all ("<!DOCTYPE html><html>...</html>");
55+
res.body.write_all ("<!DOCTYPE html><html></html>");
5656

5757
Use the ``construct`` block to perform post-initialization work. It will be
5858
called independently of how the object is constructed.
@@ -85,7 +85,8 @@ inspected with the ``gcov`` utility.
8585
cd build
8686
gcov src/router.c.1.gcda
8787
88-
::
88+
89+
Would output something like:
8990

9091
File 'src/router.c'
9192
Executed lines: 57.83% of 792
@@ -121,7 +122,7 @@ and guarantee its backward compatibility.
121122
You can refer an issue from GitHub by calling ``Test.bug`` with the issue
122123
number.
123124

124-
.. code:: vala
125+
::
125126

126127
Test.bug ("123");
127128

docs/index.rst

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
Valum web micro-framework
22
=========================
33

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

7-
.. image:: https://coveralls.io/repos/valum-framework/valum/badge.svg?branch=master
8-
:target: https://coveralls.io/r/valum-framework/valum?branch=master
6+
<a href="https://travis-ci.org/valum-framework/valum">
7+
<img src="https://travis-ci.org/valum-framework/valum.svg?branch=master">
8+
</a>
9+
10+
<a href="https://coveralls.io/repos/valum-framework/valum/badge.svg?branch=master">
11+
<img src="https://coveralls.io/r/valum-framework/valum?branch=master">
12+
</a>
913

1014
Valum is a web micro-framework written in Vala and licensed under the LGPLv3.
1115
Its source code and releases are available on GitHub: `valum-framework/valum`_.

docs/installation.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ Run the sample application
161161

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

166166
.. code-block:: bash
167167

docs/middlewares/subdomain.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ expectations.
1212
The pattern is specified as the first argument. It may contain asterisk ``*``
1313
which specify that any supplied label satisfy that position.
1414

15-
.. code:: vala
15+
::
1616

1717
app.use (subdomain ("api", (req, res) => {
1818
// match domains like 'api.example.com' and 'v1.api.example.com'
@@ -26,7 +26,7 @@ which specify that any supplied label satisfy that position.
2626
This middleware can be used along with subrouting to mount any :doc:`../router`
2727
on a specific domain pattern.
2828

29-
.. code:: vala
29+
::
3030

3131
var app = new Router ();
3232
var api = new Router ();
@@ -44,7 +44,7 @@ To prevent this and perform a _strict_ match, simply specify the second
4444
argument. The domain of the request will have to supply exactly the same amount
4545
of labels matching the expectations.
4646

47-
.. code:: vala
47+
::
4848

4949
// match every request exactly from 'api.*.*'
5050
app.use (subdomain ("api", api.handle, SubdomainFlags.STRICT));
@@ -56,7 +56,7 @@ By default, the two first labels are ignored since web applications are
5656
typically served under two domain levels (eg. example.com). If it's not the
5757
case, the number of skipped labels can be set to any desirable value.
5858

59-
.. code:: vala
59+
::
6060

6161
// match exactly 'api.example.com'
6262
app.use (subdomain ("api.example.com", api.handle, SubdomainFlags.STRICT, 0));

docs/module.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ takes a :doc:`router` as input and register some routes on it.
88

99
Let's say you need an administration section:
1010

11-
.. code:: vala
11+
::
1212

1313
using Valum;
1414

@@ -20,7 +20,7 @@ Let's say you need an administration section:
2020

2121
Then you can easily load your module into a concrete one:
2222

23-
.. code:: vala
23+
::
2424

2525
using Valum;
2626

@@ -32,7 +32,7 @@ Since the ``Router.scope`` method takes a ``LoaderCallback`` argument, you can
3232
simply scope your module route definitions. This way, all registered routes
3333
will be prefixed with ``admin/``.
3434

35-
.. code:: vala
35+
::
3636

3737
using Valum;
3838

@@ -42,7 +42,7 @@ will be prefixed with ``admin/``.
4242

4343
Distributed code should be namespaced to avoid conflicts:
4444

45-
.. code:: vala
45+
::
4646

4747
using Valum;
4848

docs/recipes/configuration.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ GSettings is a good approach to store configuration.
1414
- declare available settings in a XML schema
1515
- monitor changes
1616

17-
.. code:: vala
17+
::
1818

1919
var configuration = new Settings ("org.valum.example.App");
2020

0 commit comments

Comments
 (0)