Skip to content
fixrbPublic

About

Fixrb website.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

65 Commits

Folders and files

Repository files navigation

fixrb.dev

The website of the Fixrb project: Fix, Matchi and the gems around them.

Hand-written HTML5 and one stylesheet, in English and in Japanese. No build step, no JavaScript, and nothing loaded from another site. Only the highlighting of Ruby code, the structured data of the pages, and llms.txt and llms-full.txt are written by a script, bin/check --fix, with the standard library.

Layout

Path Content
index.html Home: Fix, the gems, the latest posts
ja/ The Japanese site: every page at the same path as its English page, and the feed of the Japanese blog, ja/feed.xml
gems/NAME/index.html One page per gem
gems/NAME/img/ A gem's drawing, illustration and icons, used by a page or by style.css
built-with/NAME/index.html, built-with/NAME/img/ One page per project built on the libraries of Fixrb outside its gems, and its drawings: RSpec clone
img/ The drawings of the site's own design, in SVG, used by style.css or a page: the night, the crystals, the duck and the signs of the home page, the three vignettes of its ideas, the pictograms of the cases of Fix, the levels, the print shop of the blog, the empty setting of the 404, the crystals of the footer; card-SLUG.png, the card of each post before Fix 1.0; the duck test of the home page, duck-test.png; and the Japanese cards, card-ja.png for the home page and the blog, card-ja-SLUG.png for a post
blog/index.html, feed.xml The list of posts and its Atom feed
sitemap.xml, robots.txt For search engines: every page but the 404, and the files crawlers are kept out of
llms.txt, llms-full.txt For language models, in Markdown: every page but the 404, by what it holds; the page of fix and its guide, with the code of their examples
KEY.txt The key of IndexNow, 32 hexadecimal digits, in a file of that name: public by design
CATEGORIES/YYYY/MM/DD/SLUG.html Posts, at the URLs of the former Jekyll blog
examples/ Every code example shown on a page, as a Ruby file or a manifest of brutal
404.html Served by GitHub Pages for any unknown address, in either language
style.css, fonts/, logo.svg, favicon.ico, icon.png, card.png Style, images, and the card shown where the home or the blog is shared
bin/check, bin/examples, bin/indexnow The checks, the runner of the examples, and the request to IndexNow
.github/ CI, which runs bin/check; the workflow that announces the published pages to IndexNow; and Dependabot, for the actions
.ruby-version The Ruby of CI and of the highlighting
.gitattributes LF line endings in every checkout
.nojekyll Tells GitHub Pages to serve the files as they are
LICENSE.md MIT License

GitHub Pages publishes every file of the repository, so bin/check accepts only the files above: anything new must be added to its list.

Languages

The site is in English, at the root, and in Japanese, under ja/: every page has its translation at the same path, ja/PATH. The 404, which GitHub Pages serves at any address, holds a line of each.

  • A page declares its language in <html lang>, and a Japanese page its locale, <meta property="og:locale" content="ja_JP">, once, right after og:site_name. Right after its canonical URL, each indexed page lists its alternates, as absolute URLs, in this order: hreflang="en", hreflang="ja", and hreflang="x-default", which is the English page.
  • The last link of the footer leads to the same page in the other language, with hreflang and lang: 日本語 on an English page, English on a Japanese one, and /ja/ from the 404, whose list of links leads there too. That is the one way from a page to a page or a feed of the other language. The site header and footer of a Japanese page are those of ja/index.html.
  • The labels of the navs are those of the language of the page: Main, On this page, Guide and Pages; メイン, 目次, ガイド and 前後のページ. The stylesheet names each nav by both, nav:is([aria-label="On this page"], [aria-label="目次"]), and starts with @charset "UTF-8", since it holds Japanese.
  • A translation shows the same thing as its page but for the words: the same blocks, in the same order and with the same attributes, the same code blocks and terminal sessions, as many strong words, the same inline code, images, dates and links, and the same type, date and author in the head. bin/check compares each pair: change a page and its translation together. The examples are the same files, comments included, and so are the outputs of the sessions.
  • The Japanese blog is ja/blog/index.html, and its feed ja/feed.xml, in xml:lang="ja", whose id and self link are its own address, whose alternate link is the Japanese blog, and whose entries lead to the Japanese posts; the English feed is held to the same rules. A translated post keeps the date of its post, and its updated in the feed is the day of its translation; the note of a post before Fix 1.0 says that it is a translation.
  • A Japanese page shows the Japanese card of its English page: card-ja.png beside the card.png of a gem, img/card-ja.png for the home page and the blog, img/card-ja-SLUG.png for a post. It is the English card, its left 546 pixels as they are (but for the cards of the home page, of Fix and of RSpec clone, drawn as the English ones are), with the text in Japanese in the same place: the name in DejaVu Sans Mono Bold and the line in Inter and Noto Sans CJK JP at 38px, 1.4 high; for a post, "Fixrbブログ" over its title, in Inter and Noto Sans CJK JP Bold at 52px, 1.3 high, broken after its full-width colon; lines break between phrases.
  • sitemap.xml lists the Japanese pages after the English ones, in the same order; llms.txt lists them in a section of their own, "In Japanese", and llms-full.txt stays in English.
  • The Japanese is written in the polite form (です・ます), without a space between Japanese and Latin letters or digits, with full-width punctuation (、。「」():), and in the words of the guide: 仕様 for a specification, 期待 for an expectation, サブジェクト, マッチャー, コンテキスト, 要求レベル for a level of requirement, 判定 for an outcome and 結果 for a result, 子プロセス, 終了ステータス. MUST, SHOULD and MAY stay as they are, glossed at their first use on a page as Japanese translations of RFC 2119 gloss them, and the outcomes keep the words Fix writes: Success, Warning, Info, Failure and Error. Titles and descriptions are written for Japanese searches, not translated word for word. The line of the 404 is in the dialect of Osaka.

