From 0771499761dcaf0ec03f6719b6b7fecfcd730aa7 Mon Sep 17 00:00:00 2001 From: Seth Vargo Date: Mon, 6 Oct 2014 19:12:25 -0400 Subject: [PATCH] Pre-process sessions docs as ERB for image tags --- .../{sessions.html.markdown => sessions.html.markdown.erb} | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) rename website/source/docs/internals/{sessions.html.markdown => sessions.html.markdown.erb} (98%) diff --git a/website/source/docs/internals/sessions.html.markdown b/website/source/docs/internals/sessions.html.markdown.erb similarity index 98% rename from website/source/docs/internals/sessions.html.markdown rename to website/source/docs/internals/sessions.html.markdown.erb index f573a568c5..098135bfb0 100644 --- a/website/source/docs/internals/sessions.html.markdown +++ b/website/source/docs/internals/sessions.html.markdown.erb @@ -27,7 +27,9 @@ a named ID which can be used to refer to it. This ID can be used with the KV store to acquire locks, which are advisory mechanisms for mutual exclusion. Below is a diagram showing the relationship between these components: -![Session Architecture](/images/consul-sessions.png) +
+ <%= link_to image_tag('consul-sessions.png'), image_path('consul-sessions.png') %> +
The contract that Consul provides is that under any of the folllowing situations the session will be *invalidated*: