Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
Techatrix committed Aug 8, 2024
1 parent 645a9f2 commit 82ed2d3
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 16 deletions.
16 changes: 10 additions & 6 deletions assets/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ h3,
h4,
h5,
h6 {
margin-top: 0.5rem;
margin-bottom: 0.5rem;
margin-top: 0.4rem;
margin-bottom: 0.8rem;
}

h2,
Expand All @@ -81,7 +81,7 @@ body {
align-self: center;
box-sizing: border-box;
padding: 0 1.5rem;
max-width: min(700px, 100vw);
max-width: min(750px, 100vw);
}

footer {
Expand Down Expand Up @@ -128,12 +128,12 @@ table {
height: 100%;
}

table th {
th {
border-bottom: 1px solid #aaa;
}

td {
padding: 0.3rem;
padding: 0.35rem 0.25rem;
}

figure {
Expand All @@ -157,6 +157,10 @@ li a {
padding: 0.4rem 0.4rem 0.4rem 0;
}

tr:nth-child(2n) > td {
background-color: var(--bg);
}

a {
color: #111;
}
Expand Down Expand Up @@ -198,7 +202,7 @@ pre {
}

:root {
--bg: #f6f6f6;
--bg: #f5f5f5;
--fg: #000;
--border: #444;
/**
Expand Down
6 changes: 6 additions & 0 deletions content/zls/releases/0.13.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ This release is meant to provide compatibility with Zig 0.13.0
- [@Sekky61](https://github.com/Sekky61) made their first contribution in [#1896](https://github.com/zigtools/zls/pull/1896)
- [@WillLillis](https://github.com/WillLillis) made their first contribution in [#1903](https://github.com/zigtools/zls/pull/1903)

## Sponsors

We'd like to take a second to thank all our awesome [contributors](https://github.com/zigtools/zls/graphs/contributors) and donators/backers/sponsors; if you have time or money to spare, consider partaking in either of these options - they help keep ZLS awesome for everyone!

[![OpenCollective Backers](https://opencollective.com/zigtools/backers.svg?width=890&limit=1000)](https://opencollective.com/zigtools#category-CONTRIBUTE)

**Full Changelog**: [0.12.0...0.13.0](https://github.com/zigtools/zls/compare/0.12.0...0.13.0)

# Release Artifacts
Expand Down
28 changes: 18 additions & 10 deletions layouts/zls-install.shtml
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,17 @@
}

#form-result {
padding-top: 2rem;
padding-top: 1rem;
}

#form-result pre {
font-size: larger;
}

#form-table {
padding: 0.5rem 0;
#table-result {
display: block;
overflow: auto;
white-space: nowrap;
}

.banner-note {
Expand Down Expand Up @@ -219,10 +221,10 @@
}

const heading = document.createElement("tr");
for (const item of ["Target", "Filename", "Signature", "Size"]) {
const td = document.createElement("td");
td.innerHTML = item;
heading.appendChild(td);
for (const item of ["OS", "Arch", "Filename", "Signature", "Size"]) {
const th = document.createElement("th");
th.innerHTML = item;
heading.appendChild(th);
}

const thead = document.createElement("thead");
Expand All @@ -234,8 +236,13 @@
if (key === "version") continue;
if (key === "date") continue;

const target = document.createElement("td");
target.innerHTML = key;
const target = key.split('-');

const arch = document.createElement("td");
arch.innerHTML = target[0];

const os = document.createElement("td");
os.innerHTML = target[1].charAt(0).toUpperCase() + target[1].slice(1);

const index = value.tarball.lastIndexOf("/") + 1;
const tarballLink = document.createElement("a");
Expand All @@ -258,7 +265,8 @@
size.innerHTML = formatBytes(parseInt(value.size));

const tr = document.createElement("tr");
tr.appendChild(target);
tr.appendChild(os);
tr.appendChild(arch);
tr.appendChild(link);
tr.appendChild(signature);
tr.appendChild(size);
Expand Down

0 comments on commit 82ed2d3

Please sign in to comment.