Skip to content

Commit 9c65fef

Browse files
committed
Merge branch 'main' into UF-updatetests
2 parents ab922ac + 8179231 commit 9c65fef

4 files changed

Lines changed: 76 additions & 7 deletions

File tree

_data/tagging-status.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
# comments optional markdown-string Free text markdown comments
1515
# references optional integer-list List of integers referencing the bibliography in references.yml
1616
# issues optional integer-list List of integers referencing primary issues at latex3/tagging-project
17+
# closed-issues optional integer-list List of integers referencing closed issues at latex3/tagging-project
1718
# related-issues optional integer-list List of integers referencing secondary, related issues at latex3/tagging-project
1819
# external-issues optional string-list List of urls referencing related issues at other trackers
1920
# luatex-only optional boolean true if package only works with lualatex

tagging-status/full.md

Lines changed: 40 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ td.date {white-space: nowrap;font-size:90%;}
1111
.markdown-body table tr { vertical-align: baseline;}
1212
.markdown-body table thead tr { border-bottom: solid thick black;}
1313
.markdown-body table p { margin-bottom: 0pt;}
14+
a.closed {text-decoration: line-through}
1415
</style>
1516
<script src="sorttable.js"></script>
1617

@@ -36,10 +37,17 @@ The values in the *Status* column have the following meaning:
3637
- `unchecked` The status of this package or class is not known, because there aren't reliable tests yet. Help with testing to determine the real status is very much appreciated. (**{{t-s | where: "status", "unchecked" | size }}** entries)
3738

3839

39-
Click on the column headings to sort the table by the chosen column.
40+
----
41+
42+
**Enter search keywords** (space separated) to filter the table.
43+
44+
<input size="40" type="text" id="inp" onkeyup="filterRows()" placeholder="Search terms">
4045

46+
**Click on a column heading** to sort the table by the chosen column.
47+
48+
----
4149

42-
<table class="sortable" style="display:table ;width:100%;position:absolute; left:0">
50+
<table id="tbl" class="sortable" style="display:table ;width:100%;position:absolute; left:0">
4351
<thead>
4452
<tr>
4553
<th>Type</th>
@@ -55,7 +63,7 @@ Click on the column headings to sort the table by the chosen column.
5563
<th>Last updated</th>
5664
</tr>
5765
</thead>
58-
<tbody>
66+
<tbody id="tblbdy">
5967
{%- for p in t-s -%}
6068
<tr id="{{p.name}}">
6169
<td>{{p.type}}</td>
@@ -105,15 +113,22 @@ Requires the use of (u)ptex.
105113
<a href="https://github.com/latex3/tagging-project/issues/{{i}}">#{{i}}</a>
106114
{% endfor %}
107115
{%- endif -%}
108-
{% if p.related-issues %}
116+
{% if p.closed-issues %}
109117
{%- if p.issues -%}<br/>{%- endif -%}
118+
Closed:
119+
{% for i in p.closed-issues %}
120+
<a class="closed" href="https://github.com/latex3/tagging-project/issues/{{i}}">#{{i}}</a>
121+
{% endfor %}
122+
{% endif %}
123+
{% if p.related-issues %}
124+
{%- if p.issues or p.closed-issues -%}<br/>{%- endif -%}
110125
Related:
111126
{% for i in p.related-issues %}
112127
<a href="https://github.com/latex3/tagging-project/issues/{{i}}">#{{i}}</a>
113128
{% endfor %}
114129
{% endif %}
115130
{% if p.external-issues %}
116-
{%- if p.issues or p.related-issues -%}<br/>{%- endif -%}
131+
{%- if p.issues or p.closed-issues or p.related-issues -%}<br/>{%- endif -%}
117132
Other:
118133
{% for u in p.external-issues %}
119134
{%- assign ltext = u | replace: "issues/", "" | replace: "-/","" | split: "/" -%}
@@ -170,3 +185,23 @@ Other:
170185
<p id="ref{{r.number}}"><span>{{r.number}}. </span> <a href="{{r.url}}"><span>{{r.authors}}.</span> <span>{{r.title}}</span></a></p>
171186
{% endfor %}
172187

188+
<script>
189+
function filterRows() {
190+
const input = document.getElementById("inp");
191+
const keywds = input.value.toUpperCase().split(' ');
192+
const tbdy= document.getElementById("tblbdy");
193+
const trs = tbdy.getElementsByTagName("tr");
194+
195+
// Loop through rows, and hide those who don't match all terms in the query
196+
for (let i = 0; i != trs.length; i++) {
197+
const rowtxt = trs[i].textContent.toUpperCase();
198+
let d="";
199+
for (let j=0;j!=keywds.length;j++){
200+
if (rowtxt.indexOf(keywds[j]) == -1) {
201+
d="none";
202+
}
203+
}
204+
trs[i].style.display = d;
205+
}
206+
}
207+
</script>

tagging-status/index.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ The status for the remaining **{{xpu | size }}** packages is `unchecked`.
6565

6666
{% assign packages = xpc | concat: xpp | concat: xpi | concat: xpn | concat: xpu %}
6767

68+
{% assign bdyid ="pkgtbl" %}
69+
6870
{% include_relative status-table.md %}
6971

7072

@@ -87,6 +89,8 @@ The status for the remaining **{{xpu | size }}** classes is `unchecked`.
8789

8890
{% assign packages = xpc | concat: xpp | concat: xpi | concat: xpn | concat: xpu %}
8991

92+
{% assign bdyid ="clstbl" %}
93+
9094
{% include_relative status-table.md %}
9195

9296

@@ -99,3 +103,24 @@ The status for the remaining **{{xpu | size }}** classes is `unchecked`.
99103
<p id="ref{{r.number}}"><span>{{r.number}}. </span> <a href="{{r.url}}"><span>{{r.authors}}.</span> <span>{{r.title}}</span></a></p>
100104
{% endfor %}
101105

106+
107+
<script>
108+
function filterRows(bi) {
109+
const input = document.getElementById("inp" + bi);
110+
const keywds = input.value.toUpperCase().split(' ');
111+
const tbdy= document.getElementById(bi);
112+
const trs = tbdy.getElementsByTagName("tr");
113+
114+
// Loop through rows, and hide those who don't match all terms in the query
115+
for (let i = 0; i != trs.length; i++) {
116+
const rowtxt = trs[i].textContent.toUpperCase();
117+
let d="";
118+
for (let j=0;j!=keywds.length;j++){
119+
if (rowtxt.indexOf(keywds[j]) == -1) {
120+
d="none";
121+
}
122+
}
123+
trs[i].style.display = d;
124+
}
125+
}
126+
</script>

tagging-status/status-table.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11

2-
Click on the column headings to sort the table by the chosen column.
2+
----
3+
4+
**Enter search keywords** (space separated) to filter the table.
5+
6+
<input size="40" type="text" id="inp{{bdyid}}" onkeyup="filterRows('{{bdyid}}')" placeholder="Search terms">
7+
8+
**Click on a column heading** to sort the table by the chosen column.
9+
10+
----
311

412
<table class="sortable" style="display:table ;width:100%">
513
<thead>
@@ -13,7 +21,7 @@ Click on the column headings to sort the table by the chosen column.
1321
<th>Last updated</th>
1422
</tr>
1523
</thead>
16-
<tbody>
24+
<tbody id="{{bdyid}}">
1725

1826

1927

0 commit comments

Comments
 (0)