Skip to content

Commit 35cb2f9

Browse files
authored
Merge pull request #2093 from DependencyTrack/update-config-docs
Update config reference to be more readable
2 parents 386dce6 + eed501a commit 35cb2f9

File tree

2 files changed

+42
-45
lines changed

2 files changed

+42
-45
lines changed

mkdocs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ extra:
4949
markdown_extensions:
5050
- attr_list
5151
- admonition
52+
- def_list
5253
- footnotes
5354
- md_in_html
5455
- pymdownx.details

scripts/config-docs.md.peb

Lines changed: 41 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -3,54 +3,50 @@
33

44
Generated with: {{ generateCommand }}
55
-->
6+
7+
## Glossary
8+
9+
### Required Properties
10+
11+
Properties marked with <strong style="color: red">*</strong> are required. A required property must never be unset.
12+
13+
### Property Types
14+
15+
Configuration properties may use the following types:
16+
17+
| Type | Description |
18+
|:-----|:------------|
19+
| `boolean` | `true` or `false` |
20+
| `cron` | A [cron expression](https://en.wikipedia.org/wiki/Cron#Cron_expression) (e.g. `0 0 * * *`) |
21+
| `double` | A decimal number (e.g. `3.14`) |
22+
| `duration` | An [ISO 8601 duration](https://en.wikipedia.org/wiki/ISO_8601#Durations) (e.g. `PT30S`, `PT5M`, `PT1H`) |
23+
| `enum` | One of a fixed set of values, refer to *Valid Values* |
24+
| `integer` | A whole number (e.g. `42`) |
25+
| `string` | A text value |
26+
627
{% for entry in propertiesByCategory %}
728
## {{ entry.key }}
829

930
{% for property in entry.value -%}
10-
### {{ property.name }}
11-
12-
{{ property.description }}
13-
14-
{% if property.deprecated -%}
15-
!!! warning "Deprecated"
16-
{{ property.deprecated }}
17-
{% endif %}
18-
19-
<table>
20-
<tbody style="border: 0">
21-
<tr>
22-
<th style="text-align: right">Required</th>
23-
<td style="border-width: 0">{{ property.required }}</td>
24-
</tr>
25-
<tr>
26-
<th style="text-align: right">Type</th>
27-
<td style="border-width: 0"><code>{{ property.type }}</code></td>
28-
</tr>
29-
{% if property.validValues -%}
30-
<tr>
31-
<th style="text-align: right">Valid Values</th>
32-
<td style="border-width: 0"><code>{{ property.validValues }}</code></td>
33-
</tr>
34-
{% endif -%}
35-
<tr>
36-
<th style="text-align: right">Default</th>
37-
<td style="border-width: 0"><code>{{ property.defaultValue }}</code></td>
38-
</tr>
39-
{% if property.example -%}
40-
<tr>
41-
<th style="text-align: right">Example</th>
42-
<td style="border-width: 0"><code>{{ property.example }}</code></td>
43-
</tr>
31+
<span id="{{ property.anchor }}">**`{{ property.name }}`**{% if property.required %} <strong style="color: red">*</strong>{% endif %} [¶](#{{ property.anchor }}){ .headerlink }</span>
32+
: {{ property.description }}
33+
34+
{% if property.deprecated -%}
35+
!!! warning "Deprecated"
36+
{{ property.deprecated }}
37+
4438
{% endif -%}
45-
<tr>
46-
<th style="text-align: right">ENV</th>
47-
<td style="border-width: 0"><code>{{ property.env }}</code></td>
48-
</tr>
49-
</tbody>
50-
</table>
51-
52-
{% if not loop.last %}
53-
---
54-
{% endif %}
55-
{% endfor %}
39+
<table>
40+
<tr><th>Type</th><td style="border-width: 0"><code>{{ property.type }}</code></td></tr>
41+
<tr><th>Default</th><td><code>{{ property.defaultValue }}</code></td></tr>
42+
{% if property.validValues -%}
43+
<tr><th>Valid Values</th><td><code>{{ property.validValues }}</code></td></tr>
44+
{% endif -%}
45+
{% if property.example -%}
46+
<tr><th>Example</th><td><code>{{ property.example }}</code></td></tr>
47+
{% endif -%}
48+
<tr><th>ENV</th><td><code>{{ property.env }}</code></td></tr>
49+
</table>
50+
5651
{% endfor %}
52+
{% endfor %}

0 commit comments

Comments
 (0)