mirror of
https://github.com/healthchecks/healthchecks.git
synced 2025-02-21 11:46:07 +00:00

HTML files in /templates/docs/ are not Django templates, they contain HTML content to be used verbatim in hc.front.views.serve_doc view. Some of these files contain "{{ ... }}" syntax. When we run "./manage.py compress", django-compressor trips up on this syntax because it treats them as Django templates. The fix is to change file extension for these files from .html to something else (I picked .html-fragment) so django-compressor would ignore them.
7 lines
No EOL
674 B
Text
7 lines
No EOL
674 B
Text
<h1>Ruby</h1>
|
|
<p>Below is an example of making an HTTP request to SITE_NAME from Ruby.</p>
|
|
<div class="highlight"><pre><span></span><code><span class="nb">require</span><span class="w"> </span><span class="s1">'net/http'</span>
|
|
<span class="nb">require</span><span class="w"> </span><span class="s1">'uri'</span>
|
|
|
|
<span class="no">Net</span><span class="o">::</span><span class="no">HTTP</span><span class="o">.</span><span class="n">get</span><span class="p">(</span><span class="no">URI</span><span class="o">.</span><span class="n">parse</span><span class="p">(</span><span class="s1">'PING_URL'</span><span class="p">))</span>
|
|
</code></pre></div> |