From 4245cb7c4bb32d363e473beb7e12dfb296daf981 Mon Sep 17 00:00:00 2001 From: "Julian K. Arni" Date: Wed, 27 Jan 2016 22:58:38 +0100 Subject: [PATCH] Fix toctree and page titles --- doc/tutorial/Client.lhs | 5 +---- doc/tutorial/Docs.lhs | 5 +---- doc/tutorial/Javascript.lhs | 5 +---- doc/tutorial/index.rst | 10 +++++----- 4 files changed, 8 insertions(+), 17 deletions(-) diff --git a/doc/tutorial/Client.lhs b/doc/tutorial/Client.lhs index 9571ec8c..1a186596 100644 --- a/doc/tutorial/Client.lhs +++ b/doc/tutorial/Client.lhs @@ -1,7 +1,4 @@ ---- -title: Deriving Haskell functions to query an API -toc: true ---- +# Deriving Haskell functions to query an API 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. diff --git a/doc/tutorial/Docs.lhs b/doc/tutorial/Docs.lhs index 1ae4570e..2aa2c377 100644 --- a/doc/tutorial/Docs.lhs +++ b/doc/tutorial/Docs.lhs @@ -1,7 +1,4 @@ ---- -title: Generating documentation from API types -toc: true ---- +# Generating documentation from API types The source for this tutorial section is a literate haskell file, so first we need to have some language extensions and imports: diff --git a/doc/tutorial/Javascript.lhs b/doc/tutorial/Javascript.lhs index 9098fe8d..69d96547 100644 --- a/doc/tutorial/Javascript.lhs +++ b/doc/tutorial/Javascript.lhs @@ -1,7 +1,4 @@ ---- -title: Deriving Javascript functions to query an API -toc: true ---- +# Deriving Javascript functions to query an API 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 diff --git a/doc/tutorial/index.rst b/doc/tutorial/index.rst index 9044a4d5..92f9ffba 100644 --- a/doc/tutorial/index.rst +++ b/doc/tutorial/index.rst @@ -61,8 +61,8 @@ Tutorial .. toctree:: :maxdepth: 1 - api-type.lhs - server.lhs - client.lhs - javascript.lhs - docs.lhs + ApiType.lhs + Server.lhs + Client.lhs + Javascript.lhs + Docs.lhs