From 27de747eca027bfafb24703c53e1addce8adf959 Mon Sep 17 00:00:00 2001 From: Abe Pazos Date: Wed, 6 Mar 2024 22:12:58 +0100 Subject: [PATCH] Update docs --- docs/Gemfile.lock | 13 +++++++------ docs/_sass/custom/custom.scss | 6 ++++++ docs/interaction/Events.markdown | 12 ++++++------ 3 files changed, 19 insertions(+), 12 deletions(-) diff --git a/docs/Gemfile.lock b/docs/Gemfile.lock index b14c6845..1c314a79 100644 --- a/docs/Gemfile.lock +++ b/docs/Gemfile.lock @@ -1,7 +1,7 @@ GEM remote: https://rubygems.org/ specs: - addressable (2.8.4) + addressable (2.8.6) public_suffix (>= 2.0.2, < 6.0) colorator (1.1.0) concurrent-ruby (1.2.3) @@ -11,7 +11,7 @@ GEM eventmachine (1.2.7) ffi (1.16.3) forwardable-extended (2.6.0) - google-protobuf (3.23.4-x86_64-linux) + google-protobuf (3.25.3-x86_64-linux) http_parser.rb (0.8.0) i18n (1.14.3) concurrent-ruby (~> 1.0) @@ -50,8 +50,9 @@ GEM jekyll-watch (2.2.1) listen (~> 3.0) json (2.7.1) - just-the-docs (0.5.4) + just-the-docs (0.8.0) jekyll (>= 3.8.5) + jekyll-include-cache jekyll-seo-tag (>= 2.0) rake (>= 12.3.1) kramdown (2.4.0) @@ -65,9 +66,9 @@ GEM mercenary (0.4.0) pathutil (0.16.2) forwardable-extended (~> 2.6) - public_suffix (5.0.3) + public_suffix (5.0.4) racc (1.7.3) - rake (13.0.6) + rake (13.1.0) rb-fsevent (0.11.2) rb-inotify (0.10.1) ffi (~> 1.0) @@ -75,7 +76,7 @@ GEM rouge (4.2.0) rubyzip (2.3.2) safe_yaml (1.0.5) - sass-embedded (1.64.1-x86_64-linux-gnu) + sass-embedded (1.69.5-x86_64-linux-gnu) google-protobuf (~> 3.23) terminal-table (3.0.2) unicode-display_width (>= 1.1.1, < 3) diff --git a/docs/_sass/custom/custom.scss b/docs/_sass/custom/custom.scss index 3608c7e1..3631ba1b 100644 --- a/docs/_sass/custom/custom.scss +++ b/docs/_sass/custom/custom.scss @@ -78,6 +78,12 @@ div.highlighter-rouge code { background-color: #F4F4F4; } +/* Valid code highlighted as error. Disable */ +div.highlighter-rouge span.err { + color: black; + background-color: transparent; +} + a:not([class]) { text-decoration-color: rgb(255, 192, 203); text-decoration-thickness: 0.14em; diff --git a/docs/interaction/Events.markdown b/docs/interaction/Events.markdown index 6d1f1a52..210cdbe9 100644 --- a/docs/interaction/Events.markdown +++ b/docs/interaction/Events.markdown @@ -4,7 +4,7 @@ layout: default title: Events parent: Interaction -last_modified_at: 2024.03.06 16:20:27 +0100 +last_modified_at: 2024.03.06 22:01:40 +0100 nav_order: 90 has_children: false --- @@ -158,15 +158,15 @@ triggered due to external causes (loading a file from the Internet and waiting for its completion or an event coming from a hardware input device). -This will become apparent when we fail to draw on our window: - -``` +This will become apparent when we fail to draw on our window: + +```kotlin blob.doneWaiting.listen { drawer.clear(ColorRGBa.WHITE) // <-- will not work println("done waiting") } -``` - +``` + The solution is simple though: when constructing the `Event`, we set the `postpone` argument to true: