From 4f1e9758d1a6e079d543ef6909e3983f5f76f587 Mon Sep 17 00:00:00 2001 From: Afr Schoe <58883403+q9f@users.noreply.github.com> Date: Wed, 29 Sep 2021 11:54:48 +0200 Subject: [PATCH] docs: regenerate crystal documentation (#15) --- docs/Rlp.html | 93 +++++++-------- docs/Rlp/RecursiveArray.html | 51 ++++---- docs/Rlp/Util.html | 97 +++++++-------- docs/css/style.css | 62 +++++++++- docs/index.html | 61 ++++++---- docs/index.json | 2 +- docs/js/doc.js | 225 +++++++++++++++++++++++------------ docs/search-index.js | 2 +- 8 files changed, 351 insertions(+), 242 deletions(-) diff --git a/docs/Rlp.html b/docs/Rlp.html index 96dd937..94be653 100644 --- a/docs/Rlp.html +++ b/docs/Rlp.html @@ -3,54 +3,65 @@ - + + + + + - - - - Rlp - github.com/q9f/rlp.cr + + Rlp - rlp 0.1.7-dev + @@ -423,15 +420,13 @@

  • l (Array): the nested Array data to encode.
-
Rlp.encode [[""], [""]]
+
Rlp.encode [[""], [""]]
 # => Bytes[196, 193, 128, 193, 128]

- [View source] -
@@ -451,15 +446,13 @@

  • s (String): the String literal to encode.
-
Rlp.encode "dog"
+
Rlp.encode "dog"
 # => Bytes[131, 100, 111, 103]

- [View source] -
@@ -479,15 +472,13 @@

  • i (Int): the scalar Int number to encode.
-
Rlp.encode 1_000_000
+
Rlp.encode 1_000_000
 # => Bytes[131, 15, 66, 64]

- [View source] -
@@ -507,15 +498,13 @@

  • c (Char): the Char character to encode.
-
Rlp.encode 'x'
+
Rlp.encode 'x'
 # => Bytes[120]

- [View source] -
@@ -535,15 +524,13 @@

  • o (Bool): the boolean Bool value to encode.
-
Rlp.encode true
+
Rlp.encode true
 # => Bytes[1]

- [View source] -
diff --git a/docs/Rlp/RecursiveArray.html b/docs/Rlp/RecursiveArray.html index b71c731..47fb77b 100644 --- a/docs/Rlp/RecursiveArray.html +++ b/docs/Rlp/RecursiveArray.html @@ -3,54 +3,65 @@ - + + + + + - - - - Rlp::RecursiveArray - github.com/q9f/rlp.cr + + Rlp::RecursiveArray - rlp 0.1.7-dev +

TODO The recursive alias might be deprecated in future, -ref: crystal-lang/crystal#5155. +ref: crystal-lang/crystal#5155. it's worth considering a custom struct holding a @data property of type String | Bytes | Array(RecursiveArray) and forward missing methods, -ref: crystal-lang/crystal#8719.

+ref: crystal-lang/crystal#8719.

@@ -132,9 +143,7 @@

- - array.cr - + array.cr
diff --git a/docs/Rlp/Util.html b/docs/Rlp/Util.html index 298ce0d..57f9b2d 100644 --- a/docs/Rlp/Util.html +++ b/docs/Rlp/Util.html @@ -3,54 +3,65 @@ - + + + + + - - - - Rlp::Util - github.com/q9f/rlp.cr + + Rlp::Util - rlp 0.1.7-dev + @@ -336,8 +341,6 @@


- [View source] -
@@ -357,15 +360,13 @@

  • b (Bytes): the binary Bytes data to convert.
-
Rlp::Util.bin_to_str Bytes[97, 98, 99]
+
Rlp::Util.bin_to_str Bytes[97, 98, 99]
 # => "abc"

- [View source] -
@@ -389,8 +390,6 @@


- [View source] -
@@ -406,7 +405,7 @@

Concatenates two Bytes slices of UInt8.

-
a = Bytes[131]
+
a = Bytes[131]
 b = Bytes[97, 98, 99]
 Rlp::Util.binary_add a, b
 # => Bytes[131, 97, 98, 99]
@@ -415,8 +414,6 @@


- [View source] -
@@ -436,15 +433,13 @@

  • h (String): the hex-encoded String to convert.
-
Rlp::Util.hex_to_bin "04c81d"
+
Rlp::Util.hex_to_bin "04c81d"
 # => Bytes[4, 200, 29]

- [View source] -
@@ -464,15 +459,13 @@

  • h (String): the hex-encoded String to convert.
-
Rlp::Util.hex_to_int "04c81d"
+
Rlp::Util.hex_to_int "04c81d"
 # => 313373

- [View source] -
@@ -492,15 +485,13 @@

  • h (String): the hex-encoded String to convert.
-
Rlp::Util.hex_to_str "646f67"
+
Rlp::Util.hex_to_str "646f67"
 # => "dog"

- [View source] -
@@ -520,15 +511,13 @@

  • i (Int): the integer to convert.
-
Rlp::Util.int_to_bin 1_000_000
+
Rlp::Util.int_to_bin 1_000_000
 # => Bytes[15, 66, 64]

- [View source] -
@@ -548,15 +537,13 @@

  • i (Int): the integer to convert.
-
Rlp::Util.int_to_hex 313_373
+
Rlp::Util.int_to_hex 313_373
 # => "04c81d"

- [View source] -
@@ -576,15 +563,13 @@

  • s (String): the String literal to convert.
-
Rlp::Util.str_to_bin "abc"
+
Rlp::Util.str_to_bin "abc"
 # => Bytes[97, 98, 99]

- [View source] -
@@ -604,15 +589,13 @@

  • s (String): the String literal to convert.
-
Rlp::Util.str_to_hex "dog"
+
Rlp::Util.str_to_hex "dog"
 # => "646f67"

- [View source] -
diff --git a/docs/css/style.css b/docs/css/style.css index a63baf5..20bb084 100644 --- a/docs/css/style.css +++ b/docs/css/style.css @@ -56,10 +56,11 @@ body { padding: 0 0 30px; box-shadow: inset -3px 0 4px rgba(0,0,0,.35); line-height: 1.2; + z-index: 0; } .sidebar .search-box { - padding: 8px 9px; + padding: 13px 9px; } .sidebar input { @@ -106,6 +107,55 @@ body { text-indent: 2px; } +.project-summary { + padding: 9px 15px 30px 30px; +} + +.project-name { + font-size: 1.4rem; + margin: 0; + color: #f4f4f4; + font-weight: 600; +} + +.project-version { + margin-top: 5px; + display: inline-block; + position: relative; +} + +.project-version > form::after { + position: absolute; + right: 0; + top: 0; + content: "\25BC"; + font-size: .6em; + line-height: 1.2rem; + z-index: -1; +} + +.project-versions-nav { + cursor: pointer; + margin: 0; + padding: 0 .9em 0 0; + border: none; + -moz-appearance: none; + -webkit-appearance: none; + appearance: none; + background-color: transparent; + color: inherit; + font-family: inherit; + font-size: inherit; + line-height: inherit; +} +.project-versions-nav:focus { + outline: none; +} + +.project-versions-nav > option { + color: initial; +} + .sidebar ul { margin: 0; padding: 0; @@ -148,10 +198,6 @@ body { color: #866BA6; } -.repository-links { - padding: 5px 15px 5px 30px; -} - .types-list li ul { overflow: hidden; height: 0; @@ -414,6 +460,12 @@ span.flag.purple { border-color: #1F0B37; } +span.flag.lime { + background-color: #a3ff00; + color: #222222; + border-color: #00ff1e; +} + .tooltip>span { position: absolute; opacity: 0; diff --git a/docs/index.html b/docs/index.html index 944e3a9..97095a7 100644 --- a/docs/index.html +++ b/docs/index.html @@ -3,54 +3,65 @@ - + + + + + - - - - README - github.com/q9f/rlp.cr + + rlp 0.1.7-dev +