Skip to content

Commit

Permalink
remove overlooked <tr> widths (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
dustinblack authored Apr 18, 2024
1 parent 3882a3d commit eb25b1a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/reusable_workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:

- name: Install arcaflow-docsgen
env:
DOCSGEN_VER: "0.3.1"
DOCSGEN_VER: "0.3.2"
run: |
wget https://github.com/arcalot/arcaflow-docsgen/releases/download/v${{env.DOCSGEN_VER}}/arcaflow-docsgen_${{env.DOCSGEN_VER}}_linux_amd64.tar.gz \
&& tar -C /usr/local/bin -xzf arcaflow-docsgen_${{env.DOCSGEN_VER}}_linux_amd64.tar.gz
Expand Down
14 changes: 7 additions & 7 deletions templates/markdown/partials/property.md.tpl
Original file line number Diff line number Diff line change
@@ -1,37 +1,37 @@
{{- with .Display -}}
{{- with .Name -}}
<tr width=600><th>Name:</th><td>{{ . }}</td></tr>
<tr><th>Name:</th><td>{{ . }}</td></tr>
{{- end -}}
{{- with .Description -}}
<tr><th>Description:</th><td width="500">{{ . }}</td></tr>
{{- end -}}
{{- end -}}
<tr width=600><th>Required:</th><td>{{- if .Required }}Yes{{ else }}No{{ end }}</td></tr>
{{- with .Default }}<tr width=600><th>Default (JSON encoded):</th><td><pre><code>{{ . }}</code></pre></td></tr>{{ end -}}
{{- with .RequiredIf }}<tr width=600><th>Required if the following fields are set:</th><td>
<tr><th>Required:</th><td>{{- if .Required }}Yes{{ else }}No{{ end }}</td></tr>
{{- with .Default }}<tr><th>Default (JSON encoded):</th><td><pre><code>{{ . }}</code></pre></td></tr>{{ end -}}
{{- with .RequiredIf }}<tr><th>Required if the following fields are set:</th><td>
{{- $first := true -}}
{{- range . -}}
{{- if $first -}}
{{- $first = false -}}
{{- else -}}, {{ end -}}
{{ . -}}
{{- end }}</td></tr>{{ end -}}
{{- with .RequiredIfNot }}<tr width=600><th>Required if the following fields are not set:</th><td>
{{- with .RequiredIfNot }}<tr><th>Required if the following fields are not set:</th><td>
{{- $first := true -}}
{{- range . -}}
{{- if $first -}}
{{- $first = false -}}
{{- else -}}, {{ end -}}
{{ . -}}
{{- end }}</td></tr>{{ end -}}
{{- with .Conflicts }}<tr width=600><th>Conflicts the following fields:</th><td>
{{- with .Conflicts }}<tr><th>Conflicts the following fields:</th><td>
{{- $first := true -}}
{{- range . -}}
{{- if $first -}}
{{- $first = false -}}
{{- else -}}, {{ end -}}
{{ . -}}
{{- end }}</td></tr>{{ end -}}
{{- with .Examples }}<tr width=600><th>Examples (JSON encoded):</th><td>
{{- with .Examples }}<tr><th>Examples (JSON encoded):</th><td>
{{ range . }}<pre><code>{{ . }}</code></pre>{{ end }}
</td></tr>{{ end -}}

0 comments on commit eb25b1a

Please sign in to comment.