Rules

  • Semantic HTML5, element names in lowercase: no div, no span, no class, no inline style or script: the one <script> of an indexed page is its structured data, which no browser runs, and the 404 has none. The stylesheet targets elements, ids, ARIA attributes, the values of a few other attributes (src, href, rel, role and data-*) and, in code blocks only, the five token classes below.
  • One exception: inside <pre><code>, Ruby tokens are wrapped in <span> elements with one of five classes, comment, keyword, constant, string and number. They are never written by hand: bin/check --fix writes them from Ruby's own tokenizer, Ripper, and bin/check fails if they differ in any way from what it would write.
  • A list whose markers style.css removes, outside a nav, carries role="list": without it, Safari no longer announces it as a list. bin/check allows two roles only, note on a p and list on a ul or an ol.
  • A <pre> holds either a file of examples/, in one <code> (Ruby code highlighted, or a manifest of brutal as it is), or a terminal session: <kbd> for what is typed, <samp> for what the computer prints, text, and no other element. A <pre> never contains another.
  • A terminal session that shows output is run by bin/examples, so that the page shows what the command writes: <pre data-directory="examples/gem"><kbd>COMMAND</kbd> then a line break and <samp>OUTPUT</samp></pre>. COMMAND is ruby FILE or fix with its options and paths, plain ones (letters, digits, _, -, /), and runs in the directory named; a session of fix --random shows first the command that runs the files in the same order again, fix --random=SEED. The examples a session runs count as shown. A session without output, such as gem install fix, takes no attribute.
  • Every page starts with the same lines, up to the content security policy (default-src 'none', then 'self' for styles, images and fonts) and the referrer policy. Except 404.html, each has a description, <meta name="robots" content="max-image-preview:large">, a canonical URL, the Open Graph tags that repeat them, og:site_name, an og:image served by the site, whose og:image:width and og:image:height are its size, and one twitter:card. Its <title> is its og:title followed by · Fixrb, the home page's being its og:title alone; a post's og:title is its h1, and it has an article:author. Right after twitter:card comes its structured data, <script type="application/ld+json">, for search engines: on the home page, the organization and the site; on every other page, the trail of pages from the home page, through the blog for a post; on a post, the post too, with its times from the feed; the organization behind them has the links of the footer's list as its profiles. bin/check --fix writes it from the pages, the feed and the footer, and bin/check fails if a page differs from what it would write; it is data, which no browser runs, and the content security policy does not apply to it. A post's <time>, its article:published_time and its published in the feed are the same day, YYYY-MM-DD, and the feed's summary of a post is its description.
  • The site header and footer are the same on every page of a language; only the menu link to the page itself carries aria-current="page", and only the address of the link to the other language changes.
  • A long page lists its sections in <nav aria-label="On this page">: an ol of links, one to each h2, in the order of the page and with its words; on such a page every h2 carries an id, and there are fourteen at most. bin/check fails when the list and the titles differ: change them together.
  • Text is written as characters (’, “, a no-break space), never as named entities other than &amp;, &lt;, &gt; and &quot;: the structured data and the feed take titles and descriptions as they are written.
  • Element and attribute names are in lowercase, and no attribute appears twice. Attributes and rel values come from a short list in bin/check: nothing that would contact another site (preconnect, ping, srcset) or open a window (target).
  • sitemap.xml lists every page but 404.html by its canonical URL, without dates. robots.txt announces it and keeps crawlers out of the tooling (bin/, examples/, dotfiles, README.md, LICENSE.md), never a page, the feed, the style, a font, an image or a text file such as llms.txt. It keeps no crawler out by its name: the crawlers of AI search, such as OAI-SearchBot, Claude-SearchBot or PerplexityBot, read the site like the others, and a page they cannot read is one a generative engine cannot cite.
  • llms.txt and llms-full.txt, for language models, are written by bin/check --fix from the pages and the feed, and bin/check fails if they differ from what it would write. llms.txt follows llmstxt.org: every page but the 404, once, in a section that bin/check gives it (Fix, the guide of Fix 1, the other gems in the order of the home page, what is built with Fixrb outside its gems, in that order too, the blog, the posts before Fix 1.0, then the Japanese pages in the same order), with its og:title and its description; a page in none of them is reported. llms-full.txt holds the page of fix and every page of its guide, in the order of the guide, in Markdown: the <main> of each, without its navs, a figure as its image and its caption, the code of each example from its file, and each terminal session as a console block. The conversion knows the elements these pages use; another one stops it, to be added to bin/check.
  • Files a browser could run when opened directly are checked too. An SVG file may only hold svg, title, g, rect and path, with attributes from a short list and values without a colon or a slash, so that none holds a URL; logo.svg is also pinned by its SHA-256, as fixrb/logo publishes it. feed.xml may only hold Atom elements, from a short list, linking to the site. A CNAME file contains fixrb.dev.
  • Links inside the site start with / and lead to a file of the repository, and so does every url() of style.css, written as a path in double quotes, url("/gems/NAME/img/FILE.svg"), in a comment or not; style.css holds no @import, image-set(), src() or backslash, which could load a file another way. Stylesheets, images and fonts are served by the site. No file is a symbolic link.
  • A code block shows a file of examples/, character for character: <pre data-example="examples/gem/name.rb"><code>…</code></pre>, with < and & escaped. To add or change one, edit the file, write <pre data-example="…"><code></code></pre> the first time, and run bin/check --fix. Examples end their lines with LF. A line that ends with # => VALUE must evaluate to an object whose inspect is VALUE. A manifest of brutal, NAME_brutal.yaml, is shown without highlighting, and the test file next to it, test_NAME.rb, is the one brutal writes from it.
  • The five posts published before Fix 1.0 are kept as they were written, with a note saying so. Their code is not run but is highlighted like the rest; they are listed in bin/check.

