From 5be1da437bca1d938f5c6dfc266e491d591e6a8c Mon Sep 17 00:00:00 2001 From: tannevaled Date: Thu, 8 Oct 2026 09:38:07 +0200 Subject: [PATCH] Icons on the buttons, saying what each one does Every button now carries an Octicons glyph chosen by what it does: GitHub's mark for GitHub, a book for documentation and references, a rocket for getting started, a graph for benchmarks, a package for modules, a globe for a live demo, and an external-link arrow otherwise. The glyphs come from primer/octicons @primer/octicons-react@19.40.0, copied verbatim and not redrawn. Their MIT licence travels in layouts/partials/icons/OCTICONS-LICENSE. They are drawn in currentColor, so they follow the button in light and dark, and they are aria-hidden, since the text already says where each button leads. One CSS rule beside .btn aligns them. Co-Authored-By: Claude Opus 5.5 (1M context) --- layouts/_default/list.html | 2 +- layouts/index.html | 8 ++++---- layouts/partials/icons/OCTICONS-LICENSE | 21 +++++++++++++++++++++ layouts/partials/icons/graph.html | 5 +++++ layouts/partials/icons/mark-github.html | 5 +++++ layouts/partials/icons/rocket.html | 5 +++++ layouts/partials/styles.html | 1 + 7 files changed, 42 insertions(+), 5 deletions(-) create mode 100644 layouts/partials/icons/OCTICONS-LICENSE create mode 100644 layouts/partials/icons/graph.html create mode 100644 layouts/partials/icons/mark-github.html create mode 100644 layouts/partials/icons/rocket.html diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 5d039f4..36d54e1 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -13,7 +13,7 @@ go-embedded-ruby logo go-embedded-ruby {{ partial "theme-toggle.html" . }} - GitHub + {{ partial "icons/mark-github.html" . }}GitHub
diff --git a/layouts/index.html b/layouts/index.html index 112b07d..0e0391a 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -13,7 +13,7 @@ go-embedded-ruby logo go-embedded-ruby {{ partial "theme-toggle.html" . }} - GitHub + {{ partial "icons/mark-github.html" . }}GitHub
@@ -21,8 +21,8 @@

A Ruby you can embed,
written in Go.

go-embedded-ruby (rbgo) is a from-scratch Ruby — lexer, parser, compiler, bytecode VM and an AOT backend — that embeds in any Go program and cross-compiles to a single CGO-free binary. Built in the open as a digital common (commun numérique), free to use, study, modify and share under the BSD-3-Clause licence.

22,488 ruby/spec language/+core/ examples passing~100% of real Ruby parsed6 64-bit arches
@@ -98,7 +98,7 @@

Lexer to AOT, in nine phases.

Ruby that ships like Go.

One binary. Six architectures. No cgo, no runtime to install. Embed a real Ruby — or compile it away. Open infrastructure, governed as a commons.

- Read the source on GitHub → + {{ partial "icons/mark-github.html" . }}Read the source on GitHub →
diff --git a/layouts/partials/icons/OCTICONS-LICENSE b/layouts/partials/icons/OCTICONS-LICENSE new file mode 100644 index 0000000..aa1fa80 --- /dev/null +++ b/layouts/partials/icons/OCTICONS-LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2026 GitHub Inc. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/layouts/partials/icons/graph.html b/layouts/partials/icons/graph.html new file mode 100644 index 0000000..ed54531 --- /dev/null +++ b/layouts/partials/icons/graph.html @@ -0,0 +1,5 @@ +{{- /* Octicons "graph" (16 px), primer/octicons @primer/octicons-react@19.40.0, copied verbatim, MIT, + (c) GitHub Inc.: the licence is OCTICONS-LICENSE beside this file. + currentColor follows the button in light and dark; aria-hidden, since + the button's text already says where it leads. */ -}} + \ No newline at end of file diff --git a/layouts/partials/icons/mark-github.html b/layouts/partials/icons/mark-github.html new file mode 100644 index 0000000..17fc355 --- /dev/null +++ b/layouts/partials/icons/mark-github.html @@ -0,0 +1,5 @@ +{{- /* Octicons "mark-github" (16 px), primer/octicons @primer/octicons-react@19.40.0, copied verbatim, MIT, + (c) GitHub Inc.: the licence is OCTICONS-LICENSE beside this file. + currentColor follows the button in light and dark; aria-hidden, since + the button's text already says where it leads. */ -}} + \ No newline at end of file diff --git a/layouts/partials/icons/rocket.html b/layouts/partials/icons/rocket.html new file mode 100644 index 0000000..b4afed6 --- /dev/null +++ b/layouts/partials/icons/rocket.html @@ -0,0 +1,5 @@ +{{- /* Octicons "rocket" (16 px), primer/octicons @primer/octicons-react@19.40.0, copied verbatim, MIT, + (c) GitHub Inc.: the licence is OCTICONS-LICENSE beside this file. + currentColor follows the button in light and dark; aria-hidden, since + the button's text already says where it leads. */ -}} + \ No newline at end of file diff --git a/layouts/partials/styles.html b/layouts/partials/styles.html index 6d69ca3..2e338a8 100644 --- a/layouts/partials/styles.html +++ b/layouts/partials/styles.html @@ -67,6 +67,7 @@ .theme-toggle:hover{border-color:var(--ghost-border-hover)} .btn{display:inline-flex;align-items:center;gap:8px;font-weight:700;font-size:14px;padding:11px 18px; border-radius:12px;border:1px solid transparent;transition:.15s} + .btn .icon{flex:none} .btn-primary{background:var(--grad);color:#fff;box-shadow:0 10px 24px -10px rgba(220,38,38,.7)} .btn-primary:hover{transform:translateY(-1px)} .btn-ghost{border-color:var(--line);color:var(--ink);background:var(--surface-2)}