<feed xmlns='http://www.w3.org/2005/Atom'>
<title>toaster/src, branch v1.8.0</title>
<subtitle>Generate websites from markdown files
</subtitle>
<id>https://code.benbridle.com/toaster/atom?h=v1.8.0</id>
<link rel='self' href='https://code.benbridle.com/toaster/atom?h=v1.8.0'/>
<link rel='alternate' type='text/html' href='https://code.benbridle.com/toaster/'/>
<updated>2025-02-01T04:52:47Z</updated>
<entry>
<title>Implement 'gallery-nav' fragment type</title>
<updated>2025-02-01T04:52:47Z</updated>
<author>
<name>Ben Bridle</name>
<email>ben@derelict.engineering</email>
</author>
<published>2025-02-01T04:52:47Z</published>
<link rel='alternate' type='text/html' href='https://code.benbridle.com/toaster/commit/?id=28b2654579cd24ffbd730560a56c5e6b93986d35'/>
<id>urn:sha1:28b2654579cd24ffbd730560a56c5e6b93986d35</id>
<content type='text'>
This type is for showing a list of pages as clickable image previews.
Each line in the fragment is an internal page link, followed by a '::'
separator, followed by the name of an image file. Image files must be
stored inside the '/images/thumb/' directory of the generated website.
</content>
</entry>
<entry>
<title>Separate link parsing code from line_to_html function</title>
<updated>2025-02-01T04:50:02Z</updated>
<author>
<name>Ben Bridle</name>
<email>ben@derelict.engineering</email>
</author>
<published>2025-02-01T04:50:02Z</published>
<link rel='alternate' type='text/html' href='https://code.benbridle.com/toaster/commit/?id=df637c29dca6246114621692bdeb36ad31cc9458'/>
<id>urn:sha1:df637c29dca6246114621692bdeb36ad31cc9458</id>
<content type='text'>
This is so that links can be parsed in other contexts in the future.
</content>
</entry>
<entry>
<title>Support vertical borders in tables</title>
<updated>2025-02-01T04:48:36Z</updated>
<author>
<name>Ben Bridle</name>
<email>ben@derelict.engineering</email>
</author>
<published>2025-02-01T04:48:27Z</published>
<link rel='alternate' type='text/html' href='https://code.benbridle.com/toaster/commit/?id=6aa4215cd51a2816fee3d60a844a7148664205b7'/>
<id>urn:sha1:6aa4215cd51a2816fee3d60a844a7148664205b7</id>
<content type='text'>
The latest version of the markdown library includes support for a new
vertical-border syntax in tables. When a table has a double-thickness
pipe border between two columns in the markdown, each &lt;th&gt; and &lt;td&gt;
cell in the column on the left side of the border is given the class
'border'.
</content>
</entry>
<entry>
<title>Support embedding video files in pages</title>
<updated>2025-02-01T04:42:05Z</updated>
<author>
<name>Ben Bridle</name>
<email>ben@derelict.engineering</email>
</author>
<published>2025-02-01T04:42:05Z</published>
<link rel='alternate' type='text/html' href='https://code.benbridle.com/toaster/commit/?id=dfd8d985da474bf4e2c080a1de36499eb6e13abb'/>
<id>urn:sha1:dfd8d985da474bf4e2c080a1de36499eb6e13abb</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Don't add class attribute to HTML list items if class is empty</title>
<updated>2025-02-01T04:41:49Z</updated>
<author>
<name>Ben Bridle</name>
<email>ben@derelict.engineering</email>
</author>
<published>2025-02-01T04:41:49Z</published>
<link rel='alternate' type='text/html' href='https://code.benbridle.com/toaster/commit/?id=999d697329966e6c707d3a6812ccaf44f068f4dd'/>
<id>urn:sha1:999d697329966e6c707d3a6812ccaf44f068f4dd</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Set last-modified time of generated files same as source file</title>
<updated>2025-02-01T04:41:08Z</updated>
<author>
<name>Ben Bridle</name>
<email>ben@derelict.engineering</email>
</author>
<published>2025-02-01T04:41:08Z</published>
<link rel='alternate' type='text/html' href='https://code.benbridle.com/toaster/commit/?id=35a4fc3c3e1871cb0b4a8bf243d5b97f0e827628'/>
<id>urn:sha1:35a4fc3c3e1871cb0b4a8bf243d5b97f0e827628</id>
<content type='text'>
When generating a file from a source file, the last-modified time
of the generated file will be set to be the same as the last-modified
time of the source file. This is so that when copying the generated
website to a server with rsync, only modified files will be copied
over, saving considerable time.

This commit also updates vagabond to the latest version which includes
a change where files are only copied if they have been modified or if
they haven't yet been copied. This saves considerable time when
generating the website, if the website contains large static files.
</content>
</entry>
<entry>
<title>Avoid subtracting with underflow</title>
<updated>2025-01-22T00:34:24Z</updated>
<author>
<name>Ben Bridle</name>
<email>bridle.benjamin@gmail.com</email>
</author>
<published>2025-01-22T00:34:24Z</published>
<link rel='alternate' type='text/html' href='https://code.benbridle.com/toaster/commit/?id=480bc790bdf4c8e64bd7a3a99884a6bcc1e17055'/>
<id>urn:sha1:480bc790bdf4c8e64bd7a3a99884a6bcc1e17055</id>
<content type='text'>
For pages at the root of the website, the length of the parents vec is
zero. To avoid an underflow when subtracting from the length, we can
just call `.last()` instead of `.get(len-1)`.
</content>
</entry>
<entry>
<title>Improve error message when source directory cannot be found</title>
<updated>2025-01-22T00:22:15Z</updated>
<author>
<name>Ben Bridle</name>
<email>bridle.benjamin@gmail.com</email>
</author>
<published>2025-01-22T00:22:15Z</published>
<link rel='alternate' type='text/html' href='https://code.benbridle.com/toaster/commit/?id=e3c4ff5e93f2cd95dfa73dd779202481ec5dd01b'/>
<id>urn:sha1:e3c4ff5e93f2cd95dfa73dd779202481ec5dd01b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Remove 'appendix' from the links of appendix headings</title>
<updated>2025-01-21T23:55:22Z</updated>
<author>
<name>Ben Bridle</name>
<email>bridle.benjamin@gmail.com</email>
</author>
<published>2025-01-21T23:47:06Z</published>
<link rel='alternate' type='text/html' href='https://code.benbridle.com/toaster/commit/?id=b511a1a64e9076a040baf3c02a1587c40d0ec172'/>
<id>urn:sha1:b511a1a64e9076a040baf3c02a1587c40d0ec172</id>
<content type='text'>
If a heading is prefixed with 'Appendix #:', the link to that heading
will not include that prefix. This is to make it possible to rearrange
appendices in a document without breaking existing links.
</content>
</entry>
<entry>
<title>Only transform quotes and dashes inside presentational text</title>
<updated>2025-01-21T05:38:45Z</updated>
<author>
<name>Ben Bridle</name>
<email>bridle.benjamin@gmail.com</email>
</author>
<published>2025-01-21T05:38:19Z</published>
<link rel='alternate' type='text/html' href='https://code.benbridle.com/toaster/commit/?id=e9f25c69e1e37d038ab05e7a69ea961799615141'/>
<id>urn:sha1:e9f25c69e1e37d038ab05e7a69ea961799615141</id>
<content type='text'>
Keep quotes and dashes unmodified in monospace line elements, math
blocks, math elements, and fragment blocks.
</content>
</entry>
</feed>
