Source

This website and its generator are open source. Peruse it at https://git.gay/tox/tox.wtf, if you so wish.

How it works

This site consists entirely of static HTML. The HTML files are generated from markdown files parsed with comrak. Syntax highlighting for code blocks is also done with syntect.

A small program written in Rust builds everything, and also handles macro expansion.

JavaScript

This site does not, and never will, require JavaScript to function.

If JavaScript is enabled, you'll get a nice copy button for code blocks, and some probably useless navigation shortcuts.

Code Copy Button

The code copy button is stolen from highlightjs-copy.

There exists a <script> for more convenient keyboard navigation. The controls are as follows:

Key Action
w navigate up
a previous page
d next page

s is omitted as I couldn't think of a sufficiently not awful way to implement downward navigation. Just use tab and enter for that.