Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs (plugins) Fixing table styling in plugins #1877

Merged
merged 2 commits into from
Mar 24, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions app/_assets/stylesheets/pages/extension.less
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,14 @@
h2, h4, p .highlight {
margin: 0 0 2.5rem 0;
}
table {
p {
font-size: 14px;
}
code {
font-size: 13px;
}
}
}

.alert-info {
Expand Down
6 changes: 3 additions & 3 deletions app/_layouts/extension.html
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@
{% capture params_table %}
<table>
<thead>
<tr><th>form parameter</th><th>description</th></tr>
<tr><th>Form Parameter</th><th>Description</th></tr>
</thead>
<tbody>
<tr><td><code>name</code></td><td>The name of the plugin to use, in this case <code>{{ page.params.name }}</code></td></tr>
Expand All @@ -227,14 +227,14 @@
{% endif %}
<tr><td><code>enabled</code><br><br><strong>default value: </strong><code>true</code></td><td>Whether this plugin will be applied.</td></tr>
{% if page.params.api_id %}
<tr><td><code>api_id</code></td><td>The id of the API which this plugin will target. <strong>Note:</strong> The <a href="/0.13.x/admin-api/#api-object">API Entity</a> is deprecated in favor of Services since <a href="https://github.com/Kong/kong/blob/master/CHANGELOG.md#0130---20180322">CE 0.13.0</a> and <a href="https://docs.konghq.com/enterprise/changelog/#0-32">EE 0.32</a>.</td></tr>
<tr><td><code>api_id</code></td><td>The id of the API which this plugin will target. <br><br><strong>Note:</strong> The <a href="/0.13.x/admin-api/#api-object">API Entity</a> is deprecated in favor of Services since <a href="https://github.com/Kong/kong/blob/master/CHANGELOG.md#0130---20180322">CE 0.13.0</a> and <a href="https://docs.konghq.com/enterprise/changelog/#0-32">EE 0.32</a>.</td></tr>
{% endif %}
{% for field in page.params.config %}
<tr>
<td><code>config.{{ field.name }}</code>
{% if field.required == false %}<br><em>optional</em>{% endif %}
{% if field.required == "semi" %}<br><em>semi-optional</em>{% endif %}
{% if field.default != nil %}<br><br><strong>default value: </strong>{{ field.default | markdownify }}{% endif %}
{% if field.default != nil %}<br><br><strong>default value: </strong><code>{{ field.default }}</code>{% endif %}
</td>
<td>{{ field.description | markdownify }}</td>
</tr>
Expand Down