-
Notifications
You must be signed in to change notification settings - Fork 4
/
index.qmd
98 lines (73 loc) · 3.2 KB
/
index.qmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
---
title: "Introduction"
subtitle: "An Analysis of Electricity in Alaska, Data Years 2011-2021"
---
```{r, echo=FALSE,warning=FALSE,message=FALSE}
# Function to make space regardless of execution format
# To use: write `r space() outside of a code block
# Modify globally at ./scripts/inline_functions/space.R
source("scripts/R/space.R")
```
`r space(br="", vspace="-3em")`
::: {.content-visible when-format="html"}
## Welcome {#welcome .unnumbered}
This report summarizes electricity data gathered from federal, state, and utility sources. It provides an overview of electricity capacity, generation, consumption, and price trends from 2011 to 2021. A comprehensive report highlighting these trends has not been produced for the state of Alaska since 2013's _Alaska Energy Statistics Report_. It is available in two formats: as a PDF and as a digital "web book".
The web book is designed as 'best available' document for the 2011-2021 energy trends data and reports. This website will be updated when updates to the underlying 2011-2021 data or fixes become available. Future year trends reports will be tackled in a different context and reporting structure.
Please explore the data using the chapter navigation links in the left sidebar and the section navigation links in the right sidebar.
## How to Cite
Kaczmarski, J., I. Yeager, S. Colt, E. L. Dobbins, N. McMahon, S. Fisher-Goad, and B. Smart. "2024 Alaska Energy Trends Report Web Book." Accessed `{ojs} currentDate`. https://acep-uaf.github.io/aetr-web-book-2024
```{ojs}
//| echo: false
// set up today's date
date = new Date();
day = date.getDate();
month = date.toLocaleString('default', { month: 'long' });
year = date.getFullYear();
month_2digit = (date.getMonth() + 1).toString().padStart(2, "0");
day_2digit = date.getDate().toString().padStart(2, "0");
currentDate = `${month} ${day}, ${year}`
// build a button
citation_button = (blob, filename = 'test.bib', displayname) => {
const button = DOM.download(
blob,
filename,
`${displayname}`
);
return button;
}
// BibLaTeX content
biblatexContent =
`@online{aetr_web_book_2024,
author = {Jesse Kaczmarski and Ian Yeager and Steve Colt and Elizabeth L. Dobbins and Neil McMahon and Sara Fisher-Goad and Brittany Smart},
title = {{2024 Alaska Electricity Trends Report}},
year = 2024,
url = {https://acep-uaf.github.io/aetr-web-book-2024/},
urldate = {${year}-${month_2digit}-${day_2digit}}
}`
risContent =
`TY - ELEC
AU - Kaczmarski,Jesse
AU - Yeager,Ian
AU - Colt,Steve
AU - Dobbins,Elizabeth L.
AU - McMahon,Neil
AU - Fisher-Goad,Sara
AU - Smart,Brittany
TI - 2024 Alaska Electricity Trends Report
PY - 2024
DA - {${year}-${month_2digit}-${day_2digit}}
UR - https://acep-uaf.github.io/aetr-web-book-2024/
N1 - Accessed on ${currentDate}
ER -`
// Create the blobs
biblatex_blob = new Blob([biblatexContent], { type: 'text/plain' });
ris_blob = new Blob([risContent], { type: 'text/plain' });
// Insert blobs into buttons
citation_button(biblatex_blob, 'aetr_web_book_2024.bib', 'BibLaTeX');
citation_button(ris_blob, 'aetr_web_book_2024.ris', 'RIS');
```
:::
## Executive Summary
{{< include _executive_summary.qmd >}}
## Key Takeaways
{{< include _key_takeaways.qmd >}}