Skip to content

Commit

Permalink
Revert "Fix table width and code block line returns (#27)"
Browse files Browse the repository at this point in the history
This reverts commit d8578ff.
  • Loading branch information
dustinblack committed Apr 18, 2024
1 parent 8e93e54 commit 409cfca
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 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.0"
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
4 changes: 2 additions & 2 deletions templates/markdown/partials/enum_string.md.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
<ul>
{{- range $value, $display := .ValidValues -}}
{{- if $display -}}
<li><strong><code style="white-space: nowrap">{{ $value }}</code>:</strong> {{ $display.Name }}</li>
<li><strong><code>{{ $value }}</code>:</strong> {{ $display.Name }}</li>
{{- else -}}
<li><strong><code style="white-space: nowrap">{{ $value }}</code></strong></li>
<li><strong><code>{{ $value }}</code></strong></li>
{{- end -}}
{{- end -}}
</ul>
Expand Down
2 changes: 1 addition & 1 deletion templates/markdown/partials/object.md.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<tr><th>Properties</th><td>
{{- range $propertyID, $property := .Properties -}}
<details><summary>{{ $propertyID }} ({{- partial "typename" $property.Type -}})</summary>
<table style="width:100%"><tbody>
<table><tbody>
{{- partial "property" $property -}}
{{- partial "type" $property.Type -}}
</tbody></table>
Expand Down
6 changes: 3 additions & 3 deletions templates/markdown/partials/property.md.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
{{- end -}}
{{- end -}}
<tr><th>Required:</th><td>{{- if .Required }}Yes{{ else }}No{{ end }}</td></tr>
{{- with .Default }}<tr><th>Default (JSON encoded):</th><td><pre><code style="white-space: nowrap">{{ . }}</code></pre></td></tr>{{ end -}}
{{- 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 . -}}
Expand All @@ -33,5 +33,5 @@
{{ . -}}
{{- end }}</td></tr>{{ end -}}
{{- with .Examples }}<tr><th>Examples (JSON encoded):</th><td>
{{ range . }}<pre><code style="white-space: nowrap">{{ . }}</code></pre>{{ end }}
</td></tr>{{ end -}}
{{ range . }}<pre><code>{{ . }}</code></pre>{{ end }}
</td></tr>{{ end -}}
2 changes: 1 addition & 1 deletion templates/markdown/partials/string.md.tpl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- /*gotype: go.flow.arcalot.io/pluginsdk.schema.String */ -}}
{{- with .Min }}<tr><th>Minimum length:</th><td>{{ . }}</td></tr>{{ end -}}
{{- with .Max }}<tr><th>Maximum length:</th><td>{{ . }}</td></tr>{{ end -}}
{{- with .Pattern }}<tr><th>Must match pattern:</th><td><code style="white-space: nowrap">{{ .String }}</code></td></tr>{{ end -}}
{{- with .Pattern }}<tr><th>Must match pattern:</th><td><code>{{ .String }}</code></td></tr>{{ end -}}
2 changes: 1 addition & 1 deletion templates/markdown/partials/typename.md.tpl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<code style="white-space: nowrap">{{- if eq .TypeID "enum_string" -}}
<code>{{- if eq .TypeID "enum_string" -}}
enum[string]
{{- else if eq .TypeID "enum_integer" -}}
enum[int]
Expand Down

0 comments on commit 409cfca

Please sign in to comment.