Fix toctree and page titles
This commit is contained in:
parent
8e63078691
commit
8990ebb16e
4 changed files with 8 additions and 17 deletions
|
@ -1,7 +1,4 @@
|
||||||
---
|
# Deriving Haskell functions to query an API
|
||||||
title: Deriving Haskell functions to query an API
|
|
||||||
toc: true
|
|
||||||
---
|
|
||||||
|
|
||||||
While defining handlers that serve an API has a lot to it, querying an API is simpler: we do not care about what happens inside the webserver, we just need to know how to talk to it and get a response back. Except that we usually have to write the querying functions by hand because the structure of the API isn't a first class citizen and can't be inspected to generate a bunch of client-side functions.
|
While defining handlers that serve an API has a lot to it, querying an API is simpler: we do not care about what happens inside the webserver, we just need to know how to talk to it and get a response back. Except that we usually have to write the querying functions by hand because the structure of the API isn't a first class citizen and can't be inspected to generate a bunch of client-side functions.
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
---
|
# Generating documentation from API types
|
||||||
title: Generating documentation from API types
|
|
||||||
toc: true
|
|
||||||
---
|
|
||||||
|
|
||||||
The source for this tutorial section is a literate haskell file, so first we
|
The source for this tutorial section is a literate haskell file, so first we
|
||||||
need to have some language extensions and imports:
|
need to have some language extensions and imports:
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
---
|
# Deriving Javascript functions to query an API
|
||||||
title: Deriving Javascript functions to query an API
|
|
||||||
toc: true
|
|
||||||
---
|
|
||||||
|
|
||||||
We will now see how *servant* lets you turn an API type into javascript
|
We will now see how *servant* lets you turn an API type into javascript
|
||||||
functions that you can call to query a webservice. The derived code assumes you
|
functions that you can call to query a webservice. The derived code assumes you
|
||||||
|
|
|
@ -61,8 +61,8 @@ Tutorial
|
||||||
.. toctree::
|
.. toctree::
|
||||||
:maxdepth: 1
|
:maxdepth: 1
|
||||||
|
|
||||||
api-type.lhs
|
ApiType.lhs
|
||||||
server.lhs
|
Server.lhs
|
||||||
client.lhs
|
Client.lhs
|
||||||
javascript.lhs
|
Javascript.lhs
|
||||||
docs.lhs
|
Docs.lhs
|
||||||
|
|
Loading…
Reference in a new issue