File tree Expand file tree Collapse file tree 4 files changed +103
-11
lines changed Expand file tree Collapse file tree 4 files changed +103
-11
lines changed Original file line number Diff line number Diff line change @@ -3,8 +3,58 @@ title: "Turing Libraries"
3
3
search : false
4
4
toc : false
5
5
include-in-header :
6
- - text : |
7
- <style>a {text-decoration: none;}a:hover {text-decoration: underline;}</style>
6
+ - text : |
7
+ <style>
8
+ /* links */
9
+ a { text-decoration: none; }
10
+ a:hover { text-decoration: underline; }
11
+ </style>
12
+
13
+ <style>
14
+ /* responsive wrapper */
15
+ .table-responsive {
16
+ overflow-x: auto;
17
+ margin-bottom: 1rem;
18
+ }
19
+
20
+ /* default (light-mode) table styling */
21
+ .packages-table {
22
+ width: 100%;
23
+ border-collapse: collapse;
24
+ background-color: #ffffff;
25
+ color: #212529;
26
+ }
27
+ .packages-table th,
28
+ .packages-table td {
29
+ padding: 0.75rem 1rem;
30
+ text-align: left;
31
+ border-bottom: 1px solid #eee;
32
+ }
33
+ .packages-table thead {
34
+ background-color: #f8f8f8;
35
+ }
36
+ .packages-table tbody tr:nth-child(odd) {
37
+ background-color: #fafafa;
38
+ }
39
+ .packages-table tbody tr:hover {
40
+ background-color: #eef9ff;
41
+ }
42
+ .packages-table th {
43
+ font-weight: 600;
44
+ }
45
+
46
+ /* deprecated badge */
47
+ .badge.deprecated {
48
+ display: inline-block;
49
+ margin-left: 0.5em;
50
+ padding: 0.2em 0.4em;
51
+ font-size: 0.75em;
52
+ font-weight: 600;
53
+ color: #721c24;
54
+ background-color: #f8d7da;
55
+ border-radius: 0.2em;
56
+ }
57
+ </style>
8
58
listing :
9
59
- id : libraries-main
10
60
template : table.ejs
Original file line number Diff line number Diff line change 83
83
description : " Convenient callbacks for sampling in Turing.jl"
84
84
category : utilities
85
85
- name : TuringBenchmarking
86
- api : https://turinglang.org/TuringBenchmarking.jl /
87
- github : https://github.com/TuringLang/TuringBenchmarking.jl
86
+ api : https://turinglang.org/Deprecated/ TuringBenchmarking/
87
+ github : https://github.com/TuringLang/Deprecated/tree/main/ TuringBenchmarking
88
88
description : " Tools to benchmark and check Turing models"
89
89
category : utilities
90
+ status : deprecated
90
91
91
92
- name : MCMCChains
92
93
api : https://turinglang.org/MCMCChains.jl/
Original file line number Diff line number Diff line change 1
- <table width =" 100%" >
1
+ <div class =" table-responsive" >
2
+ <table class =" packages-table" >
3
+ <thead >
4
+ <tr >
5
+ <th >Package</th >
6
+ <th >API</th >
7
+ <th >GitHub</th >
8
+ <th >Description</th >
9
+ </tr >
10
+ </thead >
2
11
<tbody >
3
12
<% for (const item of items) { % >
4
13
< tr>
5
- < td style= " padding: 5px 5px 5px 0" >< span style= " font-weight: bold" >< %- item .name % >< / span>< / td>
6
- < % if (item .api !== " " ) { % >
7
- < td style= " padding: 5px 5px" >< a href= " <%- item.api %>" target= " _blank" > API < / a>< / td>
8
- < % } % >
9
- < td style= " padding: 5px 5px" >< a href= " <%- item.github %>" target= " _blank" > GitHub< / a>< / td>
10
- < td style= " padding: 5px 0 5px 5px" >< %- item .description % >< / td>
14
+ < td data- label= " Package" >< %- item .name % >< % if (item .status === " deprecated" ){ % >< span class = " badge deprecated" > Deprecated< / span>< % } % >< / td>
15
+ < td data- label= " API" >< % if (item .api ){ % >< a href= " <%- item.api %>" target= " _blank" > API < / a>< % } else { % > —< % } % >< / td>
16
+ < td data- label= " GitHub" >< a href= " <%- item.github %>" target= " _blank" > GitHub< / a>< / td>
17
+ < td data- label= " Description" >< %- item .description % >< / td>
11
18
< / tr>
12
19
< % } %>
13
20
</tbody >
14
21
</table >
22
+ </div >
Original file line number Diff line number Diff line change 137
137
--bs-tooltip-color : $black !important ;
138
138
--bs-tooltip-bg : $white !important ;
139
139
}
140
+
141
+ // table background & text
142
+ .packages-table {
143
+ background-color : $background-body !important ;
144
+ color : $li !important ;
145
+ }
146
+
147
+ // cell borders
148
+ .packages-table th ,
149
+ .packages-table td {
150
+ border-bottom-color : $gray-900 !important ;
151
+ }
152
+
153
+ // header row
154
+ .packages-table thead {
155
+ background-color : $gray-900 !important ;
156
+ }
157
+
158
+ // zebra stripes
159
+ .packages-table tbody tr :nth-child (odd ) {
160
+ background-color : darken ($gray-900 , 5% ) !important ;
161
+ }
162
+
163
+ // hover state
164
+ .packages-table tbody tr :hover {
165
+ background-color : lighten ($background-nav , 5% ) !important ;
166
+ }
167
+
168
+ // “Deprecated” badge styling
169
+ .badge.deprecated {
170
+ color : $white !important ;
171
+ background-color : $red !important ;
172
+ }
You can’t perform that action at this time.
0 commit comments