Checking

bin/check

Checks the rules above, the internal links and anchors, the feed, that the nav of a page lists its sections, and that every code block matches its file and its highlighting. It needs git and the Ruby standard library only, and looks at the files git tracks or would add (ignored files are left out). CI runs it on pushes to main and on pull requests, with the Ruby of .ruby-version.

bin/check --fix

Rewrites the code blocks and the structured data of every page, and llms.txt and llms-full.txt, and nothing else, then checks. A block that is not well formed, or code that Ripper cannot read back exactly (such as data after __END__), is left as it is and reported, as is a page without exactly one twitter:card. Ripper may split some code differently from one version of Ruby to another, so the highlighting is the one of the Ruby in .ruby-version, which CI uses too: run bin/check --fix with it.

RUBYLIB=../matchi/lib bin/examples examples/matchi

Runs the examples, each in its own Ruby process, with the gems found on the load path, and prints the file each require loaded, so that the version under test is visible. A manifest of brutal is checked with brutal --check: RUBYLIB=../brutal/lib:../aw/lib bin/examples examples/brutal. The examples of RSpec clone, examples/rspec-clone/, take its lib and those of defi, matchi and spectus, and of fix, matchi-fix and aw for the one that takes a specification of Fix as a matcher. Before a release of a gem, run its examples against the code to be released.

It then runs the terminal sessions of the pages that run one of these examples, in their directory, and compares what the command writes, standard output and error together, with the <samp> of the page, character for character. fix is run with the fix-command found on the load path. An example a session runs is checked by it, whatever its status, so that a page can show a specification that is not met; it is run on its own as well when it has # => lines. The output is the one of the Ruby in .ruby-version: messages of Ruby, such as undefined method 'peek', change from one version to another.

A few examples are files of another repository, shown as they are there, where they run inside an application the site does not have: the files of fixrb/microblog that the guide page In a Rails application shows. bin/examples lists them, skips them and says so; the page says where they come from.

bin/examples runs the code of the examples, and bin/check --fix copies it into pages: run neither on a branch you have not read.

Markup

