Skip to content

Commit 40ece90

Browse files
donislawdevclaude
andauthored
site: the download button stops naming a version, and two stale sections go (#48)
The button said "Download 0.2.0" and led to /releases/latest. Those two halves cannot both stay true. "latest" skips a prerelease by design, so the moment a release candidate exists the page names one version and hands over another - and nothing here would catch it, because the site guard compares the site against the CODE and both halves would agree while being wrong about what a visitor receives. Owner's decision, and it is better than the alternatives that were on the table: the button reads "Download" and leads to the list of releases. A list is true whatever is published, so the page makes no promise it can break. It also removes the reason to tag a release from a branch to keep the site honest. The releases fact moved with it, so the footer link and the JSON-LD downloadUrl point at the list too rather than at two different places. Three removals, all on the owner's instruction, and two of them were carrying live falsehoods rather than only clutter. "Where this is today" on the front page and "Formats that are not here yet" on the formats page both listed tiff and webp as planned and not built. Both shipped on 2026-08-29. The site guard could not see it: it renders the numbers a program can be asked for, and no code claims a list of formats that do not exist, so that sentence was prose nothing was checking. Deleting the sections removed the claim rather than dating it. And the sentence "The Linux ones are unsigned" is gone from the call to action in both languages. Sections were cut by content rather than by line numbers, and the seams are checked: no orphaned markup, nothing linked to #scope or #next, and FormatCount is still used in six other places. No releases/latest is left anywhere on the site. Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
1 parent 4063fca commit 40ece90

21 files changed

Lines changed: 50 additions & 185 deletions

File tree

‎internal/guard/site_test.go‎

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,9 +134,16 @@ func factsFromTheProgram() site.Facts {
134134
Presets: ids,
135135
Downloads: declaredDownloads(),
136136
// Fixed on purpose. See the comment on the field.
137-
Year: 2026,
138-
Repo: "https://github.com/donislawdev/TestingFilesGenerator",
139-
Releases: "https://github.com/donislawdev/TestingFilesGenerator/releases/latest",
137+
Year: 2026,
138+
Repo: "https://github.com/donislawdev/TestingFilesGenerator",
139+
// The list of releases rather than whichever one is newest, since
140+
// 2026-09-03. "latest" skips a prerelease, so a page offering to
141+
// download a version it had just named would hand over a different one
142+
// the moment a release candidate existed - and nothing here compares
143+
// the two, because this guard compares the site against the CODE. The
144+
// button names no version now and leads to the list, which is true
145+
// whatever is published.
146+
Releases: "https://github.com/donislawdev/TestingFilesGenerator/releases",
140147
Issues: "https://github.com/donislawdev/TestingFilesGenerator/issues",
141148
Support: "https://donislawdev.com/support/",
142149
Origin: siteOrigin,

‎web/content/en/formats.html‎

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -76,15 +76,3 @@ <h2>Archives hold real files</h2>
7676
size: 4kb</code></pre>
7777
</section>
7878

79-
<section class="section" id="next">
80-
<h2>Formats that are not here yet</h2>
81-
<p>
82-
<code>7z</code>, <code>tiff</code>, <code>webp</code>, <code>mp3</code> and <code>mp4</code> are
83-
planned and not built. They are absent from the list above rather than present and half working,
84-
and asking for one is an error saying the format is unknown.
85-
</p>
86-
<p>
87-
If you need one of them, or a format that is not on either list, the
88-
<a href="{{ .Facts.Issues }}">issue tracker</a> is where that gets decided.
89-
</p>
90-
</section>

‎web/content/en/index.html‎

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -182,26 +182,3 @@ <h2>Pick the build for your system</h2>
182182
{{ template "downloadCta" . }}
183183
</section>
184184

185-
<section class="section" id="scope">
186-
<p class="eyebrow">Honest scope</p>
187-
<h2>Where this is today</h2>
188-
<p>
189-
Version {{ .Facts.Version }}. A tool that oversells itself wastes your afternoon, so here is the
190-
state of it.
191-
</p>
192-
<p>
193-
<strong>Working end to end:</strong> {{ .Facts.FormatCount }} formats, recipes, presets, the desktop
194-
window, <code>generate</code>, <code>validate</code>, <code>verify</code>, <code>cleanup</code>,
195-
boundary sets, archive contents, size ranges, per format settings, manifests and every exit code.
196-
</p>
197-
<p>
198-
<strong>Not there yet:</strong> five more formats are planned - <code>7z</code>, <code>tiff</code>,
199-
<code>webp</code>, <code>mp3</code> and <code>mp4</code>. The preset catalogue has one entry so far.
200-
Some recipe keys are recognised and refused with a message saying they are not built yet, rather
201-
than being ignored quietly. The Linux downloads are unsigned.
202-
</p>
203-
<p>
204-
Found a problem or want a format? The <a href="{{ .Facts.Issues }}">issue tracker</a> is open, and
205-
so is the discussion about what gets built next.
206-
</p>
207-
</section>

‎web/content/en/site.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
"schemaDescription": "A free and open source generator of test files for QA. It produces real files of twenty formats at any exact size and writes a manifest saying how the system under test should react to each one.",
5555
"ctaDownload": "Download",
5656
"ctaSource": "View the source",
57-
"ctaNote": "Free and open source, GPL-3.0. Nothing to sign up for. The Windows and macOS downloads are signed and start without a warning. The Linux ones are unsigned.",
57+
"ctaNote": "Free and open source, GPL-3.0. Nothing to sign up for. The Windows and macOS downloads are signed and start without a warning.",
5858
"colFormat": "Format",
5959
"colExtension": "Extension",
6060
"colSmallest": "Smallest file",

‎web/content/pl/formats.html‎

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -77,15 +77,3 @@ <h2>Archiwa zawierają prawdziwe pliki</h2>
7777
size: 4kb</code></pre>
7878
</section>
7979

80-
<section class="section" id="next">
81-
<h2>Formaty, których jeszcze nie ma</h2>
82-
<p>
83-
<code>7z</code>, <code>tiff</code>, <code>webp</code>, <code>mp3</code> i <code>mp4</code> są
84-
zaplanowane i niezbudowane. Nie ma ich na liście wyżej, zamiast być obecne i działać połowicznie,
85-
a poproszenie o któryś kończy się błędem mówiącym, że format jest nieznany.
86-
</p>
87-
<p>
88-
Jeśli potrzebujesz któregoś z nich albo formatu, którego nie ma na żadnej z tych list,
89-
<a href="{{ .Facts.Issues }}">zgłoszenia</a> są miejscem, gdzie się o tym decyduje.
90-
</p>
91-
</section>

‎web/content/pl/index.html‎

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -182,27 +182,3 @@ <h2>Wybierz wersję dla swojego systemu</h2>
182182
{{ template "downloadCta" . }}
183183
</section>
184184

185-
<section class="section" id="scope">
186-
<p class="eyebrow">Uczciwy zakres</p>
187-
<h2>Gdzie to dziś jest</h2>
188-
<p>
189-
Wersja {{ .Facts.Version }}. Narzędzie, które się przechwala, kosztuje popołudnie, więc oto stan
190-
faktyczny.
191-
</p>
192-
<p>
193-
<strong>Działa od początku do końca:</strong> {{ .Facts.FormatCount }} formatów, przepisy, presety,
194-
okno, <code>generate</code>, <code>validate</code>, <code>verify</code>, <code>cleanup</code>,
195-
zestawy graniczne, zawartość archiwów, zakresy rozmiarów, ustawienia formatów, manifesty i wszystkie
196-
kody wyjścia.
197-
</p>
198-
<p>
199-
<strong>Czego jeszcze nie ma:</strong> pięciu zaplanowanych formatów - <code>7z</code>,
200-
<code>tiff</code>, <code>webp</code>, <code>mp3</code> i <code>mp4</code>. Katalog presetów ma na
201-
razie jedną pozycję. Część kluczy przepisu jest rozpoznawana i odrzucana komunikatem, że nie ma ich
202-
w tej wersji, zamiast być po cichu ignorowana. Pliki dla Linuksa nie są podpisane.
203-
</p>
204-
<p>
205-
Znalazłeś błąd albo potrzebujesz formatu? <a href="{{ .Facts.Issues }}">Zgłoszenia</a> są otwarte,
206-
tak samo jak dyskusja o tym, co powstanie następne.
207-
</p>
208-
</section>

‎web/content/pl/site.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
"schemaDescription": "Darmowy generator plików testowych dla QA o otwartym kodzie. Tworzy prawdziwe pliki w dwudziestu formatach o dokładnie zadanym rozmiarze i zapisuje manifest mówiący, jak testowany system ma na każdy z nich zareagować.",
5555
"ctaDownload": "Pobierz",
5656
"ctaSource": "Zobacz kod źródłowy",
57-
"ctaNote": "Darmowe i otwarte, GPL-3.0. Bez zakładania konta. Pliki dla Windows i macOS są podpisane i uruchamiają się bez ostrzeżenia. Pliki dla Linuksa nie są podpisane.",
57+
"ctaNote": "Darmowe i otwarte, GPL-3.0. Bez zakładania konta. Pliki dla Windows i macOS są podpisane i uruchamiają się bez ostrzeżenia.",
5858
"colFormat": "Format",
5959
"colExtension": "Rozszerzenie",
6060
"colSmallest": "Najmniejszy plik",

‎web/public/404.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ <h1>That page is not here</h1><p class="lead">The address you followed does not
6363
<p class="footer-head">Project</p>
6464
<ul class="plain">
6565
<li><a href="https://github.com/donislawdev/TestingFilesGenerator">Source on GitHub</a></li>
66-
<li><a href="https://github.com/donislawdev/TestingFilesGenerator/releases/latest">Downloads</a></li>
66+
<li><a href="https://github.com/donislawdev/TestingFilesGenerator/releases">Downloads</a></li>
6767
<li><a href="https://github.com/donislawdev/TestingFilesGenerator/issues">Report a problem</a></li>
6868
<li><a href="https://donislawdev.com/support/">Support the project</a></li>
6969
</ul>

‎web/public/create-file-exact-size/index.html‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -193,10 +193,10 @@ <h2>A real file of that format, at exactly the size you asked for</h2>
193193
through that and four other jobs it is built for.
194194
</p>
195195
<div class="cta">
196-
<a class="button primary" href="https://github.com/donislawdev/TestingFilesGenerator/releases/latest">Download 0.2.0</a>
196+
<a class="button primary" href="https://github.com/donislawdev/TestingFilesGenerator/releases">Download</a>
197197
<a class="button ghost" href="https://github.com/donislawdev/TestingFilesGenerator">View the source</a>
198198
</div>
199-
<p class="cta-note">Free and open source, GPL-3.0. Nothing to sign up for. The Windows and macOS downloads are signed and start without a warning. The Linux ones are unsigned.</p>
199+
<p class="cta-note">Free and open source, GPL-3.0. Nothing to sign up for. The Windows and macOS downloads are signed and start without a warning.</p>
200200
</section>
201201

202202
<section class="section" id="which">
@@ -235,7 +235,7 @@ <h2>So which should you use?</h2>
235235
<p class="footer-head">Project</p>
236236
<ul class="plain">
237237
<li><a href="https://github.com/donislawdev/TestingFilesGenerator">Source on GitHub</a></li>
238-
<li><a href="https://github.com/donislawdev/TestingFilesGenerator/releases/latest">Downloads</a></li>
238+
<li><a href="https://github.com/donislawdev/TestingFilesGenerator/releases">Downloads</a></li>
239239
<li><a href="https://github.com/donislawdev/TestingFilesGenerator/issues">Report a problem</a></li>
240240
<li><a href="https://donislawdev.com/support/">Support the project</a></li>
241241
</ul>

‎web/public/docs/index.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ <h2>Is there a desktop window?</h2>
380380
<p class="footer-head">Project</p>
381381
<ul class="plain">
382382
<li><a href="https://github.com/donislawdev/TestingFilesGenerator">Source on GitHub</a></li>
383-
<li><a href="https://github.com/donislawdev/TestingFilesGenerator/releases/latest">Downloads</a></li>
383+
<li><a href="https://github.com/donislawdev/TestingFilesGenerator/releases">Downloads</a></li>
384384
<li><a href="https://github.com/donislawdev/TestingFilesGenerator/issues">Report a problem</a></li>
385385
<li><a href="https://donislawdev.com/support/">Support the project</a></li>
386386
</ul>

0 commit comments

Comments
 (0)