forked from galaxyproject/training-material
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfaq.html
142 lines (110 loc) · 5.06 KB
/
faq.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
---
layout: base
---
<div itemscope itemtype="https://schema.org/FAQPage">
{% assign contributors = site.data['contributors'] %}
<section class="tutorial" itemscope itemprop="mainEntity" itemtype="https://schema.org/Question">
<nav aria-label="breadcrumb">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="{{site.baseurl}}/faqs">All FAQs</a></li>
{% if page.url contains '/faqs/gtn/' %}
<li class="breadcrumb-item"><a href="{{site.baseurl}}/faqs/gtn/">GTN FAQs</a></li>
{% else %}
<li class="breadcrumb-item"><a href="{{site.baseurl}}/faqs/galaxy/">Galaxy FAQs</a></li>
{% if page.url contains 'topic' %}
{% if page.url contains 'tutorial' %} <!-- tutorial FAQ file -->
{% assign t = page.url | split: '/tutorials/' %}
{% assign top = t[0] | append: "/faqs" %}
<li class="breadcrumb-item"><a href="{{site.baseurl}}{{top}}">Topic FAQs</a></li>
<li class="breadcrumb-item" aria-current="page"><a href="{{site.baseurl}}{{page.dir}}">Tutorial FAQs</a></li>
{% else %} <!-- topic-level FAQ file -->
{% assign t = page.url | split: '/faqs/' %}
{% assign top = t[0] | append: "/faqs" %}
<li class="breadcrumb-item"><a href="{{site.baseurl}}{{top}}">Topic FAQs</a></li>
{% endif %}
{% endif %}
{% endif %}
<li class="breadcrumb-item active" aria-current="page">FAQ</li>
</ol>
</nav>
<h1 itemprop="name">{{page.title}}</h1>
{% if page.contributors %}
<div class="contributors-line" style="font-size:1rem;">{{ locale['authors'] | default: "Authors" }}: {% include
_includes/contributor-list.html
contributors=page.contributors badge=true newcontributors=true %}</div>
<hr>
{% endif %}
<div class="container">
<div class="row" itemscope itemprop="acceptedAnswer" itemtype="https://schema.org/Answer">
<div class="col-md-8" itemprop="text">
{{ page.description }}
{{ content | fix_box_titles:page.lang,page.path | regex_replace: '<hr.*—<\/p>', '' }}
</div>
<div class="col-md-4">
{% if page.short_id %}
<h5>Persistent URL</h5>
Resource {% icon purl %}<abbr title="Persistent URL">PURL</abbr>: <a class="badge badge-info" href="https://gxy.io/GTN:{{ page.short_id }}">https://gxy.io/GTN:{{ page.short_id }}</a>
{% endif %}
<h5>Still have questions?</h5>
{% include _includes/button.html link="https://gitter.im/Galaxy-Training-Network/Lobby" label="Gitter Chat Support" colour="yellow" buttonsize="medium" %}
{% include _includes/button.html link="https://help.galaxyproject.org" label="Galaxy Help Forum" colour="purple" buttonsize="medium" %}
<!-- Button trigger modal -->
<button type="button" class="btn btn-secondary" data-toggle="modal" data-target="#gtnInfoModal">
Information for GTN Tutorial Authors
</button>
</div>
</div>
</div>
{% if page.cited %}
<h2 id="bibliography">{{locale['references']| default: "References" }}</h2>
{% bibliography --cited %}
{% endif %}
</section>
</div>
<!-- Modal -->
<div class="modal" id="gtnInfoModal" tabindex="-1" role="dialog" aria-labelledby="gtnInfoModalLabel" aria-hidden="true">
<div class="modal-dialog modal-lg" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="gtnInfoModalLabel">Details For GTN Tutorial Authors</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<h5>Want to embed this snippet (FAQ) in your GTN Tutorial?</h5>
<div class="language-markdown highlighter-rouge"><div class="highlight"><pre class="highlight"><code>{% raw %}{% snippet {% endraw %}{{ page.path }}{% raw %} %}{% endraw %}
</code></pre></div></div>
{% if page.required_parameters %}
<h5>Mandatory Parameters</h5>
<ul>
{% for parameter in page.required_parameters %}
<li><code>{{ parameter[0] }}</code>: {{ parameter[1] }}</li>
{% endfor %}
</ul>
{% endif %}
{% if page.optional_parameters %}
<h5>Optional Parameters</h5>
<ul>
{% for parameter in page.optional_parameters %}
<li><code>{{ parameter[0] }}</code>: {{ parameter[1] }}</li>
{% endfor %}
</ul>
{% endif %}
{% if page.examples %}
<h5>Examples</h5>
{% for case in page.examples %}
{{ case[0] }}:
<div class="language-markdown highlighter-rouge"><div class="highlight"><pre class="highlight"><code>{% raw %}{% snippet {% endraw %}{{ page.path }} {% for pair in case[1] %}{{ pair[0] }}="{{ pair[1] }}" {% endfor %} {% raw %}%}{% endraw %}
</code></pre></div></div>
{% endfor %}
{% endif %}
<h5>See other uses</h5>
<a href="https://github.com/search?q=repo%3Agalaxyproject%2Ftraining-material+{{ page.path }}&type=code">Search on GitHub (must be logged in)</a>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>