From 6c6392633329c3654498409d2b02c16c3f5f9dc7 Mon Sep 17 00:00:00 2001 From: Sam K Date: Tue, 7 Jan 2025 16:33:41 +1100 Subject: [PATCH 1/3] Autodoc: display line numbers in source code display --- lib/docs/index.html | 18 +++++++++++++++++- lib/docs/main.js | 9 +++++++++ lib/docs/wasm/html_render.zig | 14 ++++++++++++++ lib/docs/wasm/main.zig | 11 +++++++++++ 4 files changed, 51 insertions(+), 1 deletion(-) diff --git a/lib/docs/index.html b/lib/docs/index.html index e60a3f960a..75c0daf797 100644 --- a/lib/docs/index.html +++ b/lib/docs/index.html @@ -40,6 +40,15 @@ code a { color: #000000; } + .source-code { + display: grid; + grid-template-columns: auto 1fr; + align-items: start; + } + .source-line-numbers pre { + text-align: right; + color: #666; + } #listFields > div, #listParams > div { margin-bottom: 1em; } @@ -429,7 +438,14 @@