Skip to content

Commit

Permalink
changelog: provide individual page changelogs per release
Browse files Browse the repository at this point in the history
Each release gets its own individual changelog in the /ch/[version].html
page, and most links on the website now links to those pages. The main
changelog page remains as-is for reference - and for scripting.

Reasons:

- at 250+ releases, getting all the changes at once is rarely what a user
  wants at first glance. The full log is still just a click away.

- the full log is now >1MB in size, where as each individual page is less than
  30K.

- this is likely to scale better into the future
  • Loading branch information
bagder committed Jul 23, 2024
1 parent a5def8a commit 51794f3
Show file tree
Hide file tree
Showing 35 changed files with 385 additions and 199 deletions.
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,10 @@ download2.html: _download2.html $(MAINPARTS) $(RELEASE) dl/files.html
dl/files.html: dl/data/databas.db
cd dl; make

changes.html: _changes.html docs/_menu.html $(MAINPARTS)
changes.html: _changes.html docs/_menu.html $(MAINPARTS) splitchange.pl _single-head-template.html _single-foot-template.html changes.t changescss.t
$(ACTION)
./splitchange.pl
cd ch && $(MAKE)

gethelp.html: _gethelp.html $(MAINPARTS)
$(ACTION)
Expand Down
79 changes: 38 additions & 41 deletions _changes.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,8 @@
<html lang="en">
<head> <title>curl - Changes</title>
#include "css.t"

<style>
.video:before {
content: "🎥 release video for";
padding: 5px 5px 5px 5px;
}
.video:after {
content: "▶";
padding: 5px 5px 5px 5px;
}
.video {
background-color: #e0e0e0;
border: 1px solid black;
border-radius: 10px;
padding: 5px 5px 5px 5px;
}
.vulnbox:before {
content: "🐜 known vulnerabilities for";
padding: 5px 5px 5px 5px;
}
.vulnbox {
#include "changescss.t"
.thisver {
background-color: #e0e0e0;
border: 1px solid black;
border-radius: 10px;
Expand All @@ -36,12 +17,10 @@

#include "_menu.html"
#include "setup.t"
#include "changes.t"

WHERE3(Docs, "/docs/", Releases, "/docs/reldocs.html", Changelog)

<a name="changes"></a>
TITLE(Changelog)

<div class="relatedbox">
<b>Related:</b>
<br><a href="/snapshots/">Daily Snapshots</a>
Expand All @@ -65,19 +44,8 @@
</ul>
#endif

#define CHG <li>
#define BGF <li>

#define RELEASEVIDEO(ver,vid) \
<div><a class="video" href=vid>ver</a> \
<a class="vulnbox" href=/docs/vuln-ver.html>ver</a> \
</div>

#define VULNBOX(ver) \
<div> \
<a class="vulnbox" href=/docs/vuln-ver.html>ver</a> \
</div>

<a name="changes"></a>
TITLE(All changes ever made)

<a name="8_8_0"></a>
SUBTITLE(Fixed in 8.8.0 - May 22 2024)
Expand Down Expand Up @@ -13783,6 +13751,7 @@

<a name="3_12"></a>
SUBTITLE(Fixed in 3.12 - March 14 1998)
THISBOX(3.12)
<p> Changes:
<ul class="changes">
CHG Added PROXY authentication.
Expand All @@ -13796,13 +13765,15 @@

<a name="3_11"></a>
SUBTITLE(Fixed in 3.11 - February 9 1998)
THISBOX(3.11)
<p> Bugfixes:
<ul class="bugfixes">
BGF The header parsing was still not correct since the 3.2 modification...
</ul>

<a name="3_10"></a>
SUBTITLE(Fixed in 3.10 - February 4 1998)
THISBOX(3.10)
<p> Bugfixes:
<ul class="bugfixes">
BGF 3.7 and 3.9 were simultaneously developed and merged into this version.
Expand All @@ -13811,6 +13782,7 @@

<a name="3_9"></a>
SUBTITLE(Fixed in 3.9 - February 4 1998)
THISBOX(3.9)
<p> Bugfixes:
<ul class="bugfixes">
BGF 3.7 and 3.9 were simultaneously developed and merged into this version.
Expand All @@ -13819,6 +13791,7 @@

<a name="3_7"></a>
SUBTITLE(Fixed in 3.7 - January 15 1998)
THISBOX(3.7)
<p> Bugfixes:
<ul class="bugfixes">
BGF Now checks the last error code sent from the ftp server after a file has
Expand All @@ -13830,6 +13803,7 @@

<a name="3_6"></a>
SUBTITLE(Fixed in 3.6 - January 1 1998)
THISBOX(3.6)
<p> Bugfixes:
<ul class="bugfixes">
BGF Silly mistake made the POST bug. This has now also been tested to work with
Expand All @@ -13838,6 +13812,7 @@

<a name="3_5"></a>
SUBTITLE(Fixed in 3.5 - December 15 1997)
THISBOX(3.5)
<p> Changes:
<ul class="changes">
CHG Highly inspired by Rafael Sagula's changes to the 3.1 that added an almost
Expand All @@ -13848,6 +13823,7 @@

<a name="3_2"></a>
SUBTITLE(Fixed in 3.2 - December 1 1997)
THISBOX(3.2)
<p> Changes:
<ul class="changes">
CHG FTP directory view supports -l for "list-only" which lists the filenames
Expand All @@ -13872,13 +13848,15 @@

<a name="3_1"></a>
SUBTITLE(Fixed in 3.1 - November 24 1997)
THISBOX(3.1)
<p> Bugfixes:
<ul class="bugfixes">
BGF 3 warnings in win32-compiles
</ul>

<a name="3_0"></a>
SUBTITLE(Fixed in 3.0 - November 1 1997)
THISBOX(3.0)
<p> Changes:
<ul class="changes">
CHG Added FTP upload capabilities. The name urlget gets a bit silly now
Expand All @@ -13894,6 +13872,7 @@

<a name="2_9"></a>
SUBTITLE(Fixed in 2.9 - October 15 1997 )
THISBOX(2.9)
<p> Bugfixes:
<ul class="bugfixes">
BGF Added a fix to make it compile smoothly on Amiga using the SAS/C
Expand All @@ -13906,13 +13885,15 @@

<a name="2_8"></a>
SUBTITLE(Fixed in 2.8 - October 1 1997 )
THISBOX(2.8)
<p> Bugfixes:
<ul class="bugfixes">
BGF some little modifications
</ul>

<a name="2_7"></a>
SUBTITLE(Fixed in 2.7 - September 20 1997 )
THISBOX(2.7)
<p> Changes:
<ul class="changes">
CHG Removed the -l option and introduced the -f option instead. Now I'll
Expand All @@ -13930,6 +13911,7 @@

<a name="2_6"></a>
SUBTITLE(Fixed in 2.6 - September 10 1997 )
THISBOX(2.6)
<p> Changes:
<ul class="changes">
CHG Added -I which uses the HEAD request to get the header only from a
Expand All @@ -13944,13 +13926,15 @@

<a name="2_5"></a>
SUBTITLE(Fixed in 2.5 - September 1 1997 )
THISBOX(2.5)
<p> Bugfixes:
<ul class="bugfixes">
BGF Made the progress meter use HHH:MM:SS instead of only seconds.
</ul>

<a name="2_4"></a>
SUBTITLE(Fixed in 2.4 - August 27 1997 )
THISBOX(2.4)
<p> Changes:
<ul class="changes">
CHG Added progress meter. It appears when downloading > BUFFER SIZE and
Expand All @@ -13972,6 +13956,7 @@

<a name="2_3"></a>
SUBTITLE(Fixed in 2.3 - August 21 1997 )
THISBOX(2.3)
<p> Changes:
<ul class="changes">
CHG Added "-o" option (output file)
Expand All @@ -13987,6 +13972,7 @@

<a name="2_2"></a>
SUBTITLE(Fixed in 2.2 - August 14 1997 )
THISBOX(2.2)
<p> Changes:
<ul class="changes">
CHG Made a '-h' switch in case you want the HTTP-header in the output.
Expand All @@ -14003,6 +13989,7 @@

<a name="2_1"></a>
SUBTITLE(Fixed in 2.1 - August 10 1997 )
THISBOX(2.1)
<p> Changes:
<ul class="changes">
CHG Mute option (no output at all to stderr)
Expand All @@ -14019,6 +14006,7 @@

<a name="2_0"></a>
SUBTITLE(Fixed in 2.0 - August 1 1997 )
THISBOX(2.0)
<ul class="changes">
CHG Introducing ftp GET support. The FTP URL type is recognized and used.
CHG Renamed the project to <b>urlget</b>
Expand All @@ -14028,6 +14016,7 @@

<a name="1_5"></a>
SUBTITLE(Fixed in 1.5 - July 21 1997)
THISBOX(1.5)
<p> Bugfixes:
<ul class="bugfixes">
BGF The skip_header() crap messed it up big-time. By simply removing that
Expand All @@ -14040,6 +14029,7 @@

<a name="1_4"></a>
SUBTITLE(Fixed in 1.4 - July 15 1997)
THISBOX(1.4)
<p> Bugfixes:
<ul class="bugfixes">
BGF The gopher source used the ppath variable instead of path which could
Expand All @@ -14048,6 +14038,7 @@

<a name="1_3"></a>
SUBTITLE(Fixed in 1.3 - June 1 1997)
THISBOX(1.3)
<p> Bugfixes:
<ul class="bugfixes">
BGF added a lame text about the time it took to get the data.
Expand All @@ -14059,6 +14050,7 @@

<a name="1_2"></a>
SUBTITLE(Fixed in 1.2 - May 1 1997)
THISBOX(1.2)
<p> Changes:
<ul class="changes">
CHG Implemented HTTP proxy support.
Expand All @@ -14080,6 +14072,7 @@

<a name="1_1"></a>
SUBTITLE(Fixed in 1.1 - April 20 1997)
THISBOX(1.1)
<p> Bugfixes:
<ul class="bugfixes">
BGF Adjusted it slightly to accept named hosts on the command line. We
Expand All @@ -14088,22 +14081,26 @@

<a name="1_0"></a>
SUBTITLE(Fixed in 1.0 - April 8 1997)

THISBOX(1.0)
<p>
The changes for httpget 1.0 have been lost.

<a name="0_3"></a>
SUBTITLE(Fixed in 0.3 - January 1 1997)

THISBOX(0.3)
<p>
The changes for httpget 0.3 release have been lost.

<a name="0_2"></a>
SUBTITLE(Fixed in 0.2 - December 17 1996)

THISBOX(0.2)
<p>
The changes for httpget 0.2 release have been lost.

<a name="0_1"></a>
SUBTITLE(Fixed in 0.1 - November 11 1996)

THISBOX(0.1)
<p>
The first release ever done. httpget 0.1

#include "_footer.html"
Expand Down
4 changes: 2 additions & 2 deletions _download.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
TITLE(Releases and Downloads)
<div class="relatedbox">
<b>Related:</b>
<br><a href="/changes.html">Changelog</a>
<br><a href="/ch/">Changelog</a>
<br><a href="/download/">Old Releases</a>
<br><a href="/dev/source.html">Source code repo</a>
<br><a href="https://curl.se/snapshots/">Daily Snapshots</a>
Expand All @@ -31,7 +31,7 @@

SUBTITLE(Source Archives)
<p>
<b>curl __STABLE</b>, Released on the DATE(__RELDATE). <a href="changes.html#__STABLETAG">Changelog for __STABLE</a>.
<b>curl __STABLE</b>, Released on the DATE(__RELDATE). <a href="/ch/__STABLE.html">Changelog for __STABLE</a>.

<table class="download">
<tr>
Expand Down
2 changes: 1 addition & 1 deletion _info
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Version: __STABLE
Date: __RELDATE
Download: https://curl.se/download/curl-__STABLE.tar.gz
Changelog: https://curl.se/changes.html#__STABLETAG
Changelog: https://curl.se/ch/__STABLE.html
git tag: curl-__STABLETAG
Packages: __PACKS
Up-to-date: __CURR
Expand Down
4 changes: 2 additions & 2 deletions _menu.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<a class="dropbtn" href="/download.html">Download</a>
<div class="dropdown-content">
<a href="https://github.com/curl/curl">Browse source</a>
<a href="/changes.html">Changelog</a>
<a href="/ch/">Changelog</a>
<a href="/tiny/">tiny-curl</a>
</div>
</div>
Expand Down Expand Up @@ -106,7 +106,7 @@
<div class="dropdown">
<a class="dropbtn" href="/news.html">News</a>
<div class="dropdown-content">
<a href="/changes.html">Changelog</a>
<a href="/ch/">Changelog</a>
<a href="/docs/releases.html">Release table</a>
</div>
</div>
Expand Down
Loading

0 comments on commit 51794f3

Please sign in to comment.