Skip to content

Commit

Permalink
Merge pull request #9 from USFWS/emma-dev
Browse files Browse the repository at this point in the history
Emma dev
  • Loading branch information
eschillerstrom-usfws authored Oct 31, 2024
2 parents e7a4a70 + 5926700 commit 589d152
Show file tree
Hide file tree
Showing 25 changed files with 17,237 additions and 2 deletions.
1,103 changes: 1,103 additions & 0 deletions docs/_emma.qmd

Large diffs are not rendered by default.

Binary file added docs/_extensions/jmgirard/embedpdf/.DS_Store
Binary file not shown.
8 changes: 8 additions & 0 deletions docs/_extensions/jmgirard/embedpdf/_extension.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
title: embedpdf
author: Jeffrey Girard
version: 0.4.1
quarto-required: ">=1.3.0"
contributes:
shortcodes:
- embedpdf.lua

65 changes: 65 additions & 0 deletions docs/_extensions/jmgirard/embedpdf/embedpdf.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
function pdf(args, kwargs)
local data = pandoc.utils.stringify(args[1]) or pandoc.utils.stringify(kwargs['file'])
local width = pandoc.utils.stringify(kwargs['width'])
local height = pandoc.utils.stringify(kwargs['height'])
local border = pandoc.utils.stringify(kwargs['border'])
local class = pandoc.utils.stringify(kwargs['class'])
local image = pandoc.utils.stringify(kwargs['image'])
local image_force = pandoc.utils.stringify(kwargs['image_force'])
local image_width = pandoc.utils.stringify(kwargs['image_width'])
local image_height = pandoc.utils.stringify(kwargs['image_height'])
local image_border = pandoc.utils.stringify(kwargs['image_border'])
local image_class = pandoc.utils.stringify(kwargs['image_class'])

if width ~= '' then
width = 'width="' .. width .. '" '
end

if height ~= '' then
height = 'height="' .. height .. '" '
end

if border ~= '' then
border = 'border="' .. border .. '" '
end

if class ~= '' then
class = 'class="' .. class .. '" '
end

if image_width ~= '' then
image_width = 'width="' .. image_width .. '" '
end

if image_height ~= '' then
image_height = 'height="' .. image_height .. '" '
end

if image_border ~= '' then
image_border = 'border="' .. image_border .. '" '
end

if image_class ~= '' then
image_class = 'class="' .. image_class .. '" '
end

-- detect html
if quarto.doc.isFormat("html:js") then
if image_force == 'TRUE' then
return pandoc.RawInline('html', '<a href="' .. data .. '" download><img src="' .. image .. '" ' .. image_width .. image_height .. image_class .. image_border .. ' /></a>')
end
if image ~= '' then
return pandoc.RawInline('html', '<object data="' .. data .. '" type="application/pdf"' .. width .. height .. class .. border .. '><a href="' .. data .. '" download><img src="' .. image .. '" ' .. image_width .. image_height .. image_class .. image_border .. ' /></a></object>')
else
return pandoc.RawInline('html', '<object data="' .. data .. '" type="application/pdf"' .. width .. height .. class .. border .. '><a href="' .. data .. '" download>Download PDF file.</a></object>')
end
else
return pandoc.Null()
end

end

-- Add alias shortcode
function embedpdf(...)
return pdf(...)
end
16,001 changes: 16,001 additions & 0 deletions docs/data/csv/compiled_witch_data.csv

Large diffs are not rendered by default.

Binary file added docs/data/xlsx/witch_survey.xlsx
Binary file not shown.
Binary file added docs/images/casper_graphic.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/data_wrangle.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/frank_stein_graphic.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/qc_2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/qc_6.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/qc_7.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/report.pdf
Binary file not shown.
Binary file added docs/images/tidy_graphic.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/why_tidy_data.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/witch_broom.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/witch_data_cleanup.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/witch_eda.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/witch_import.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/witch_melting.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/witch_preserve.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/witch_tidying.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/workbook_sc.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 22 additions & 0 deletions docs/lua/output-line-highlight.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
function highlight(line_number)
local highlighter = {
CodeBlock = function(block)
if block.classes:includes('highlight') then
block.classes:insert('has-line-highlights')
block.attributes["code-line-numbers"] = line_number
return block
end
end
}
return highlighter
end


function Div(el)
if FORMAT == 'revealjs' then
if el.classes:includes('cell') then
line_number = tostring(el.attributes["output-line-numbers"])
return el:walk(highlight(line_number))
end
end
end
40 changes: 38 additions & 2 deletions docs/scss/custom-dark.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ $Scary: "Eater", serif;
$blue: #02426D;
$light-blue: #A3DBFF;
$white: #FFFFFF;
$accent-yellow: #FFC94F;
$accent-yellow-1: #FFC94F;
$accent-dark-blue: #012137;
$accent-orange: #F7885A;
$accent-light-blue: #D1EDFF;
$accent-yellow: #FFE4A7;
$accent-yellow-2: #FFE4A7;
$accent-champagne: #E9D3AD;
$accent-blue: #007AC2;
$accent-green: #265D3A;
Expand All @@ -36,6 +36,7 @@ $link-color: $light-blue;

// code block styling
$code-block-font-size: 0.5em;

$code-block-border-left: $light-blue;
// $code-block-bg: $accent-orange;
// $code-block-color: $blue;
Expand Down Expand Up @@ -112,6 +113,10 @@ $code-block-border-left: $light-blue;
font-size: 0.2em;
}

.medlarge {
font-size: 1.2em;
}

.large {
font-size: 1.50em;
}
Expand Down Expand Up @@ -139,6 +144,37 @@ $code-block-border-left: $light-blue;
box-shadow: 4.2px 4.5px 2.5px rgba(65, 65, 65, 0.737);
}

/* change font color */
.yellow {
color: $accent-yellow-1;
}

/* change font color */
.orange {
color: $accent-orange;
}

/* change font color */
.champagne {
color: $accent-champagne;
}

/* marker font */
.marker {
font-family: $Marker;
}

/* make bolder */
.extrabold {
font-weight: 2000;
font-size: 1.2em;
}

/* style datatable */
.custom-header-big {
background-color: white;
}

/* headers for DT::datatable() */
.custom-header {
color: black;
Expand Down

0 comments on commit 589d152

Please sign in to comment.