Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions static/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -1239,6 +1239,10 @@ select {
display: none;
}

.overflow {
overflow: auto;
}

.min-h-screen {
min-height: 100vh;
}
Expand Down
46 changes: 24 additions & 22 deletions tmpl/help.html
Original file line number Diff line number Diff line change
Expand Up @@ -81,28 +81,30 @@ <h2 id="advanced">Advanced destination links</h2>

<h3>Examples</h3>

<table>
<tr>
<td>Include path in query</td>
<td>{{go}}/search</td>
<td>{{`https://cloudsearch.google.com/{{if .Path}}cloudsearch/search?q={{QueryEscape .Path}}{{end}}`}}</td>
</tr>
<tr>
<td>Include path in destination path</td>
<td>{{go}}/slack</td>
<td>{{`https://company.slack.com/{{if .Path}}channels/{{PathEscape .Path}}{{end}}`}}</td>
</tr>
<tr>
<td>Include path in hostname</td>
<td>{{go}}/varz</td>
<td>{{`http://{{if .Path}}{{.Path}}{{else}}host{{end}}.example/debug/varz`}}</td>
</tr>
<tr>
<td>Include today's date in wiki page</td>
<td>{{go}}/today</td>
<td>{{`http://wiki/{{.Now.Format "01-02-2006"}}`}}</td>
</tr>
</table>
<div class="overflow">
<table>
<tr>
<td>Include path in query</td>
<td>{{go}}/search</td>
<td>{{`https://cloudsearch.google.com/{{if .Path}}cloudsearch/search?q={{QueryEscape .Path}}{{end}}`}}</td>
</tr>
<tr>
<td>Include path in destination path</td>
<td>{{go}}/slack</td>
<td>{{`https://company.slack.com/{{if .Path}}channels/{{PathEscape .Path}}{{end}}`}}</td>
</tr>
<tr>
<td>Include path in hostname</td>
<td>{{go}}/varz</td>
<td>{{`http://{{if .Path}}{{.Path}}{{else}}host{{end}}.example/debug/varz`}}</td>
</tr>
<tr>
<td>Include today's date in wiki page</td>
<td>{{go}}/today</td>
<td>{{`http://wiki/{{.Now.Format "01-02-2006"}}`}}</td>
</tr>
</table>
</div>

<h2 id="api">Application Programming Interface (API)</h2>

Expand Down
Loading