blob: 3f16c94d14b62b63bda47781a4e1e14877de73e8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
---
layout: base
categories:
- Project
- User Guide
- Architecture Guide
- Compatibility
---
<div class="container">
<div class="row">
<div class="col-md-3">
<nav class="sidebar" id="sidebar-nav">
{% for category in layout.categories %}
<h3>{{ category }}</h3>
<ul class="sidebar-nav">
{% assign sorted_pages = site.pages | where: 'layout', 'docs' | where: 'category', category | sort: 'weight' | sort: 'subcategory' %}
{% assign subcategory = nil %}
{% for p in sorted_pages %}
{% if p.subcategory != subcategory %}
{% if subcategory != nil %}
</ul>
</li>
{% endif %}
{% assign subcategory = p.subcategory %}
{% if subcategory != nil %}
{% assign cid = p.category | remove: " " | downcase %}
{% assign sid = p.subcategory | remove: " " | downcase %}
<li>
<a class="sidebar-nav-heading" data-toggle="collapse" href="#{{ cid }}-{{ sid }}" aria-expanded="false" aria-controls="{{ cid }}-{{ sid }}">{{ subcategory }}<span class="caret"></span></a>
<ul class="collapse sidebar-nav sidebar-submenu" id="{{ cid }}-{{ sid }}">
{% endif %}
{% endif %}
<li><a href="{{ p.url }}">{{ p.title }}</a></li>
{% endfor %}
{% if subcategory != nil %}
</ul>
</li>
{% endif %}
</ul>
{% endfor %}
</nav>
</div>
<div class="col-md-9">
<h1>{{ page.title }}</h1>
{% if page.editpath %}
<p>
<a href="https://github.com/google/gvisor/edit/master/content/{{page.editpath}}" target="_blank"><i class="fa fa-edit fa-fw"></i> Edit this page</a>
<a href="https://github.com/google/gvisor/issues/new?title={{page.title | url_encode}}" target="_blank"><i class="fab fa-github fa-fw"></i> Create issue</a>
</p>
{% endif %}
{{ content }}
</div>
</div>
</div>
|