forked from magento/devdocs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsidebar.html
More file actions
155 lines (99 loc) · 3.68 KB
/
sidebar.html
File metadata and controls
155 lines (99 loc) · 3.68 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
<!-- sidebar -->
<aside class="sidebar">
<div class="sidebar-wrapper">
{% if page.group == "ext-best-practices" %}
Extension Best Practices
{% endif %}
{% if page.group == "compman" %}
<h4>Component Manager and System Upgrade Guide</h4>
{% endif %}
{% if page.group == "coding-standards" %}
<h4>Coding standards</h4>
{% endif %}
{% if page.group == "rest" %}
<h4>REST API reference</h4>
{% endif %}
{% if page.group == "get-started" %}
<h4>Getting started with web APIs</h4>
{% endif %}
{% if page.group == "pattern" %}
<h4>Admin pattern Library</h4>
{% endif %}
{% if page.group == "mtf-guide" %}
<h4>Testing framework guide</h4>
{% endif %}
{% if page.group == "migration" %}
<h4>Migration guide</h4>
{% endif %}
{% if page.group == "release-notes" %}
<h4>Release Notes</h4>
{% endif %}
{% if page.group == "extension-dev-guide" %}
<h4>PHP developer guide</h4>
{% endif %}
{% if page.group == "arch-guide" %}
<h4>Architecture guide</h4>
{% endif %}
{% if page.group == "fedg" %}
<h4>Frontend developer guide</h4>
{% endif %}
{% if page.group == "UI Library" %}
<h4>UI Components</h4>
{% endif %}
{% if page.group == "jsdg" %}
<h4>JavaScript developer guide</h4>
{% endif %}
{% if page.group == "install2" %}
<h4>Installation guide</h4>
{% endif %}
{% if page.group == "install_cli" %}
<h4>Installation guide<br>Part 2: Installing</h4>
{% endif %}
{% if page.group == "install_pre" %}
<h4>Installation guide<br>Part 1: Getting started</h4>
{% endif %}
{% if page.group == "install" %}
<h4>Installation guide<br>Part 3: Post-installation</h4>
{% endif %}
{% if page.group == "install_wiz" %}
<h4>Installation guide<br>Part 2: Installing</h4>
{% endif %}
{% if page.group == "install_trouble" %}
<h4>Installation guide<br>Part 3: Post-installation</h4>
{% endif %}
{% if page.group == "config-guide" %}
<h4>Configuration guide</h4>
{% endif %}
<ul role="navigation">
{% assign categories = site.articles | group_by:"group" %}
{% for node in categories %}
{% if node.name == page.group %}
{% assign subcategories = node.items | group_by:"subgroup" %}
{% assign subcategories_sorted = subcategories | sort: "name" %}
{% for subcats in subcategories_sorted %}
{% assign articles_sorted = subcats.items | sort: "menu_order" | where:"menu_node", null %}
{% if subcats.name != "" %}
{% assign parents = subcats.items | where:"menu_node","parent" %}
{% assign n = 0 %}
{% for parent in parents %}
<li class=" {% if page.url == parent.url %} active {%endif%}"><a class="nav-header" href="{{site.toc_baseurl}}{{parent.url}}">{% if parent.menu_title %}{{parent.menu_title}}{% else %}{{parent.title}}{% endif %}</a></li>
{% assign n = 1 %}
{% endfor %}
{% if n == 0 %}
<li class=""><span class="nav-header">{{ subcats.name }}</span></li>
{% endif %}
{% for article in articles_sorted %}
<li class="level-2 {% if page.url == article.url %} active {%endif%}"><a href="{{site.toc_baseurl}}{{article.url}}">{% if article.menu_title %}{{article.menu_title}}{% else %}{{article.title}}{% endif %}</a></li>
{% endfor %}
{% else %}
{% for article in articles_sorted %}
<li class="{% if page.url == article.url %} active {%endif%}"><a href="{{site.toc_baseurl}}{{article.url}}">{% if article.menu_title %}{{article.menu_title}}{% else %}{{article.title}}{% endif %}</a></li>
{% endfor %}
{% endif %}
{% endfor %}
{% endif %}
{% endfor %}
</ul>
</div>
</aside>
<!-- /sidebar -->