Version 1
[yaffs-website] / vendor / drupal / console / templates / dash / generate-doc.html.twig
1 <!DOCTYPE html>
2 <html lang="en">
3 <head>
4     <meta charset="UTF-8"/>
5     <title>{% block title %}{{ command }}{% endblock %}</title>
6     <link type="text/css" rel="stylesheet" href="{{ css_path }}">
7 </head>
8 <body>
9 <h1 class="title">{{ command }}</h1>
10 <p>The <strong>{{ command }}</strong> command: {{ description }}</p>
11 <p><strong>Usage:</strong>
12     <pre>
13         <code>$ drupal {{ command }} {% if arguments|length>0 %}[arguments] {% endif %}{% if options|length>0 %}[options] {% endif %}</code>
14     </pre>
15 </p>
16 {% if options|length>0 %}
17 <h2>Available options</h2>
18 <table>
19     <thead>
20     <tr>
21         <th>Option</th>
22         <th>Details</th>
23     </tr>
24     </thead>
25     <tbody>
26     {% for option in options %}
27         <tr class="{{ cycle(['odd', 'even'], loop.index0) }}">
28             <td>{{ option.name }}</td>
29             <td>{{ option.description }}</td>
30         </tr>
31     {% endfor %}
32     </tbody>
33 </table>
34 {% endif %}
35
36 {% if arguments|length>0 %}
37 <h2>Available arguments</h2>
38 <table>
39     <thead>
40     <tr>
41         <th>Argument</th>
42         <th>Details</th>
43     </tr>
44     </thead>
45     <tbody>
46     {% for argument in arguments %}
47         <tr class="{{ cycle(['odd', 'even'], loop.index0) }}">
48             <td>{{ argument.name }}</td>
49             <td>{{ argument.description }}</td>
50         </tr>
51     {% endfor %}
52     </tbody>
53 </table>
54 {% endif %}
55 </body>
56 </html>