Skip to content

Commit b0f8c89

Browse files
author
Gaël Deest
authored
Merge pull request #1465 from haskell-servant/eyeinsky-master
Fix documentation hierarchy
2 parents 9df5195 + f92d2c7 commit b0f8c89

File tree

3 files changed

+44
-38
lines changed

3 files changed

+44
-38
lines changed

doc/tutorial/Authentication.lhs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ combinator. Using `Context`, we can supply a function of type
132132
handler. This will allow the handler to check authentication and return a `User`
133133
to downstream handlers if successful.
134134
135-
In practice we wrap `BasicAuthData -> Handler` into a slightly
135+
In practice we wrap `BasicAuthData -> Handler User` into a slightly
136136
different function to better capture the semantics of basic authentication:
137137
138138
``` haskell ignore

doc/tutorial/index.rst

Lines changed: 1 addition & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -6,46 +6,10 @@ This is an introductory tutorial to **servant**. Whilst browsing is fine, it mak
66
Any comments, issues or feedback about the tutorial can be submitted
77
to `servant's issue tracker <http://github.com/haskell-servant/servant/issues>`_.
88

9-
cabal-install
10-
--------
11-
12-
The whole tutorial is a `cabal <https://cabal.readthedocs.io/en/latest/>`_
13-
project and can be built locally as follows:
14-
15-
.. code-block:: bash
16-
17-
$ git clone https://github.com/haskell-servant/servant.git
18-
$ cd servant
19-
# build
20-
$ cabal new-build tutorial
21-
# load in ghci to play with it
22-
$ cabal new-repl tutorial
23-
24-
stack
25-
--------
26-
27-
The servant `stack <https://docs.haskellstack.org/en/stable/README/>`_ template includes the working tutorial. To initialize this template, run:
28-
29-
.. code-block:: bash
30-
31-
$ stack new myproj servant
32-
$ cd myproj
33-
# build
34-
$ stack build
35-
# start server
36-
$ stack exec myproj-exe
37-
38-
The code can be found in the `*.lhs` files under `doc/tutorial/` in the
39-
repository. Feel free to edit it while you're reading this documentation and
40-
see the effect of your changes.
41-
42-
`Nix <https://nixos.org/nix/>`_ users should feel free to take a look at
43-
the `nix/shell.nix` file in the repository and use it to provision a suitable
44-
environment to build and run the examples.
45-
469
.. toctree::
4710
:maxdepth: 1
4811

12+
install.rst
4913
ApiType.lhs
5014
Server.lhs
5115
Client.lhs

doc/tutorial/install.rst

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
Install
2+
========
3+
4+
cabal-install
5+
--------
6+
7+
The whole tutorial is a `cabal <https://cabal.readthedocs.io/en/latest/>`_
8+
project and can be built locally as follows:
9+
10+
.. code-block:: bash
11+
12+
$ git clone https://github.com/haskell-servant/servant.git
13+
$ cd servant
14+
# build
15+
$ cabal new-build tutorial
16+
# load in ghci to play with it
17+
$ cabal new-repl tutorial
18+
19+
stack
20+
--------
21+
22+
The servant `stack <https://docs.haskellstack.org/en/stable/README/>`_ template includes the working tutorial. To initialize this template, run:
23+
24+
.. code-block:: bash
25+
26+
$ stack new myproj servant
27+
$ cd myproj
28+
# build
29+
$ stack build
30+
# start server
31+
$ stack exec myproj-exe
32+
33+
The code can be found in the `*.lhs` files under `doc/tutorial/` in the
34+
repository. Feel free to edit it while you're reading this documentation and
35+
see the effect of your changes.
36+
37+
nix
38+
--------
39+
40+
`Nix <https://nixos.org/nix/>`_ users should feel free to take a look at
41+
the `nix/shell.nix` file in the repository and use it to provision a suitable
42+
environment to build and run the examples.

0 commit comments

Comments
 (0)