diff --git a/_freeze/pages/gallery/data/index/execute-results/html.json b/_freeze/pages/gallery/data/index/execute-results/html.json index 5271dc1..9a41c79 100644 --- a/_freeze/pages/gallery/data/index/execute-results/html.json +++ b/_freeze/pages/gallery/data/index/execute-results/html.json @@ -1,7 +1,7 @@ { - "hash": "b4ac290b96731cfe879ad2ccd17ff855", + "hash": "5e6240f4b7b5581f4b1413ec87bb9381", "result": { - "markdown": "---\npagetitle: \"Data\"\ndescription: |\n A table of datasets that have been published through the openwashdata \n community or are currently in development. \neditor_options: \n chunk_output_type: console\nexecute: \n echo: false\n warning: false\n---\n\n\n## Data\n\nThe table on this pages shows data that is published following our R data package workflow. Each data set comes with its own website and rich documentation to increase reusability. \n\n\n::: {.cell}\n\n:::\n\n::: {.cell}\n::: {.cell-output-display}\n| id|name |status |description |published |website |\n|--:|:---------|:-----------|:---------------------------------------------------------------------------------|:---------|:-------------------------------------------|\n| 1|[fsmglobal]()|published |Populations of 175 countries requiring different faecal sludge emptying services. |NA | |\n| 2|[NA](NA) |in-progress |NA |NA |NA |\n| 3|[NA](NA) |backlog |NA |NA |NA |\n:::\n:::\n", + "markdown": "---\npagetitle: \"Data\"\ndescription: |\n A table of datasets that have been published through the openwashdata \n community or are currently in development. \neditor_options: \n chunk_output_type: console\nexecute: \n echo: false\n warning: false\n---\n\n::: {.cell}\n\n:::\n\n\n\n## Data\n\nThe table on this pages shows data that is published following our R data package workflow. Each data set comes with its own website and rich documentation to increase reusability. \n\n\n::: {.cell}\n\n:::\n\n\n:::{.column-page}\n\n::: {.cell}\n::: {.cell-output-display}\n| id|name |status |description |published |website |\n|--:|:----------------------|:----------|:--------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:--------------|:---------------------------------------------------|\n| 1|wasteskipsblantyre |published |Data on locations of the publicly accessible waste skips in Blantyre, Malawi collected in 2021. |02. August 2023||\n| 2|fsmglobal |published |Populations of 175 countries requiring different faecal sludge emptying services. |02. August 2023| |\n| 3|cbssuitabilityhaiti |[in-progress]()|Spatial data to support an analysis of suitability of container-based sanitation in flood prone areas of Haiti. | | |\n| 4|dryingfaecal |[in-progress]()|Engineering experiments related to drying of faecal sludge from on-site sanitation facilities and fresh faeces. | | |\n| 5|climatevulnerabilitykhm|[in-progress]()|Data on Effects of Climate Vulnerability on Sanitation Access, Sanitation Infrastructure Functionality and Households’ Fecal Sludge Management Practices in Rural Cambodia.| | |\n:::\n:::\n\n\n:::\n\n\n\n", "supporting": [], "filters": [ "rmarkdown/pagebreak.lua" diff --git a/_freeze/site_libs/kePrint-0.0.1/kePrint.js b/_freeze/site_libs/kePrint-0.0.1/kePrint.js new file mode 100644 index 0000000..e6fbbfc --- /dev/null +++ b/_freeze/site_libs/kePrint-0.0.1/kePrint.js @@ -0,0 +1,8 @@ +$(document).ready(function(){ + if (typeof $('[data-toggle="tooltip"]').tooltip === 'function') { + $('[data-toggle="tooltip"]').tooltip(); + } + if ($('[data-toggle="popover"]').popover === 'function') { + $('[data-toggle="popover"]').popover(); + } +}); diff --git a/_freeze/site_libs/lightable-0.0.1/lightable.css b/_freeze/site_libs/lightable-0.0.1/lightable.css new file mode 100644 index 0000000..3be3be9 --- /dev/null +++ b/_freeze/site_libs/lightable-0.0.1/lightable.css @@ -0,0 +1,272 @@ +/*! + * lightable v0.0.1 + * Copyright 2020 Hao Zhu + * Licensed under MIT (https://github.com/haozhu233/kableExtra/blob/master/LICENSE) + */ + +.lightable-minimal { + border-collapse: separate; + border-spacing: 16px 1px; + width: 100%; + margin-bottom: 10px; +} + +.lightable-minimal td { + margin-left: 5px; + margin-right: 5px; +} + +.lightable-minimal th { + margin-left: 5px; + margin-right: 5px; +} + +.lightable-minimal thead tr:last-child th { + border-bottom: 2px solid #00000050; + empty-cells: hide; + +} + +.lightable-minimal tbody tr:first-child td { + padding-top: 0.5em; +} + +.lightable-minimal.lightable-hover tbody tr:hover { + background-color: #f5f5f5; +} + +.lightable-minimal.lightable-striped tbody tr:nth-child(even) { + background-color: #f5f5f5; +} + +.lightable-classic { + border-top: 0.16em solid #111111; + border-bottom: 0.16em solid #111111; + width: 100%; + margin-bottom: 10px; + margin: 10px 5px; +} + +.lightable-classic tfoot tr td { + border: 0; +} + +.lightable-classic tfoot tr:first-child td { + border-top: 0.14em solid #111111; +} + +.lightable-classic caption { + color: #222222; +} + +.lightable-classic td { + padding-left: 5px; + padding-right: 5px; + color: #222222; +} + +.lightable-classic th { + padding-left: 5px; + padding-right: 5px; + font-weight: normal; + color: #222222; +} + +.lightable-classic thead tr:last-child th { + border-bottom: 0.10em solid #111111; +} + +.lightable-classic.lightable-hover tbody tr:hover { + background-color: #F9EEC1; +} + +.lightable-classic.lightable-striped tbody tr:nth-child(even) { + background-color: #f5f5f5; +} + +.lightable-classic-2 { + border-top: 3px double #111111; + border-bottom: 3px double #111111; + width: 100%; + margin-bottom: 10px; +} + +.lightable-classic-2 tfoot tr td { + border: 0; +} + +.lightable-classic-2 tfoot tr:first-child td { + border-top: 3px double #111111; +} + +.lightable-classic-2 caption { + color: #222222; +} + +.lightable-classic-2 td { + padding-left: 5px; + padding-right: 5px; + color: #222222; +} + +.lightable-classic-2 th { + padding-left: 5px; + padding-right: 5px; + font-weight: normal; + color: #222222; +} + +.lightable-classic-2 tbody tr:last-child td { + border-bottom: 3px double #111111; +} + +.lightable-classic-2 thead tr:last-child th { + border-bottom: 1px solid #111111; +} + +.lightable-classic-2.lightable-hover tbody tr:hover { + background-color: #F9EEC1; +} + +.lightable-classic-2.lightable-striped tbody tr:nth-child(even) { + background-color: #f5f5f5; +} + +.lightable-material { + min-width: 100%; + white-space: nowrap; + table-layout: fixed; + font-family: Roboto, sans-serif; + border: 1px solid #EEE; + border-collapse: collapse; + margin-bottom: 10px; +} + +.lightable-material tfoot tr td { + border: 0; +} + +.lightable-material tfoot tr:first-child td { + border-top: 1px solid #EEE; +} + +.lightable-material th { + height: 56px; + padding-left: 16px; + padding-right: 16px; +} + +.lightable-material td { + height: 52px; + padding-left: 16px; + padding-right: 16px; + border-top: 1px solid #eeeeee; +} + +.lightable-material.lightable-hover tbody tr:hover { + background-color: #f5f5f5; +} + +.lightable-material.lightable-striped tbody tr:nth-child(even) { + background-color: #f5f5f5; +} + +.lightable-material.lightable-striped tbody td { + border: 0; +} + +.lightable-material.lightable-striped thead tr:last-child th { + border-bottom: 1px solid #ddd; +} + +.lightable-material-dark { + min-width: 100%; + white-space: nowrap; + table-layout: fixed; + font-family: Roboto, sans-serif; + border: 1px solid #FFFFFF12; + border-collapse: collapse; + margin-bottom: 10px; + background-color: #363640; +} + +.lightable-material-dark tfoot tr td { + border: 0; +} + +.lightable-material-dark tfoot tr:first-child td { + border-top: 1px solid #FFFFFF12; +} + +.lightable-material-dark th { + height: 56px; + padding-left: 16px; + padding-right: 16px; + color: #FFFFFF60; +} + +.lightable-material-dark td { + height: 52px; + padding-left: 16px; + padding-right: 16px; + color: #FFFFFF; + border-top: 1px solid #FFFFFF12; +} + +.lightable-material-dark.lightable-hover tbody tr:hover { + background-color: #FFFFFF12; +} + +.lightable-material-dark.lightable-striped tbody tr:nth-child(even) { + background-color: #FFFFFF12; +} + +.lightable-material-dark.lightable-striped tbody td { + border: 0; +} + +.lightable-material-dark.lightable-striped thead tr:last-child th { + border-bottom: 1px solid #FFFFFF12; +} + +.lightable-paper { + width: 100%; + margin-bottom: 10px; + color: #444; +} + +.lightable-paper tfoot tr td { + border: 0; +} + +.lightable-paper tfoot tr:first-child td { + border-top: 1px solid #00000020; +} + +.lightable-paper thead tr:last-child th { + color: #666; + vertical-align: bottom; + border-bottom: 1px solid #00000020; + line-height: 1.15em; + padding: 10px 5px; +} + +.lightable-paper td { + vertical-align: middle; + border-bottom: 1px solid #00000010; + line-height: 1.15em; + padding: 7px 5px; +} + +.lightable-paper.lightable-hover tbody tr:hover { + background-color: #F9EEC1; +} + +.lightable-paper.lightable-striped tbody tr:nth-child(even) { + background-color: #00000008; +} + +.lightable-paper.lightable-striped tbody td { + border: 0; +} + diff --git a/_freeze/site_libs/tabwid-1.1.3/tabwid.css b/_freeze/site_libs/tabwid-1.1.3/tabwid.css new file mode 100644 index 0000000..5e31a86 --- /dev/null +++ b/_freeze/site_libs/tabwid-1.1.3/tabwid.css @@ -0,0 +1,42 @@ +.tabwid { + font-size: initial; + padding-bottom: 1em; +} + +.tabwid table{ + border-spacing:0px !important; + border-collapse:collapse; + line-height:1; + margin-left:auto; + margin-right:auto; + border-width: 0; + border-color: transparent; + caption-side: top; +} +.tabwid-caption-bottom table{ + caption-side: bottom; +} +.tabwid_left table{ + margin-left:0; +} +.tabwid_right table{ + margin-right:0; +} +.tabwid td, .tabwid th { + padding: 0; +} +.tabwid a { + text-decoration: none; +} +.tabwid thead { + background-color: transparent; +} +.tabwid tfoot { + background-color: transparent; +} +.tabwid table tr { +background-color: transparent; +} +.katex-display { + margin: 0 0 !important; +} diff --git a/_freeze/site_libs/tabwid-1.1.3/tabwid.js b/_freeze/site_libs/tabwid-1.1.3/tabwid.js new file mode 100644 index 0000000..47070f7 --- /dev/null +++ b/_freeze/site_libs/tabwid-1.1.3/tabwid.js @@ -0,0 +1,20 @@ +document.addEventListener("DOMContentLoaded", function(event) { + var els = document.querySelectorAll(".tabwid"); + var tabwid_link = document.querySelector('link[href*="tabwid.css"]') + if (tabwid_link === null) { + const tabwid_styles = document.evaluate("//style[contains(., 'tabwid')]", document, null, XPathResult.ANY_TYPE, null ); + tabwid_link = tabwid_styles.iterateNext(); + } + + Array.prototype.forEach.call(els, function(template) { + const dest = document.createElement("div"); + template.parentNode.insertBefore(dest, template.nextSibling) + dest.setAttribute("class", "flextable-shadow-host"); + const fantome = dest.attachShadow({mode: 'open'}); + fantome.appendChild(template); + if (tabwid_link !== null) { + fantome.appendChild(tabwid_link.cloneNode(true)); + } + }); +}); + diff --git a/pages/gallery/data/data_data/tbl-01-openwashdata-datasets.csv b/pages/gallery/data/data_data/tbl-01-openwashdata-datasets.csv index 91926ee..0dfb125 100644 --- a/pages/gallery/data/data_data/tbl-01-openwashdata-datasets.csv +++ b/pages/gallery/data/data_data/tbl-01-openwashdata-datasets.csv @@ -1,4 +1,6 @@ id,pkg_name,maintainer,source,difficulty,status,description,date_published,link_github,link_pkg_website -1,fsmglobal,larnsce,academic,low,published,Populations of 175 countries requiring different faecal sludge emptying services.,NA,, -2,NA,NA,NA,NA,in-progress,NA,NA,NA,NA -3,NA,NA,NA,NA,backlog,NA,NA,NA,NA +1,wasteskipsblantyre,sebastian-loos,academic,low,published,"Data on locations of the publicly accessible waste skips in Blantyre, Malawi collected in 2021.",2023-08-02T00:00:00Z,, +2,fsmglobal,larnsce,academic,low,published,Populations of 175 countries requiring different faecal sludge emptying services.,2023-08-02T00:00:00Z,, +3,cbssuitabilityhaiti,sebastian-loos,ngo,low,in-progress,Spatial data to support an analysis of suitability of container-based sanitation in flood prone areas of Haiti.,NA,,https://openwashdata.github.io/cbssuitabilityhaiti/ +4,dryingfaecal,mianzg,academic,high,in-progress,Engineering experiments related to drying of faecal sludge from on-site sanitation facilities and fresh faeces.,NA,, +5,climatevulnerabilitykhm,mianzg,academic,low,in-progress,"Data on Effects of Climate Vulnerability on Sanitation Access, Sanitation Infrastructure Functionality and Households’ Fecal Sludge Management Practices in Rural Cambodia.",NA,, diff --git a/pages/gallery/data/index.qmd b/pages/gallery/data/index.qmd index 7a8169b..7056fc0 100644 --- a/pages/gallery/data/index.qmd +++ b/pages/gallery/data/index.qmd @@ -10,6 +10,11 @@ execute: warning: false --- +```{r} +options(knitr.kable.NA = '') +``` + + ## Data The table on this pages shows data that is published following our R data package workflow. Each data set comes with its own website and rich documentation to increase reusability. @@ -18,19 +23,37 @@ The table on this pages shows data that is published following our R data packag # data <- googlesheets4::read_sheet("1vtw16vpvJbioDirGTQcy0Ubz01Cz7lcwFVvbxsNPSVM") # data |> readr::write_csv(here::here("pages/gallery/data/data_data/tbl-01-openwashdata-datasets.csv")) + data <- readr::read_csv(here::here("pages/gallery/data/data_data/tbl-01-openwashdata-datasets.csv")) ``` +:::{.column-page} ```{r} -data |> - dplyr::mutate(pkg_name = paste0("[", pkg_name, "]", "(", link_github, ")")) |> + +tbl_data <- data |> + dplyr::mutate(link_pkg_website = dplyr::case_when( + status == "in-progress" ~ NA_character_, + TRUE ~ link_pkg_website + )) |> + dplyr::mutate(status = dplyr::case_when( + status == "in-progress" ~ paste0("[", status, "]", "(", link_github, ")"), + TRUE ~ status + )) |> dplyr::select(id, name = pkg_name, status, description, published = date_published, - website = link_pkg_website) |> - knitr::kable() + website = link_pkg_website) |> + dplyr::mutate(published = format(published, "%d. %B %Y")) + +tbl_data |> + knitr::kable(padding = 0) + ``` +::: + + +