The stylesheet relies on this structure, which every page follows.

  • body > header: a link to / with the logo, 48 × 48 (3 screen pixels per pixel), and the site name, then nav[aria-label="Main"] > ul. body > footer: a paragraph, then a list of links; the stylesheet signs the paragraph with the logo, and draws under them the bedrock of the guide and a few crystals. main in between.
  • Home: section#fix (an hgroup whose first p is the eyebrow, a paragraph whose three strong are MUST, SHOULD and MAY, in this order, a ul of two links, to the first page of the guide and to the page of Fix, a dl of facts, and a figure with the example: from 62rem, the figure takes a second column; at the foot of the night, the duck floats by the tallest crystal), then section#why (a paragraph, the duck test, then a ul of three li > h3 + p, in a row from 56rem, each with its vignette by its position: a document, the levels, the processes), then section#gems, a band of ground between two seams of bedrock, holding section#extensions (the gems around Fix), section#libraries (building blocks that do not depend on it) and section#tools (commands to run as they are), then section#built, what is built on the libraries outside the gems (a paragraph, then a list of panels, li, each holding the scene of its project, img, its name in h3 > a, a p and a status in p > small: a panel of the night in both themes, framed in the colour of the project, the scene beside the words from 48rem), then section[aria-labelledby="blog-title"], the latest posts, a list of posts whose first is shown in a panel, and a p with the link to the blog. A gem card is li > h4, holding the gem's icon, if it has one, then > a; a p; and a status in p > small. The duck of the header is duck.svg, at 4 screen pixels per pixel, placed against the crystals at every width. The duck test is a figure on a plate of the dark of the code: duck-test.png, 172 × 88 pixels drawn at 8 pixels per pixel, shown at 344 × 176 on a phone (smaller below 384px), 516 × 264 from 35rem and 688 × 352 from 46rem; a board holds the specification :Duck, and three candidates in a pond have the results of subjects.svg, a duck, the robot of the page of Fix and a rubber duck. The vignettes, 96 × 52 pixels with the same duck and robot, are drawn by style.css at 3 screen pixels per pixel, 2 from 56rem, 3 again from 62rem. These drawings repeat those of the site, as on the page of Fix: each is drawn again if one of them changes.
  • Gem pages: main > article, whose header holds the gem's drawing, img, if it has one, then the hgroup. An illustration, if any, is a figure right after the first paragraph. The facts, a dl, come right after the first paragraph or after the illustration, and the nav of the page, nav[aria-label="On this page"], right after the facts. From 80rem, the facts and the nav form a rail on the right of the article: the facts beside the first paragraph (beside the illustration on the page of brutal), the nav under them, in view down to the foot of the article, the link of the section being read marked on it, with a sign of the page. No script tells which section that is: each h2 is the subject of a view timeline, and the nth link listens to the nth h2 and to the one after it (scroll-driven animations: Chrome 115, Safari 26, Firefox 159; an older browser marks nothing). Below 80rem, the nav is a slab of links under the facts; below 40rem, its links keep to one line, which is scrolled sideways. A page with a design of its own is found by its drawing: jester.svg for matchi, hero.svg for aw, scene.png for brutal, /logo.svg in the header of the article for Fix, movement.svg for spectus, letter.svg for defi, processes.svg for fix-command, loupe.svg for fix-its, pieces.svg for matchi-fix. Its rules then read:
    • matchi: the ten matchers, h2#matchers + dl, in the order of their emblems (Be, Eq, BeAKindOf, BeAnInstanceOf, BeWithin, Match, Satisfy, Predicate, RaiseException, Change), five to a row from 62rem, narrower beside the rail; h2#expected-value, which wears a crown; h2#documentation + ul.
    • aw: the figure and the header, shown in this order above the rest of the article, wherever they are in its markup; from 80rem its article is a grid, whose rows are counted from that order: the facts beside the first paragraph and the title after it, the nav from the row after; h2#limits + ul, h2#documentation + ul.
    • brutal: a manifest is a file whose name ends with .yaml; h2#command, which wears an axe; h2#limits + ul, h2#documentation + ul.
    • Fix: a ul of two links ends the header of the article, to the first page of the guide and to Coming from RSpec, the buttons of the home page, for the reader who lands here; the three strong of the first paragraph, MUST, SHOULD and MAY, in this order; the five cases, h3#implementations, h3#contract, h3#dependencies, h3#composition and h3#isolation, each beside its pictogram; a figure after the first paragraph of h2#usage, the scene of the duck and the robot, scene.png; a figure after the first paragraph of h2#fits, one specification tested against three subjects; three diagrams, after the first paragraph of h2#language (the four words, language.svg), after the example of h2#results (test, run and match?, results.svg) and after the paragraph of h2#processes (a child per context, processes.svg). Every figure is on a plate of the dark of the code, and the diagrams, 102 pixels wide, keep the scale of subjects.svg. The drawings repeat those of the site, the glyphs of the levels (that of MAY darkened on paper), three cuts of fix-its, the signs of the outcomes, and in the scene the stars, the crystals of the footer and the ground of the guide: each is drawn again if one of them changes; between two sections, the dotted rule holds a jewel, fleuron.svg; the table of outcomes, its rows MUST, SHOULD and MAY and its columns in the order of the README of fix, since the selectors carry the sign of each outcome; h2#documentation + ul, the jewel case.
    • spectus: as for Fix, the three strong of the first paragraph and the rows and columns of the table of outcomes; h2#outcomes, which wears a wheel, and h2#results, a crystal of frost; h2#documentation + ul. The balance of the movement is the background of its img, at offsets that follow the drawing: they change with it.
    • defi: h2#exceptions, which wears the arrow of a reply; h2#documentation + ul, the letter.
    • fix-command: h2#random, which wears a die showing the seed of the session under it, 2 (change them together), and h2#status, a lamp; h2#documentation + ul, a menu on the screen; its sessions, pre[data-directory], are the same screen as its header.
    • fix-its: h2#usage, which wears the loupe; h2#documentation + ul, a tray of four stones, in this order: a round brilliant, an emerald cut, a pear and a marquise, one per item.
    • matchi-fix: h2#usage, which wears the two pieces that fit; h2#documentation + ul, four pieces that fit, ruby and blue like a checkerboard, each but the last with a knob into a neighbour.
  • Pages of what is built with Fixrb, built-with/NAME/: the markup of a gem page, but for its header, whose hgroup starts with an eyebrow, "Built with Fixrb", and whose drawing is the scene of the project, with an alt that says what it shows. The page of RSpec clone is found by that scene, scene.png, in the header of its article, since the home page shows it too; it wears the teal of the mark of RSpec clone where the gems wear ruby. Its rules read: a figure after the example of h2#engine, two frameworks on one engine, on a plate of the dark of the code and at the scale of the plates of Fix, to be drawn again if a library joins or leaves either framework; h2#documentation + ul, each link checked with the mark.
  • Guides, gems/NAME/vN/ (the guide of Fix 1 is gems/fix/v1/): main > article, then nav[aria-label="Guide"], which holds a p > a to the first page of the guide, its index.html, and an ol of its pages, a page not yet written being named without a link. That nav is the same on every page of the guide, but for the aria-current of the page's own link. The hgroup of the article starts with an eyebrow, p > a to the guide; a page of three sections or more has its nav, nav[aria-label="On this page"], right after the header of the article, a ladder on the right of the page from 80rem; and the article ends with nav[aria-label="Pages"] > ul, the links rel="prev" and rel="next" to the pages around it in the order of the guide; bin/check keeps both navs in order. From 62rem, the nav of the guide takes a column on the left, and stays in view.
  • Lists of posts: ul > li > article, with a title h2 > a or h3 > a, a date p > time, and a description p. From 62rem, the list of the blog is set two posts abreast under the latest one, a proof on paper; on the home page, the panel of the latest post shows the sorts of the blog.
  • Posts: article > header (the h1, then p with the date and author), p[role="note"] for a note, article > footer. The design of the blog finds the list of posts by its structure, main:has(> ul > li > article), and a post by the date in its header, main > article:has(> header > p > time); from 34rem, the first letter of the first paragraph of the text, after the note and a title if there are, is set as an initial; from 62rem, a post is centred like a page of a book, its title on the forme and its column under it.
  • The 404: main holds the h1, a p, the same in Japanese, <p lang="ja">, and a ul of links, one of them to / and the last to /ja/; the design of the 404 finds it by that structure, main:has(> h1 + p + p + ul > li > a[href="/"]), and shows its ring, the empty setting, at 4 screen pixels per pixel, 6 from 62rem.
  • Pixelify Sans sets h1, the h2 of sections and posts, the site name, menus, gem names and short labels (eyebrows, buttons, the numbers of the guide's stations) and the initial of a post only, at multiples of 11px and its regular weight: at small sizes its C reads as an O. Titles in lists of posts, h3, dates and running text use the system font. Pixelify Sans holds Latin letters only: on a Japanese page, or a link in Japanese, the kana and kanji come from the system's sans serif rather than its monospace (--display under :lang(ja)), and a title, a subtitle, a caption, the line under the title of a page or a nav breaks between phrases, where the browser can (word-break: auto-phrase).
  • A page's h1 is extruded down and to the right in steps of 4px, never deeper than a pixel of the font and a half: one step up to 44px, where a pixel of the font is 4px at most and two steps would be twice as deep as a stroke; two at 66px; three from 88px. The sizes are those at the default size of 16px, and a title capped to its width keeps the steps of its size.
  • A reader's larger font stays on a phone of 320px without scrolling sideways. A title, a gem's name or a label of Pixelify Sans is capped to the width it has, min(SIZE, (WIDTH) / EM), where WIDTH is the column in cqw (the body is the container of its own width) less the margins around the text, and EM the width of the longest word it may hold, in em: at the default size of 16px, it only acts on the narrowest screens, where the word would not hold; where it acts, the size leaves the multiples of 11px. EM need not be measured again when a title changes: a title whose word is longer breaks inside it rather than widen the page. A layout that does not hold with a larger font changes below 19.99rem, a width that a screen of 320px or more only reaches when the reader's font is larger than 16px: a portrait goes above a name, a term above its value. The tables of outcomes are the exception: their five columns of whole words scroll with the page.
  • In forced colours, a page keeps its drawings and its signs, but the textures behind its text go, with the room left for them; a box whose edge is a shadow, which forced colours drop, takes an outline of CanvasText. Each page does so in its own @media (forced-colors: active) block, at the end of its section.
  • On paper, a page prints in the light theme with its dark slabs and bands, the colours exact. A title stays with what follows it; a box of facts, a figure, a group of gems of the home page and its cards, a matcher and the footer stay whole; a window of code or a terminal draws its title bar inside its box, so that the bar goes with its first lines; the two navs of the guide and the nav of a page's sections are not printed.
  • The drawings of the design are SVG files of img/ (shared by several pages) and gems/NAME/img/, loaded by style.css. They follow the rules of SVG files above, and are drawn on a grid: one unit of their viewBox per pixel, shown at 4 screen pixels per pixel, or 2 for icons and small signs.

Preview

python3 -m http.server 8000

Then open http://localhost:8000/. Pages use root-relative links, so opening a file directly does not load the stylesheet. ruby -run -e httpd . -p 8000 works as well once the webrick gem is installed.

Adding a post

  1. Write the page at /CATEGORIES/YYYY/MM/DD/SLUG.html, starting from an existing post, without the note about Fix 1.0. Its og:image is the card of the gem it is about, gems/NAME/img/card.png, or /card.png, and its og:image:alt describes that card.
  2. Add it at the top of blog/index.html and of the latest posts on index.html (three at most), and to sitemap.xml.
  3. Add an entry at the top of feed.xml: id is the URL without .html, as for the former posts. Update the feed's updated.
  4. Put its code in examples/.
  5. Write its translation at /ja/CATEGORIES/YYYY/MM/DD/SLUG.html, with its Japanese card, and add it to ja/blog/index.html, ja/index.html, sitemap.xml and ja/feed.xml, as above.
  6. Run bin/check --fix and bin/examples.

To update a post, change its updated in feed.xml, and the feed's if it is later, then run bin/check --fix: it is the post's date of modification in its structured data.

Adding a gem

Give it a card on index.html: in section#extensions if it extends Fix, in section#tools if it is a command to run rather than a library to build on, in section#libraries otherwise, right after the gem it extends, if any. Its description says which gems of the project it is built on, and its status which version is released or being prepared. Its icon.svg goes in the card's h4, before the name, at a whole number of screen pixels per pixel of the icon: 64 × 64 for a 32 × 32 icon, two per pixel, and 62 × 64 for matchi's; aw's, 104 pixels wide, at 64 × 64, smoothed. A gem without a page of its own, such as test_tube, still has its icon in gems/NAME/img/. Give it the same card, in Japanese, on ja/index.html.

Adding a gem page

Write gems/NAME/index.html from gems/matchi/index.html: what the gem does, how to install it, examples from examples/NAME/, the version the page documents, and links to its README, API reference and source at that version. Its nav, after the facts, lists its sections. Link it from the gem's card on index.html, and add it to sitemap.xml. Write its translation, ja/gems/NAME/index.html, with its Japanese card, card-ja.png, link it from ja/index.html, and add it to sitemap.xml too.

A gem may have its own drawing, illustration and icons, in gems/NAME/img/, which bin/check requires a page or style.css to use:

  • A pixel drawing, shown in the header with alt="", its width and height set to a whole number of screen pixels per pixel of the drawing: 4 for the jester of matchi, which style.css sets to 8 from 72rem, and for the movement of spectus, the letter of defi, the processes of fix-command, the loupe of fix-its and the pieces of matchi-fix, which style.css sets to 6 from 62rem (from 72rem for fix-command, fix-its and matchi-fix; for spectus, the movement and its balance alike); 2 for the hero of aw, whose pixels are finer. At 288 pixels wide at most, it keeps that size on a 320-pixel screen. Its pixels fall on whole units of its viewBox, which keeps every pixel whole on screen. Letters, if any, are set in Pixelify Sans, at its regular weight: its strokes are one pixel wide, where the bold of the titles is wider than a pixel.

  • card.png, 1200 × 630, the card shown where the gem's page is shared (the pages of the guide of Fix show Fix's): a drawing of the gem at a whole number of screen pixels per pixel (6 for the drawings of the headers, the hero at 4 for aw, the icon at 12 for brutal, the jester at 7 for matchi), beside its name in DejaVu Sans Mono Bold and a line about it in Inter, on paper, in the layout of the card of the home page. A post before Fix 1.0 has its own, img/card-SLUG.png: the sorts of the blog at 6, beside "Fixrb blog" and its title; Fix 1.0 shows Fix's. A card is drawn on paper, #fffef8, in ink, #211630: the drawing centred in the left 540 pixels, 40 from the edge at least; the text from 552 to 1144, centred in height. The name is at 144px, or less so that it holds on one line, and the line about it in Inter at 38px, 1.3 high, 28px below; for a post, "Fixrb blog" is in DejaVu Sans Mono Bold at 40px, in #b8123f, and its title in Inter Bold at 52px, 1.18 high, 24px below, broken after a colon. Then strip the file of anything but its image, for example with convert card.png -strip card.png. The card of the home page and the blog, card.png and img/card-ja.png, is the night of the home page's header instead: the stars and the crystals at 4 screen pixels per pixel, the duck at the foot of the tallest crystal, the logo at 12 on the right; "Fixrb" in Pixelify Sans at 176px, extruded in ruby, garnet and wine, and its line in Inter at 42px, broken after its colon, on the left. Fix's card is the night of its page's header: the stars at 4 screen pixels per pixel, the glow and the rock of the logo at 4 and the logo at 16, on the right, resting on a band of ink; "Fix" in Pixelify Sans at 264px, extruded in ruby, garnet and wine like the title of the page, and the line about it in Inter at 42px, on the left. Beside it are three more shapes, card-16x9.png (1200 × 675), card-4x3.png (1200 × 900, its line at 46px) and card-1x1.png (1200 × 1200, the glow and the logo at 5, under the text, its line at 50px), and their Japanese, card-ja-16x9.png and so on: bin/check puts the shapes beside a post's card in the image of its structured data, after the card, as Google asks of an article, and checks that each is in its ratio and at least 1200 pixels wide. The card of RSpec clone, built-with/rspec-clone/img/card.png and card-ja.png, is its scene without its words, drawn on 200 × 105 pixels at 6 screen pixels per pixel, the cat on the right; "RSpec clone" in Pixelify Sans at 150px, on two lines, extruded in the teal of its mark, and its line in Inter at 38px on a slab of the night, on the left. All these cards were written by Python scripts driving Chromium.

  • A PNG holds its image only: IHDR, PLTE and tRNS if any, IDAT and IEND. bin/check refuses any other chunk, such as the text an export writes or a C2PA manifest a transfer adds.

  • An illustration, if any, with an alt that says what it shows, and a figcaption. It may be a PNG, shown at half its width and height: a screen with 2 physical pixels per screen pixel then shows the file pixel for pixel, and style.css draws it with image-rendering: pixelated, which keeps it sharp at any other scale, at the cost of pixels one physical pixel wider than others. The scene of aw, 1206 × 726 and drawn at 3 pixels per pixel, is the screen of its page: 402 × 242 on a phone (cropped at the sides below 402px), 603 × 363 from 40rem and 804 × 484 from 56rem; the scene of brutal, 1280 × 960 at 4 pixels per pixel, is shown at 320 × 240 on a phone and 640 × 480 from 44rem; the scene of Fix, 1280 × 720 at 8 pixels per pixel, at 320 × 180 on a phone (smaller below 376px), 480 × 270 from 34rem and 640 × 360 from 44rem; the scene of RSpec clone, of the same size, is the picture of its header, at 320 × 180 on a phone (smaller below 368px), 480 × 270 from 34rem and 640 × 360 from 80rem, and of its panel on the home page, at 320 × 180, and 480 × 270 from 62rem.

  • favicon.ico, icon.svg and apple-touch-icon.png, which replace the site's three icons in the page's head; without them, the page uses the site's icons. The Apple icon is opaque, since iOS fills transparency with black, and keeps a margin for the rounded corners. For matchi, whose icon is 31 × 32 pixels drawn 8 times larger, it was exported with Inkscape at 4 screen pixels per pixel:

    LC_ALL=C inkscape gems/matchi/img/icon.svg \
      --export-area=-56:-48:304:312 --export-width=180 --export-height=180 \
      --export-background='#fffef8' --export-background-opacity=1 \
      --export-filename=gems/matchi/img/apple-touch-icon.png

    --export-area is in document pixels, not in units of the viewBox.

    The icon of aw, 104 × 104 pixels, fits in 180 only at one pixel per pixel: its Apple icon has that scale, with a margin of 38. Its favicon.ico holds images of 48, 32 and 16 pixels, each pixel the exact average of the pixels of the icon it covers. Both were written from icon.svg by a Python script, with the standard library only. icon.svg leaves out shape-rendering="crispEdges", which at 32 screen pixels would keep about one row and one column in three; hero.svg, shown at 2 screen pixels per pixel, keeps it.

    The icon of brutal is the lumberjack's face, 22 × 26 pixels cut out of the scene as they are, centered on a grid of 32 × 32: icon.svg has one unit of its viewBox per pixel, so that it is exact at 32 and 64 screen pixels; favicon.ico holds that image at 32 pixels, and at 16, each pixel the exact average of the four it covers; the Apple icon shows it at 6 pixels per pixel, with margins of 24 and 12. All three were written by a Python script, with the standard library only.

