Skip to content

Commit

Permalink
Update website colours, fix vignette rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
daxkellie committed Dec 18, 2024
1 parent ff3ff17 commit 8b91cd2
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 6 deletions.
2 changes: 2 additions & 0 deletions _pkgdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ template:
bootstrap: 5
params:
bootswatch: cerulean
development:
mode: release
navbar:
structure:
left:
Expand Down
9 changes: 5 additions & 4 deletions pkgdown/extra.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
h1, h2, h3, h4, .h1, .h2, .h3, .main-title, .main-subtitle {
font-family: Lato;
font-weight: normal;
color: #134348;
color: #076064;
}

a {
color: #82c8d0;
color: #47a3a9;
text-decoration: none;
}

Expand All @@ -27,7 +27,7 @@ body { font-family: Roboto; }
}

.navbar.bg-primary {
background-image: linear-gradient(to bottom, #ffffff, #d7eaf7) !important;
background-image: linear-gradient(to bottom, #ffffff, #ffffff) !important;
/*background-image: linear-gradient(#93d6d6, #78CCCC 60%, #6cb7b7);*/
}

Expand All @@ -52,7 +52,8 @@ body { font-family: Roboto; }
}

.navbar-nav .nav-link:focus {
color: #134348;
color: #d7eaf7;
background-color: #076064!important;
}

.navbar-nav .active>.nav-link {
Expand Down
5 changes: 3 additions & 2 deletions vignettes/checking-your-dataset.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ corella contains internal `check_` functions for all individual Darwin Core term
# generate table
# fn_to_term_table() |>
# dplyr::bind_rows() |>
# write.csv("inst/supported-terms.csv")
# write.csv("vignettes/supported-terms.csv")
```


Expand All @@ -67,7 +67,7 @@ corella contains internal `check_` functions for all individual Darwin Core term
library(gt)
library(dplyr)
readr::read_csv(system.file("supported-terms.csv",
readr::read_csv(system.file("./supported-terms.csv",
package = "corella")) |>
select(-1) |> # remove reference column
mutate(
Expand Down Expand Up @@ -105,6 +105,7 @@ readr::read_csv(system.file("supported-terms.csv",
container.height = "450px"
)
```

<br>

When a user specifies a column to a matching Darwin Core term (or the column/term is detected by corella automatically) in a `use_` function, the `use_` function triggers that matching term's `check_` function. This process ensures that the data is correctly formatted prior to being saved in a Darwin Core Archive.
Expand Down
46 changes: 46 additions & 0 deletions vignettes/supported-terms.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
"","use_function","dwc_term"
"1","use_occurrences()","basisOfRecord"
"2","use_occurrences()","occurrenceID"
"3","use_scientific_name()","scientificName"
"4","use_coordinates()","decimalLatitude"
"5","use_coordinates()","decimalLongitude"
"6","use_coordinates()","geodeticDatum"
"7","use_coordinates()","coordinateUncertaintyInMeters"
"8","use_datetime()","eventDate"
"9","use_locality()","continent"
"10","use_locality()","country"
"11","use_locality()","countryCode"
"12","use_locality()","stateProvince"
"13","use_locality()","locality"
"14","use_taxonomy()","kingdom"
"15","use_taxonomy()","phylum"
"16","use_taxonomy()","class"
"17","use_taxonomy()","order"
"18","use_taxonomy()","family"
"19","use_taxonomy()","genus"
"20","use_taxonomy()","specificEpithet"
"21","use_taxonomy()","vernacularName"
"22","use_abundance()","individualCount"
"23","use_abundance()","organismQuantity"
"24","use_abundance()","organismQuantityType"
"25","use_abundance()","organismQuantity"
"26","use_collection()","datasetID"
"27","use_collection()","datasetName"
"28","use_collection()","catalogNumber"
"29","use_coordinates()","coordinatePrecision"
"30","use_scientific_name()","taxonRank"
"31","use_scientific_name()","scientificNameAuthorship"
"32","use_datetime()","year"
"33","use_datetime()","month"
"34","use_datetime()","day"
"35","use_datetime()","eventTime"
"36","use_individual_traits()","individualID"
"37","use_individual_traits()","lifeStage"
"38","use_individual_traits()","sex"
"39","use_individual_traits()","vitality"
"40","use_individual_traits()","reproductiveCondition"
"41","use_observer()","recordedBy"
"42","use_observer()","recordedByID"
"43","use_events()","eventID"
"44","use_events()","eventType"
"45","use_events()","parentEventID"

0 comments on commit 8b91cd2

Please sign in to comment.