Skip to content

Commit

Permalink
Merge pull request #87 from gnosis/fix-doc-gen
Browse files Browse the repository at this point in the history
Use relative_url and add README link to docs
  • Loading branch information
cag authored Feb 13, 2018
2 parents e516bfd + f07322c commit ac1b7b1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@
</ul>
{% endif %}

<label for="contracts">Contracts</label>
<nav><select id="contracts" name="contracts" style="max-width: 100%" onchange="if(this.value) window.location = this.value">
<option value="" selected>Please choose</option>
<nav><select style="max-width: 100%" onchange="if(this.value) window.location = this.value">
<option value="" selected>-- Select page --</option>
<option value="{{ "/" | relative_url }}">README</option>
{% for page in site.pages %}
{% if page.url contains '/docs/' %}
{% assign components = page.url | split: '/' %}
<option value="{{ page.url }}">{{ components.last }}</option>
<option value="{{ page.url | relative_url }}">{{ components.last }}</option>
{% endif %}
{% endfor %}
</select></nav>
Expand Down

0 comments on commit ac1b7b1

Please sign in to comment.