Adding what is built with Fixrb

A project that stands on the libraries of Fixrb without being one of its gems, such as RSpec clone, has its page at built-with/NAME/index.html, written as a gem page is, from built-with/rspec-clone/index.html: whose project it is and where its home is, what it is built on, an example from examples/NAME/, the version the page documents, and links to its own documentation. It has a panel in section#built of index.html, which links it, and its drawings in built-with/NAME/img/: its scene, its card and its Japanese card. Add it to sitemap.xml, write its translation at ja/built-with/NAME/index.html, with its panel on ja/index.html, and run bin/check --fix, which lists it in llms.txt under "Built with Fixrb". It is not listed among the gems, and its name is not that of a gem of Fixrb.

Releasing a gem

When a gem is released, update its card on index.html and ja/index.html (version and status) and its page and its translation (the version documented, and its links at that version), check that those links resolve, and run its examples against the release with bin/examples. The same goes for a project of built-with/, with its panel in place of the card.

The site gives the size of the code in a few places, which no check can measure, since the gems are not in this repository: the home page says each gem holds "a few hundred lines of code at most", the page of Fix gives its lines and the coverage of its tests in its facts, Questions gives fix-its in lines, and the page of RSpec clone, its card and its panel on the home page give its lines. Count them again for the release, and update what has changed, in English and in Japanese. A post keeps the figures of its day, such as "About three hundred lines of code" in the post of Fix 1.0.

