Version 1
[yaffs-website] / vendor / drupal / console / templates / dash / generate-doc.html.twig
diff --git a/vendor/drupal/console/templates/dash/generate-doc.html.twig b/vendor/drupal/console/templates/dash/generate-doc.html.twig
new file mode 100644 (file)
index 0000000..196bbc7
--- /dev/null
@@ -0,0 +1,56 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+    <meta charset="UTF-8"/>
+    <title>{% block title %}{{ command }}{% endblock %}</title>
+    <link type="text/css" rel="stylesheet" href="{{ css_path }}">
+</head>
+<body>
+<h1 class="title">{{ command }}</h1>
+<p>The <strong>{{ command }}</strong> command: {{ description }}</p>
+<p><strong>Usage:</strong>
+    <pre>
+        <code>$ drupal {{ command }} {% if arguments|length>0 %}[arguments] {% endif %}{% if options|length>0 %}[options] {% endif %}</code>
+    </pre>
+</p>
+{% if options|length>0 %}
+<h2>Available options</h2>
+<table>
+    <thead>
+    <tr>
+        <th>Option</th>
+        <th>Details</th>
+    </tr>
+    </thead>
+    <tbody>
+    {% for option in options %}
+        <tr class="{{ cycle(['odd', 'even'], loop.index0) }}">
+            <td>{{ option.name }}</td>
+            <td>{{ option.description }}</td>
+        </tr>
+    {% endfor %}
+    </tbody>
+</table>
+{% endif %}
+
+{% if arguments|length>0 %}
+<h2>Available arguments</h2>
+<table>
+    <thead>
+    <tr>
+        <th>Argument</th>
+        <th>Details</th>
+    </tr>
+    </thead>
+    <tbody>
+    {% for argument in arguments %}
+        <tr class="{{ cycle(['odd', 'even'], loop.index0) }}">
+            <td>{{ argument.name }}</td>
+            <td>{{ argument.description }}</td>
+        </tr>
+    {% endfor %}
+    </tbody>
+</table>
+{% endif %}
+</body>
+</html>