From 6d54e8fc3c41247dc3fa5bd399733b629e9d621d Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Wed, 9 Oct 2019 18:08:11 -0400 Subject: [PATCH] generated docs: render values also fix pressing enter in search box before search finishes closes #3409 --- lib/std/math.zig | 3 + lib/std/special/docs/index.html | 9 +- lib/std/special/docs/main.js | 159 +++++++++++++++++++++++--------- 3 files changed, 127 insertions(+), 44 deletions(-) diff --git a/lib/std/math.zig b/lib/std/math.zig index e47021512e..ee30cb9758 100644 --- a/lib/std/math.zig +++ b/lib/std/math.zig @@ -4,7 +4,10 @@ const TypeId = builtin.TypeId; const assert = std.debug.assert; const testing = std.testing; +/// Euler's number (e) pub const e = 2.71828182845904523536028747135266249775724709369995; + +/// Archimedes' constant (π) pub const pi = 3.14159265358979323846264338327950288419716939937510; // From a small c++ [program using boost float128](https://github.com/winksaville/cpp_boost_float128) diff --git a/lib/std/special/docs/index.html b/lib/std/special/docs/index.html index e7a57137e5..ec226f220b 100644 --- a/lib/std/special/docs/index.html +++ b/lib/std/special/docs/index.html @@ -156,7 +156,7 @@ font-weight: bold; } - #sectGlobalVars td, #sectFns td, #sectFields td { + td { vertical-align: top; margin: 0; padding: 0.5em; @@ -338,6 +338,13 @@ +