Hosting

GitHub Pages serves fixrb.dev from the main branch, root folder: CNAME names the domain, and .nojekyll makes Pages serve the files as they are. The domain is verified for the fixrb organization (organization settings, Pages, verified domains), so that no other repository can claim it. It was served from docs/ in fixrb/fix, by Jekyll, until October 2026.

Pages publishes every push to main, checked or not. To publish only what passes bin/check, protect main in the repository settings: changes through pull requests, with the Check status required.

For search engines, fixrb.dev is to be a domain property in Google Search Console (a DNS TXT record) and in Bing Webmaster Tools (imported from Search Console), with https://fixrb.dev/sitemap.xml submitted to both.

IndexNow tells Bing, Yandex, Naver, Seznam and Yep which pages have changed; Google does not take part, and reads the sitemap. KEY.txt at the root holds the key, which the engines fetch to check a request: bin/check requires exactly one, holding its own name and nothing else, not even a line break. Once Pages has published a commit of main (the workflow pages build and deployment), the workflow IndexNow runs bin/indexnow, which lists the pages that commit adds, changes or deletes, and sends the list to api.indexnow.org; a push of several commits announces the pages of the last one. Run by hand, from the Actions tab, the workflow announces every page of the sitemap: do so once the key is first published. To change the key, replace the file, in a commit that bin/check accepts.

