From 0bbf6661f28d6eff112d4afa9f5265511ee6c8d6 Mon Sep 17 00:00:00 2001 From: Shravan Goswami Date: Sun, 27 Apr 2025 11:05:37 +0530 Subject: [PATCH 1/2] updated libraries page --- library/index.qmd | 79 +++++++++++++++++++++++++++++++++++++++-- library/main.yml | 5 +-- library/table.ejs | 22 ++++++++---- theming/theme-dark.scss | 33 +++++++++++++++++ 4 files changed, 128 insertions(+), 11 deletions(-) diff --git a/library/index.qmd b/library/index.qmd index f5bf26d8b..348f69bac 100644 --- a/library/index.qmd +++ b/library/index.qmd @@ -3,8 +3,83 @@ title: "Turing Libraries" search: false toc: false include-in-header: - - text: | - + - text: | + + + + + listing: - id: libraries-main template: table.ejs diff --git a/library/main.yml b/library/main.yml index 5af4ecd8e..96c8e79c5 100644 --- a/library/main.yml +++ b/library/main.yml @@ -83,10 +83,11 @@ description: "Convenient callbacks for sampling in Turing.jl" category: utilities - name: TuringBenchmarking - api: https://turinglang.org/TuringBenchmarking.jl/ - github: https://github.com/TuringLang/TuringBenchmarking.jl + api: https://turinglang.org/deprecated/TuringBenchmarking/ + github: https://github.com/TuringLang/deprecated/tree/main/TuringBenchmarking description: "Tools to benchmark and check Turing models" category: utilities + status: deprecated - name: MCMCChains api: https://turinglang.org/MCMCChains.jl/ diff --git a/library/table.ejs b/library/table.ejs index 8fd036bfd..ad13b3904 100644 --- a/library/table.ejs +++ b/library/table.ejs @@ -1,14 +1,22 @@ - +
+
+ + + + + + + + <% for (const item of items) { %> - -<% if (item.api !== "") { %> - -<% } %> - - + + + + <% } %>
PackageAPIGitHubDescription
<%- item.name %>APIGitHub<%- item.description %><%- item.name %><% if(item.status==="deprecated"){ %>Deprecated<% } %><% if(item.api){ %>API<% } else { %>—<% } %>GitHub<%- item.description %>
+ diff --git a/theming/theme-dark.scss b/theming/theme-dark.scss index caa2c5b29..d58195ce5 100644 --- a/theming/theme-dark.scss +++ b/theming/theme-dark.scss @@ -137,3 +137,36 @@ p { --bs-tooltip-color: $black !important; --bs-tooltip-bg: $white !important; } + +// table background & text +.packages-table { + background-color: $background-body !important; + color: $li !important; +} + +// cell borders +.packages-table th, +.packages-table td { + border-bottom-color: $gray-700 !important; +} + +// header row +.packages-table thead { + background-color: $gray-800 !important; +} + +// zebra stripes +.packages-table tbody tr:nth-child(odd) { + background-color: darken($background-body, 5%) !important; +} + +// hover state +.packages-table tbody tr:hover { + background-color: lighten($background-nav, 5%) !important; +} + +// “Deprecated” badge styling +.badge.deprecated { + color: $white !important; + background-color: $red !important; +} \ No newline at end of file From 348bb1f2787defab53cc82517f5d3f4e5b9d1383 Mon Sep 17 00:00:00 2001 From: Shravan Goswami Date: Mon, 5 May 2025 12:47:17 +0530 Subject: [PATCH 2/2] Updated Libraries page look + added Deprecation label --- library/index.qmd | 25 ------------------------- library/main.yml | 4 ++-- theming/theme-dark.scss | 6 +++--- 3 files changed, 5 insertions(+), 30 deletions(-) diff --git a/library/index.qmd b/library/index.qmd index 348f69bac..f6cc00435 100644 --- a/library/index.qmd +++ b/library/index.qmd @@ -55,31 +55,6 @@ include-in-header: border-radius: 0.2em; } - - listing: - id: libraries-main template: table.ejs diff --git a/library/main.yml b/library/main.yml index 96c8e79c5..699c4286c 100644 --- a/library/main.yml +++ b/library/main.yml @@ -83,8 +83,8 @@ description: "Convenient callbacks for sampling in Turing.jl" category: utilities - name: TuringBenchmarking - api: https://turinglang.org/deprecated/TuringBenchmarking/ - github: https://github.com/TuringLang/deprecated/tree/main/TuringBenchmarking + api: https://turinglang.org/Deprecated/TuringBenchmarking/ + github: https://github.com/TuringLang/Deprecated/tree/main/TuringBenchmarking description: "Tools to benchmark and check Turing models" category: utilities status: deprecated diff --git a/theming/theme-dark.scss b/theming/theme-dark.scss index d58195ce5..9c4361b91 100644 --- a/theming/theme-dark.scss +++ b/theming/theme-dark.scss @@ -147,17 +147,17 @@ p { // cell borders .packages-table th, .packages-table td { - border-bottom-color: $gray-700 !important; + border-bottom-color: $gray-900 !important; } // header row .packages-table thead { - background-color: $gray-800 !important; + background-color: $gray-900 !important; } // zebra stripes .packages-table tbody tr:nth-child(odd) { - background-color: darken($background-body, 5%) !important; + background-color: darken($gray-900, 5%) !important; } // hover state