Skip to content

Commit

Permalink
Fix go logo in docs snippets (#1213)
Browse files Browse the repository at this point in the history
  • Loading branch information
gkaemmer committed Sep 20, 2021
1 parent b48f378 commit 93985ff
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/layouts/shortcodes/literalInclude.html
Original file line number Diff line number Diff line change
Expand Up @@ -296,9 +296,9 @@
{{ end }}

<div class="code" id="{{ $file | urlize}}" data-hl_lines="{{ $hl_lines }}" {{ if $tabGroup }}data-tabgroup="{{ $tabGroup }}"{{ end }}>
<div class="filename rounded-t-md bg-gray-200 text-gray-700 text-sm py-2">
<div class="filename rounded-t-md bg-gray-200 text-gray-700 text-sm py-2 flex">
{{- with $syntax -}}
<span class="px-2{{ if eq . "go" }} block w-10{{end}}">
<span class="px-2{{ if eq . "go" }} flex w-10{{end}}">
{{- partialCached "fontawesome.html" . . -}}
</span>
{{- end -}}
Expand Down
9 changes: 7 additions & 2 deletions docs/themes/oso-tailwind/layouts/shortcodes/code.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,13 @@
{{ with .Get "codeLang" }}{{ $codeLang = . }}{{ end }}
<div class="code" id="{{ $file | urlize}}" data-hl_lines="{{ $hl_lines }}">
{{- with $file -}}
<div class="filename rounded-md bg-gray-200 text-gray-700 text-sm py-2">
{{- with $codeLang -}}<span class="px-2">{{- partialCached "fontawesome.html" $codeLang $codeLang -}}</span>{{- end -}}{{- . -}}
<div class="filename rounded-t-md bg-gray-200 text-gray-700 text-sm py-2 flex">
{{- with $codeLang -}}
<span class="px-2{{ if eq . "go" }} flex w-10{{end}}">
{{- partialCached "fontawesome.html" . . -}}
</span>
{{- end -}}
{{- . -}}
</div>
{{- end -}}
{{ with $codeLang }}
Expand Down

1 comment on commit 93985ff

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rust Benchmark

Benchmark suite Current: 93985ff Previous: b48f378 Ratio
rust_get_attribute 57709 ns/iter (± 5755) 62829 ns/iter (± 22283) 0.92
n_plus_one/100 2645681 ns/iter (± 68717) 2514429 ns/iter (± 138729) 1.05
n_plus_one/500 12829393 ns/iter (± 224993) 11708583 ns/iter (± 455925) 1.10
n_plus_one/1000 25438580 ns/iter (± 337341) 23382793 ns/iter (± 1219005) 1.09
unify_once 1094 ns/iter (± 84) 1027 ns/iter (± 102) 1.07
unify_twice 2897 ns/iter (± 554) 2691 ns/iter (± 334) 1.08
many_rules 66972 ns/iter (± 1872) 62711 ns/iter (± 3359) 1.07
fib/5 596371 ns/iter (± 10359) 525352 ns/iter (± 37555) 1.14
prime/3 23041 ns/iter (± 1123) 21121 ns/iter (± 1254) 1.09
prime/23 23025 ns/iter (± 1146) 20880 ns/iter (± 1979) 1.10
prime/43 23002 ns/iter (± 1045) 21224 ns/iter (± 1645) 1.08
prime/83 23010 ns/iter (± 1015) 21160 ns/iter (± 2010) 1.09
prime/255 20725 ns/iter (± 899) 19011 ns/iter (± 1268) 1.09
indexed/100 6398 ns/iter (± 792) 5908 ns/iter (± 1637) 1.08
indexed/500 8017 ns/iter (± 1935) 7228 ns/iter (± 2124) 1.11
indexed/1000 9956 ns/iter (± 419) 9312 ns/iter (± 2268) 1.07
indexed/10000 26101 ns/iter (± 1308) 19100 ns/iter (± 15473) 1.37
not 7426 ns/iter (± 212) 6978 ns/iter (± 1483) 1.06
double_not 15446 ns/iter (± 2007) 14663 ns/iter (± 936) 1.05
De_Morgan_not 9710 ns/iter (± 375) 8772 ns/iter (± 557) 1.11
load_policy 1065447 ns/iter (± 3519) 982278 ns/iter (± 38481) 1.08
partial_and/1 42536 ns/iter (± 2267) 39318 ns/iter (± 2612) 1.08
partial_and/5 148082 ns/iter (± 4988) 134445 ns/iter (± 9957) 1.10
partial_and/10 280473 ns/iter (± 6250) 256989 ns/iter (± 12734) 1.09
partial_and/20 582268 ns/iter (± 6097) 527792 ns/iter (± 21552) 1.10
partial_and/40 1262610 ns/iter (± 19366) 1149607 ns/iter (± 52999) 1.10
partial_and/80 2810140 ns/iter (± 41543) 2553650 ns/iter (± 100823) 1.10
partial_and/100 3702419 ns/iter (± 7615) 3416688 ns/iter (± 155122) 1.08
partial_rule_depth/1 133605 ns/iter (± 5652) 120991 ns/iter (± 8300) 1.10
partial_rule_depth/5 414453 ns/iter (± 7620) 378607 ns/iter (± 26824) 1.09
partial_rule_depth/10 873872 ns/iter (± 12852) 804067 ns/iter (± 32493) 1.09
partial_rule_depth/20 2342176 ns/iter (± 4982) 2245544 ns/iter (± 101253) 1.04
partial_rule_depth/40 8066588 ns/iter (± 66456) 8416061 ns/iter (± 386523) 0.96
partial_rule_depth/80 44262919 ns/iter (± 389888) 53524436 ns/iter (± 2419874) 0.83
partial_rule_depth/100 78337679 ns/iter (± 480634) 93948281 ns/iter (± 3276223) 0.83

This comment was automatically generated by workflow using github-action-benchmark.

Please sign in to comment.