Browse Source

Corrects formatting of JSON in snippet

The original snippet did not put the JSON output on its own line, which
made it look like it was part of the previous or next `curl` command.
This patch formats and highlights the command and output to appear as
they would in the terminal while also highlighting the multi-datacenter
elements of the output.
pull/4318/head
Geoffrey Grosenbach 6 years ago
parent
commit
5ea644c9e9
  1. 8
      website/source/discovery.html.erb

8
website/source/discovery.html.erb

@ -175,7 +175,13 @@ web-frontend.service.consul. 0 IN A <code class='keyword'>10.0.1.109</code></cod
<div>
<span></span>
<div class='code'>
<code>$ curl http://localhost:8500/v1/catalog/nodes?<code class='keyword'>dc=dc2</code>
<code>
$ curl http://localhost:8500/v1/catalog/datacenters
<code class='keyword'>[
"dc1",
"dc2"
]</code>
$ curl http://localhost:8500/v1/catalog/nodes?<code class='keyword'>dc=dc2</code>
[
{
"ID": "7081dcdf-fdc0-0432-f2e8-a357d36084e1",

Loading…
Cancel
Save