forked from slackapi/bolt-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsidebar.html
More file actions
78 lines (69 loc) · 2.94 KB
/
sidebar.html
File metadata and controls
78 lines (69 loc) · 2.94 KB
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<div class="sidebar-content">
<div class="logo">
<span class="icon">
<img src="{{ site.url | append: site.baseurl }}/assets/bolt-py-logo.svg" />
</span>
<span class="name">
Bolt
</span>
<!-- Liquid has no ternary operator, so this is just meant to disclude
english sections since they are at the root URL -->
{% assign localized_base_url = page.lang | prepend: "/" | remove_first: "/en" %}
<span class="version">
<!-- TODO: Fix this to skip pre-releases after v1.0 release -->
{% assign release = site.github.releases[0] %}
<a href="{{ release.html_url }}">{{ release.tag_name }}</a>
</span>
</div>
<ul class="sidebar-section">
<a href="{{ site.url | append: site.baseurl | append: localized_base_url }}/tutorial/getting-started">
<li class="title">{{ site.t[page.lang].start }}</li>
</a>
</ul>
<ul class="sidebar-section">
<a href="{{ site.url | append: site.baseurl | append: localized_base_url }}/concepts#basic">
<li class="title">{{ site.t[page.lang].basic }}</li>
</a>
{% assign basic_sections = site.basic | sort: "order" | where: "lang", page.lang %}
{% for section in basic_sections %}
<a href="{{ site.url | append: site.baseurl | append: localized_base_url }}/concepts#{{ section.slug }}">
<li>{{section.title}}</li>
</a>
{% endfor %}
</ul>
<ul class="sidebar-section">
<a href="{{ site.url | append: site.baseurl | append: localized_base_url }}/concepts#steps">
<li class="title">{{ site.t[page.lang].steps }}</li>
</a>
{% assign workflow_steps = site.steps | sort: "order" | where: "lang", page.lang %}
{% for step in workflow_steps %}
{% if step.slug != "steps-overview" %}
<a href="{{ site.url | append: site.baseurl | append: localized_base_url }}/concepts#{{ step.slug }}">
<li>{{step.title}}</li>
</a>
{% endif %}
{% endfor %}
</ul>
<ul class="sidebar-section">
<a href="{{ site.url | append: site.baseurl | append: localized_base_url }}/concepts#advanced">
<li class="title">{{ site.t[page.lang].advanced }}</li>
</a>
{% assign advanced_sections = site.advanced | sort: "order" | where: "lang", page.lang %}
{% for section in advanced_sections %}
<a href="{{ site.url | append: site.baseurl | append: localized_base_url }}/concepts#{{ section.slug }}">
<li>{{section.title}}</li>
</a>
{% endfor %}
</ul>
<ul class="sidebar-section">
{% assign tutorials = site.tutorials | where: "lang", page.lang | where_exp: "tutorial", "tutorial.order > 0" %}
{% for tutorial in tutorials %}
<a href="{{ site.url | append: site.baseurl | append: localized_base_url }}/tutorial/{{ tutorial.slug }}">
<li class="title">{{tutorial.title}}</li>
</a>
{% endfor %}
<a href="https://github.com/SlackAPI/bolt-python/blob/master/.github/contributing.md">
<li class="title">{{ site.t[page.lang].contribute }}</li>
</a>
</ul>
</div>