License

The site, its code and its text are released under the MIT License, like the gems, with two exceptions described below: the logo and the font.

Credits

  • Logo: fixrb/logo, public domain (CC0).

  • The jester of matchi (gems/matchi/img/): drawn by Cyril Kato, with its letters set in Pixelify Sans, under the MIT License like the rest of the site.

  • The scene and the hero of aw (gems/aw/img/): scene.png is img/aw.png, the pixel-art illustration of aw's README, as it is; the hero comes from the same source, redrawn as SVG on a grid of 104 × 104 pixels, one unit of its viewBox per pixel. Both are under the MIT License like the rest of the site.

  • The scene and the icons of brutal (gems/brutal/img/): scene.png is img/brutal-driven-development.png, the pixel-art illustration of brutal's README, 320 × 240 pixels drawn at 4 pixels per pixel, written again as a paletted PNG holding the image only (IHDR, PLTE, IDAT, IEND), pixel for pixel the same, and shown at 640 × 480; the icons are the lumberjack's face, cut out of it. Under the MIT License like the rest of the site.

  • The scene of RSpec clone (built-with/rspec-clone/img/): "What did you RSpec?" is the joke of the illustration of RSpec clone's README, img/what-did-you-rspec.jpg, by Cyril Kato. Its words are kept; the cat, its glass and its bottle were drawn anew for this site, as pixel art, and the mark is the logo of RSpec clone, on a grid of 11 × 10 pixels. Under the MIT License like the rest of the site.

  • Pixelify Sans by Stefie Justprince, under the SIL Open Font License 1.1 (fonts/OFL.txt). fonts/pixelify-sans.woff2 is a subset of PixelifySans[wght].ttf from google/fonts (SHA-256 9ba86cd010a4de309d263ceff8e8044092c9db7efda869620cb9ff1c4389e8a5), made with:

    pyftsubset "PixelifySans[wght].ttf" \
      --unicodes="U+0020-007E,U+00A0-00FF,U+2013-2014,U+2018-201A,U+201C-201E,U+2022,U+2026,U+2039-203A" \
      --layout-features=kern --flavor=woff2 --output-file=fonts/pixelify-sans.woff2

    Only kerning is kept: the font's fi ligature looks like an A at small sizes.

  • The drawings of the site's design (img/, the icons of the gems that had none, and the decors of gems/matchi/img/, gems/aw/img/, gems/brutal/img/, gems/fix/img/, gems/spectus/img/, gems/defi/img/, gems/fix-command/img/, gems/fix-its/img/ and gems/matchi-fix/img/, the scene and the cards of Fix, the card of the home page, the drawings of built-with/rspec-clone/img/, but for the drawings credited above): drawn with Claude, Anthropic's AI model, for this site in November 2026, under the MIT License like the rest of the site. The scene of brutal and the hero of aw lend them their colours.

About

Fixrb website.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages