diff options
author | Loïc Hoguin <[email protected]> | 2016-08-30 13:03:26 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2016-08-30 13:03:26 +0200 |
commit | 9b8a05bbc11a60bb3411abfffa7e974021af9cd4 (patch) | |
tree | 802475ccba0d1ead89b3f411328c011ee23a3dc0 /doc | |
parent | bee1320700eec81e304e2cad137a8a87e869ff98 (diff) | |
download | cowboy-9b8a05bbc11a60bb3411abfffa7e974021af9cd4.tar.gz cowboy-9b8a05bbc11a60bb3411abfffa7e974021af9cd4.tar.bz2 cowboy-9b8a05bbc11a60bb3411abfffa7e974021af9cd4.zip |
Fix rendering issues in the guide and manual
Diffstat (limited to 'doc')
-rw-r--r-- | doc/src/guide/getting_started.asciidoc | 2 | ||||
-rw-r--r-- | doc/src/guide/rest_handlers.asciidoc | 3 | ||||
-rw-r--r-- | doc/src/manual/cowboy_req.asciidoc | 2 | ||||
-rw-r--r-- | doc/src/manual/cowboy_rest.asciidoc | 3 |
4 files changed, 6 insertions, 4 deletions
diff --git a/doc/src/guide/getting_started.asciidoc b/doc/src/guide/getting_started.asciidoc index e9a2756..be11e48 100644 --- a/doc/src/guide/getting_started.asciidoc +++ b/doc/src/guide/getting_started.asciidoc @@ -64,7 +64,7 @@ handler. We will modify the 'Makefile' to tell the build system it needs to fetch and compile Cowboy: -[source,make] +[source,makefile] ---- PROJECT = hello_erlang diff --git a/doc/src/guide/rest_handlers.asciidoc b/doc/src/guide/rest_handlers.asciidoc index f28c066..748fca4 100644 --- a/doc/src/guide/rest_handlers.asciidoc +++ b/doc/src/guide/rest_handlers.asciidoc @@ -62,7 +62,8 @@ if it is undefined, moving directly to the next step. Similarly, | allow_missing_post | `true` | charsets_provided | skip | content_types_accepted | none -| content_types_provided | `$$[{{<<"text">>, <<"html">>, '*'}, to_html}]$$` +// @todo Space required for the time being: https://github.com/spf13/hugo/issues/2398 +| content_types_provided | `[{{ <<"text">>, <<"html">>, '*'}, to_html}]` | delete_completed | `true` | delete_resource | `false` | expires | `undefined` diff --git a/doc/src/manual/cowboy_req.asciidoc b/doc/src/manual/cowboy_req.asciidoc index 558592b..e1a2c4d 100644 --- a/doc/src/manual/cowboy_req.asciidoc +++ b/doc/src/manual/cowboy_req.asciidoc @@ -326,7 +326,7 @@ Return the extra tokens from matching against `...` during routing. === peer(Req) -> Peer -Peer = {inet:ip_address(), inet:port_number()}:: Peer IP address and port number. +Peer = `{inet:ip_address(), inet:port_number()}`:: Peer IP address and port number. Return the client's IP address and port number. diff --git a/doc/src/manual/cowboy_rest.asciidoc b/doc/src/manual/cowboy_rest.asciidoc index b504776..edf4b5c 100644 --- a/doc/src/manual/cowboy_rest.asciidoc +++ b/doc/src/manual/cowboy_rest.asciidoc @@ -171,7 +171,8 @@ and `language`. The body can be set using `cowboy_req:set_resp_body/2`. Methods:: GET, HEAD, POST, PUT, PATCH, DELETE Value type:: [{binary() | {Type, SubType, Params}, ProvideResource}] -Default value:: `[{{<<"text">>, <<"html">>, '*'}, to_html}]` +// @todo Space required for the time being: https://github.com/spf13/hugo/issues/2398 +Default value:: `[{{ <<"text">>, <<"html">>, '*'}, to_html}]` With types: |