Skip to content

Commit aa52141

Browse files
authored
Merge pull request #138 from johnmhoran/85-simplify-releases-table
Simplify releases table #85
2 parents d18f537 + 4f6941c commit aa52141

4 files changed

Lines changed: 18 additions & 126 deletions

File tree

website/docs/about/about-releases.mdx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ import ReleasesTable from '@site/src/components/ReleasesTable';
66

77
# Latest Releases
88

9-
Find information here about the latest releases for ScanCode, VulnerableCode,
10-
and other AboutCode projects.
9+
This table lists the latest releases for each AboutCode project, including
10+
ScanCode and VulnerableCode, with the most recent project release listed at
11+
the top.
1112

1213
<ReleasesTable />

website/docusaurus.config.js

Lines changed: 2 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@ const siteConfig = {
3131
},
3232
};
3333

34-
// This runs in Node.js - Don't use client-side code here (browser APIs, JSX...)
35-
3634
/** @type {import('@docusaurus/types').Config} */
3735
const config = {
3836
title: 'AboutCode.org',
@@ -51,28 +49,13 @@ const config = {
5149
v4: true, // Improve compatibility with the upcoming Docusaurus v4
5250
},
5351

54-
// // Set the production url of your site here
55-
// url: 'https://your-docusaurus-site.example.com',
56-
// // Set the /<baseUrl>/ pathname under which your site is served
57-
// // For GitHub pages deployment, it is often '/<projectName>/'
58-
// baseUrl: '/',
59-
60-
// url: 'https://aboutcode-org.github.io',
61-
// baseUrl: '/www.aboutcode.org/',
62-
// trailingSlash: false,
63-
64-
// 2026-02-19 Thursday 18:06:22. Adapt the www.packageurl.org approach for the GH Pages vs. DreamHost baseUrl adjustment.
52+
// Adapt the www.packageurl.org approach for the GH Pages vs. DreamHost baseUrl adjustment.
6553
url: siteConfig[deployTarget].url,
6654
baseUrl: siteConfig[deployTarget].baseUrl,
6755
trailingSlash: false,
6856

69-
// 2026-02-20 Friday 11:02:52.No longer needed?
70-
// For GitHub pages deployment:
71-
// organizationName: 'aboutcode-org',
72-
// projectName: 'www.aboutcode.org',
73-
7457
onBrokenLinks: 'throw',
75-
// 2026-02-11 Wednesday 10:26:31. The following is deprecated, to be removed in v4, replaced with similar structure above under 'markdown:'.
58+
// The following is deprecated, to be removed in v4, replaced with similar structure above under 'markdown:'.
7659
// (New config was introduced in 3.9 -- https://docusaurus.io/blog/releases/3.9#:~:text=In%20%2311283%2C%20we%20added%20siteConfig,to%20make%20Docusaurus%20build%20faster.)
7760
// onBrokenMarkdownLinks: 'warn',
7861

@@ -99,8 +82,6 @@ const config = {
9982
// TODO We can include a map here as in packageurl.org.
10083
// Otherwise, provide a default (so “Edit this page” still works)
10184
return `https://github.com/aboutcode-org/www.aboutcode.org/blob/main/website/docs/${docPath}`;
102-
// fork:
103-
// return `https://github.com/johnmhoran/www.aboutcode.org/blob/main/website/docs/${docPath}`;
10485
},
10586
},
10687
blog: {

website/src/components/ReleasesTable/index.js

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,36 +21,34 @@ export default function ReleasesTable() {
2121

2222
return (
2323
<div className={styles.container}>
24+
<div className={styles.tableDiv}>
2425
<table className={styles.table}>
2526
<thead>
2627
<tr>
2728
<th>Repo</th>
2829
<th>Tag</th>
2930
<th>Published</th>
30-
<th>Releases Page</th>
3131
</tr>
3232
</thead>
3333
<tbody>
3434
{repos.map((info, idx) => (
3535
<tr key={idx}>
3636
<td>
3737
<a href={info.repo_url} target='_blank' rel='noreferrer'>
38-
{info.repo_url.replace("https://github.com/", "")}
38+
{info.repo_url.replace("https://github.com/", "").split("/").pop()}
3939
</a>
4040
</td>
41-
<td>{info.tag}</td>
42-
{/* <td>{new Date(info.published_at).toLocaleDateString()}</td> */}
43-
{/* <td>{new Date(info.published_at).toISOString().replace('T', ' ').replace('.000Z', ' UTC')}</td> */}
44-
<td>{info.published_at ? new Date(info.published_at).toISOString().replace('T', ' ').replace('.000Z', ' UTC') : 'N/A'}</td>
4541
<td>
46-
<a href={info.releases_page_url} target='_blank' rel='noreferrer'>
47-
Releases
42+
<a href={info.tag_url} target='_blank' rel='noreferrer'>
43+
{info.tag}
4844
</a>
4945
</td>
46+
<td>{info.published_at ? new Date(info.published_at).toISOString().replace('T', ' ').replace('.000Z', ' UTC') : 'N/A'}</td>
5047
</tr>
5148
))}
5249
</tbody>
5350
</table>
51+
</div>
5452
</div>
5553
);
5654
}
Lines changed: 7 additions & 95 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
.container {
22
max-width: 900px;
33
margin: 0 auto;
4-
padding: 2rem;
54
}
65

76
.card {
@@ -39,86 +38,17 @@
3938
font-size: 0.75rem;
4039
}
4140

42-
/* 2026-02-16 Monday 18:58:36. For the updated .json. */
43-
.container {
44-
margin-top: 2rem;
45-
}
46-
4741
.generated {
4842
font-size: 0.9rem;
4943
color: var(--ifm-color-emphasis-700);
5044
color: #000000;
5145
margin-bottom: 1rem;
5246
}
5347

54-
/* .table {
55-
width: 100%;
56-
border-collapse: collapse;
57-
} */
58-
59-
.table {
60-
width: 100%;
61-
border-collapse: collapse;
62-
table-layout: fixed;
63-
}
64-
65-
/* .th {
66-
text-align: left;
67-
padding: 8px;
68-
border-bottom: 2px solid var(--ifm-color-emphasis-300);
69-
font-weight: 600;
70-
}
71-
72-
.td {
73-
padding: 8px;
74-
border-bottom: 1px solid var(--ifm-color-emphasis-200);
75-
vertical-align: top;
76-
} */
77-
78-
.th {
79-
text-align: left;
80-
padding: 6px 8px;
81-
border-bottom: 2px solid var(--ifm-color-emphasis-300);
82-
font-weight: 600;
83-
font-size: 0.9rem;
84-
}
85-
86-
.td {
87-
padding: 6px 8px;
88-
border-bottom: 1px solid var(--ifm-color-emphasis-200);
89-
vertical-align: top;
90-
font-size: 0.88rem;
91-
line-height: 1.2;
92-
}
93-
94-
/* .repo {
95-
font-weight: 500;
96-
} */
97-
9848
.tag {
9949
font-family: var(--ifm-font-family-monospace);
10050
}
10151

102-
/* .body {
103-
max-width: 420px;
104-
white-space: nowrap;
105-
overflow: hidden;
106-
text-overflow: ellipsis;
107-
color: var(--ifm-color-emphasis-700);
108-
} */
109-
110-
/* .body {
111-
max-width: 480px;
112-
white-space: normal;
113-
overflow-wrap: anywhere;
114-
word-break: break-word;
115-
line-height: 1.4;
116-
color: var(--ifm-color-emphasis-700);
117-
118-
max-height: 4.2em;
119-
overflow: hidden;
120-
} */
121-
12252
.body {
12353
display: -webkit-box;
12454
-webkit-line-clamp: 3; /* number of lines */
@@ -140,25 +70,6 @@
14070
width: 40%;
14171
}
14272

143-
/* 2026-02-16 Monday 19:14:52.Zebra striping? */
144-
/* tbody tr:nth-child(even) {
145-
background-color: var(--ifm-color-emphasis-100);
146-
} */
147-
148-
/* 2026-02-17 Tuesday 09:21:06. */
149-
table td {
150-
color: var(--ifm-table-cell-color);
151-
color: #000000;
152-
}
153-
154-
/* ========================================== */
155-
/* 2026-02-19 Thursday 08:42:41. cl */
156-
.container {
157-
max-width: 900px;
158-
margin: 2rem auto;
159-
padding: 0 1rem;
160-
}
161-
16273
.table {
16374
width: 100%;
16475
border-collapse: collapse;
@@ -167,7 +78,8 @@ table td {
16778

16879
.table th,
16980
.table td {
170-
padding: 0.75rem 1rem;
81+
padding: 0.25rem 1rem;
82+
17183
text-align: left;
17284
border-bottom: 1px solid var(--ifm-color-emphasis-300);
17385
white-space: nowrap;
@@ -178,11 +90,11 @@ table td {
17890
background-color: var(--ifm-color-emphasis-100);
17991
}
18092

181-
.table tr:hover {
182-
background-color: var(--ifm-color-emphasis-50);
93+
table td {
94+
color: var(--ifm-table-cell-color);
95+
color: #000000;
18396
}
18497

185-
.table td:first-child {
186-
font-family: monospace;
187-
font-size: 0.9rem;
98+
.table tr:hover {
99+
background-color: var(--ifm-color-emphasis-50);
188100
}

0 commit comments

Comments
 (0)