From 9f324606ff20a2c703504b3f953f138df7cbfba8 Mon Sep 17 00:00:00 2001 From: Tommi Reiman Date: Sun, 10 Dec 2017 18:08:00 +0200 Subject: [PATCH] Fix doc headers --- doc/advanced/configuring_routers.md | 2 +- doc/basics/name_based_routing.md | 2 +- doc/basics/path_based_routing.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/advanced/configuring_routers.md b/doc/advanced/configuring_routers.md index 8e6278db..eee5ce9a 100644 --- a/doc/advanced/configuring_routers.md +++ b/doc/advanced/configuring_routers.md @@ -1,4 +1,4 @@ -## Configuring Routers +# Configuring Routers Routers can be configured via options. Options allow things like [`clojure.spec`](https://clojure.org/about/spec) validation for route data and fast, compiled handlers. The following options are available for the `reitit.core/router`: diff --git a/doc/basics/name_based_routing.md b/doc/basics/name_based_routing.md index 7b16b9ae..4836b72e 100644 --- a/doc/basics/name_based_routing.md +++ b/doc/basics/name_based_routing.md @@ -1,4 +1,4 @@ -## Name-based (reverse) Routing +# Name-based (reverse) Routing All routes which have `:name` route data defined, can also be matched by name. diff --git a/doc/basics/path_based_routing.md b/doc/basics/path_based_routing.md index f9e5eaf6..fd0f814b 100644 --- a/doc/basics/path_based_routing.md +++ b/doc/basics/path_based_routing.md @@ -1,4 +1,4 @@ -## Path-based Routing +# Path-based Routing Path-based routing is done using the `reitit.core/match-by-path` function. It takes the router and path as arguments and returns one of the following: