forked from magento/devdocs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsidebar.html
171 lines (98 loc) · 4.89 KB
/
sidebar.html
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
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
<!-- sidebar -->
<aside class="sidebar">
<a href="#" class="toc-toggler">Table of Contents</a>
<div class="sidebar-wrapper">
{% if page.group == "ext-best-practices" %}
<h4>Extension Best Practices</h4>
{% elsif page.group == "compman" %}
<h4>Component Manager and System Upgrade Guide</h4>
{% elsif page.group == "coding-standards" %}
<h4>Coding Standards</h4>
{% elsif page.group == "rest" %}
<h4>REST API Reference</h4>
{% elsif page.group == "contributor" %}
<h4>Contributor Guide</h4>
{% elsif page.group == "get-started" %}
<h4>Getting Started with Web APIs</h4>
{% elsif page.group == "pattern" %}
<h4>Admin Pattern Library</h4>
{% elsif page.group == "mtf-guide" %}
<h4>Functional Testing Framework Guide</h4>
{% elsif page.group == "migration" %}
<h4>Migration Guide</h4>
{% elsif page.group == "release-notes" %}
<h4>Release Information</h4>
{% elsif page.group == "extension-dev-guide" %}
<h4>PHP Developer Guide</h4>
{% elsif page.group == "arch-guide" %}
<h4>Architecture Guide</h4>
{% elsif page.group == "fedg" %}
<h4>Frontend Developer Guide</h4>
{% elsif page.group == "UI_Components_guide" %}
<h4>UI Components Guide</h4>
{% elsif page.group == "jsdg" %}
<h4>JavaScript Developer Guide</h4>
{% elsif page.group == "install2" %}
<h4>Installation Guide</h4>
{% elsif page.group == "install_cli" %}
<h4>Installation Guide<br>Part 2: Installing</h4>
{% elsif page.group == "install_hosted" %}
<h4>Newbie Installation Guide</h4>
{% elsif page.group == "install_pre" %}
<h4>Installation Guide<br>Part 1: Getting started</h4>
{% elsif page.group == "install" %}
<h4>Installation Guide<br>Part 3: Post-installation</h4>
{% elsif page.group == "install_wiz" %}
<h4>Installation Guide<br>Part 2: Installing</h4>
{% elsif page.group == "install_trouble" %}
<h4>Installation Guide<br>Part 3: Post-installation</h4>
{% elsif page.group == "config-guide" %}
<h4>Configuration Guide</h4>
{% elsif page.group == "cloud" %}
<h4>Magento Enterprise Cloud Guide</h4>
{% endif %}
<ul>
{% assign categories = site.pages | where: "guide_version", page.guide_version | 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 | where:"layout", "default" %}
{% if subcats.name != "" %}
{% assign parents = subcats.items | where:"menu_node","parent" %}
{% assign n = 0 %}
{% for parent in parents %}
<li class="level1 {% 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="levela1"><span class="nav-header">{{ subcats.name }}</span></li>
{% endif %}
{% for article in articles_sorted %}
{% if article.level3_menu_node == "level3parent" %}
<li class="level3Parent {% if page.url == article.url %} active {%endif%}" id="{{ article.level3_subgroup }}"><a href="#">{% if article.menu_title %}{{article.menu_title}}{% else %}{{article.title}}{% endif %}</a>
{% elsif article.level3_menu_node == "level3child" %}
<li class="level3Child {{ article.level3_subgroup }} {% if page.url == article.url %} active {%endif%}" data-menunode="{{ article.level3_subgroup }}"><a href="{{site.toc_baseurl}}{{article.url}}">{% if article.menu_title %}{{article.menu_title}}{% else %}{{article.title}}{% endif %}</a>
{% elsif article.externalURL %}
<li class="level-2"><a href="{{article.externalURL}}">{% if article.menu_title %}{{article.menu_title}}{% else %}{{article.title}}{% endif %}</a></li>
{% else %}
<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>
{% endif %}
{% endfor %}
{% assign tutorials = subcats.items | sort: "menu_order" | where:"menu_node", null | where:"layout", "tutorial" %}
{% for tutorial in tutorials %}
<li class="level-2 tutorial"><a href="{{site.toc_baseurl}}{{tutorial.url}}">{{tutorial.title}}</a></li>
{% endfor %}
{% else %}
{% for article in articles_sorted %}
<li class="q {% 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 -->