PowerShell example on Welcome page.

This commit is contained in:
Pēteris Caune 2015-12-11 19:18:44 +02:00
parent 6fced734d1
commit 0cf4e5c9df
4 changed files with 11 additions and 0 deletions

View File

@ -20,4 +20,6 @@ class Command(BaseCommand):
_process("crontab.txt", "crontab.html", lexers.BashLexer())
_process("python.txt", "python.html", lexers.PythonLexer())
_process("php.txt", "php.html", lexers.PhpLexer())
_process("powershell.txt", "powershell.html",
lexers.shell.PowerShellLexer())
_process("node.txt", "node.html", lexers.JavascriptLexer())

View File

@ -0,0 +1,2 @@
<div class="highlight"><pre><span class="nb">Invoke-RestMethod</span> <span class="n">{{ ping_url }}</span>
</pre></div>

View File

@ -0,0 +1 @@
Invoke-RestMethod PING_URL

View File

@ -50,6 +50,9 @@
<li class="hidden-xs">
<a href="#browser" data-toggle="tab">Browser</a>
</li>
<li class="hidden-xs">
<a href="#powershell" data-toggle="tab">PowerShell</a>
</li>
<li class="hidden-xs">
<a href="#email" data-toggle="tab">Email</a>
</li>
@ -73,6 +76,9 @@
<div class="tab-pane" id="browser">
{% include "front/snippets/browser.html" %}
</div>
<div class="tab-pane" id="powershell">
{% include "front/snippets/powershell.html" %}
</div>
<div class="tab-pane" id="email">
<div class="instructions">
As an alternative to HTTP/HTTPS requests,