Skip to content

Commit

Permalink
Built site for gh-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
arilamstein committed Nov 22, 2024
1 parent 8db5bdf commit f406f81
Show file tree
Hide file tree
Showing 13 changed files with 64 additions and 75 deletions.
2 changes: 1 addition & 1 deletion .nojekyll
Original file line number Diff line number Diff line change
@@ -1 +1 @@
57b2985b
b7c14b93
11 changes: 4 additions & 7 deletions about.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head>

<meta charset="utf-8">
<meta name="generator" content="quarto-1.5.57">
<meta name="generator" content="quarto-1.6.37">

<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">

Expand Down Expand Up @@ -35,10 +35,10 @@
<script src="site_libs/quarto-html/tippy.umd.min.js"></script>
<script src="site_libs/quarto-html/anchor.min.js"></script>
<link href="site_libs/quarto-html/tippy.css" rel="stylesheet">
<link href="site_libs/quarto-html/quarto-syntax-highlighting.css" rel="stylesheet" id="quarto-text-highlighting-styles">
<link href="site_libs/quarto-html/quarto-syntax-highlighting-29e2c20b02301cfff04dc8050bf30c7e.css" rel="stylesheet" id="quarto-text-highlighting-styles">
<script src="site_libs/bootstrap/bootstrap.min.js"></script>
<link href="site_libs/bootstrap/bootstrap-icons.css" rel="stylesheet">
<link href="site_libs/bootstrap/bootstrap.min.css" rel="stylesheet" id="quarto-bootstrap" data-mode="light">
<link href="site_libs/bootstrap/bootstrap-1322888c997fad56b0b4d776d35cf542.min.css" rel="stylesheet" append-hash="true" id="quarto-bootstrap" data-mode="light">
<script id="quarto-search-options" type="application/json">{
"location": "navbar",
"copy-button": false,
Expand Down Expand Up @@ -232,8 +232,6 @@ <h1 class="title">About</h1>
});
clipboard.on('success', onCopySuccess);
if (window.document.getElementById('quarto-embedded-source-code-modal')) {
// For code content inside modals, clipBoardJS needs to be initialized with a container option
// TODO: Check when it could be a function (https://github.com/zenorocha/clipboard.js/issues/860)
const clipboardModal = new window.ClipboardJS('.code-copy-button[data-in-quarto-modal]', {
text: getTextToCopy,
container: window.document.getElementById('quarto-embedded-source-code-modal')
Expand All @@ -242,7 +240,7 @@ <h1 class="title">About</h1>
}
var localhostRegex = new RegExp(/^(?:http|https):\/\/localhost\:?[0-9]*\//);
var mailtoRegex = new RegExp(/^mailto:/);
var filterRegex = new RegExp("https:\/\/arilamstein\.github\.io\/census-examples-website\/");
var filterRegex = new RegExp("https:\/\/RConsortium\.github\.io\/Census-Examples-Website\/");
var isInternal = (href) => {
return filterRegex.test(href) || localhostRegex.test(href) || mailtoRegex.test(href);
}
Expand Down Expand Up @@ -344,7 +342,6 @@ <h1 class="title">About</h1>
if (window.Quarto?.typesetMath) {
window.Quarto.typesetMath(note);
}
// TODO in 1.5, we should make sure this works without a callout special case
if (note.classList.contains("callout")) {
return note.outerHTML;
} else {
Expand Down
11 changes: 4 additions & 7 deletions choroplethr.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head>

<meta charset="utf-8">
<meta name="generator" content="quarto-1.5.57">
<meta name="generator" content="quarto-1.6.37">

<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">

Expand Down Expand Up @@ -69,10 +69,10 @@
<script src="site_libs/quarto-html/tippy.umd.min.js"></script>
<script src="site_libs/quarto-html/anchor.min.js"></script>
<link href="site_libs/quarto-html/tippy.css" rel="stylesheet">
<link href="site_libs/quarto-html/quarto-syntax-highlighting.css" rel="stylesheet" id="quarto-text-highlighting-styles">
<link href="site_libs/quarto-html/quarto-syntax-highlighting-29e2c20b02301cfff04dc8050bf30c7e.css" rel="stylesheet" id="quarto-text-highlighting-styles">
<script src="site_libs/bootstrap/bootstrap.min.js"></script>
<link href="site_libs/bootstrap/bootstrap-icons.css" rel="stylesheet">
<link href="site_libs/bootstrap/bootstrap.min.css" rel="stylesheet" id="quarto-bootstrap" data-mode="light">
<link href="site_libs/bootstrap/bootstrap-1322888c997fad56b0b4d776d35cf542.min.css" rel="stylesheet" append-hash="true" id="quarto-bootstrap" data-mode="light">
<script id="quarto-search-options" type="application/json">{
"location": "navbar",
"copy-button": false,
Expand Down Expand Up @@ -312,8 +312,6 @@ <h1 class="title">Choroplethr</h1>
});
clipboard.on('success', onCopySuccess);
if (window.document.getElementById('quarto-embedded-source-code-modal')) {
// For code content inside modals, clipBoardJS needs to be initialized with a container option
// TODO: Check when it could be a function (https://github.com/zenorocha/clipboard.js/issues/860)
const clipboardModal = new window.ClipboardJS('.code-copy-button[data-in-quarto-modal]', {
text: getTextToCopy,
container: window.document.getElementById('quarto-embedded-source-code-modal')
Expand All @@ -322,7 +320,7 @@ <h1 class="title">Choroplethr</h1>
}
var localhostRegex = new RegExp(/^(?:http|https):\/\/localhost\:?[0-9]*\//);
var mailtoRegex = new RegExp(/^mailto:/);
var filterRegex = new RegExp("https:\/\/arilamstein\.github\.io\/census-examples-website\/");
var filterRegex = new RegExp("https:\/\/RConsortium\.github\.io\/Census-Examples-Website\/");
var isInternal = (href) => {
return filterRegex.test(href) || localhostRegex.test(href) || mailtoRegex.test(href);
}
Expand Down Expand Up @@ -424,7 +422,6 @@ <h1 class="title">Choroplethr</h1>
if (window.Quarto?.typesetMath) {
window.Quarto.typesetMath(note);
}
// TODO in 1.5, we should make sure this works without a callout special case
if (note.classList.contains("callout")) {
return note.outerHTML;
} else {
Expand Down
12 changes: 5 additions & 7 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head>

<meta charset="utf-8">
<meta name="generator" content="quarto-1.5.57">
<meta name="generator" content="quarto-1.6.37">

<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">

Expand Down Expand Up @@ -35,10 +35,10 @@
<script src="site_libs/quarto-html/tippy.umd.min.js"></script>
<script src="site_libs/quarto-html/anchor.min.js"></script>
<link href="site_libs/quarto-html/tippy.css" rel="stylesheet">
<link href="site_libs/quarto-html/quarto-syntax-highlighting.css" rel="stylesheet" id="quarto-text-highlighting-styles">
<link href="site_libs/quarto-html/quarto-syntax-highlighting-29e2c20b02301cfff04dc8050bf30c7e.css" rel="stylesheet" id="quarto-text-highlighting-styles">
<script src="site_libs/bootstrap/bootstrap.min.js"></script>
<link href="site_libs/bootstrap/bootstrap-icons.css" rel="stylesheet">
<link href="site_libs/bootstrap/bootstrap.min.css" rel="stylesheet" id="quarto-bootstrap" data-mode="light">
<link href="site_libs/bootstrap/bootstrap-1322888c997fad56b0b4d776d35cf542.min.css" rel="stylesheet" append-hash="true" id="quarto-bootstrap" data-mode="light">
<script id="quarto-search-options" type="application/json">{
"location": "navbar",
"copy-button": false,
Expand Down Expand Up @@ -147,6 +147,7 @@ <h1 class="title">R Census Examples</h1>
<p>This site contains examples of how to use various R packages that work with US Census Data.</p>
<p>It’s built using Quarto. To learn more about Quarto websites visit <a href="https://quarto.org/docs/websites" class="uri">https://quarto.org/docs/websites</a>.</p>
<p>Test of publishing to github pages via github actions: https://quarto.org/docs/publishing/github-pages.html</p>
<p>Test 12pm</p>



Expand Down Expand Up @@ -233,8 +234,6 @@ <h1 class="title">R Census Examples</h1>
});
clipboard.on('success', onCopySuccess);
if (window.document.getElementById('quarto-embedded-source-code-modal')) {
// For code content inside modals, clipBoardJS needs to be initialized with a container option
// TODO: Check when it could be a function (https://github.com/zenorocha/clipboard.js/issues/860)
const clipboardModal = new window.ClipboardJS('.code-copy-button[data-in-quarto-modal]', {
text: getTextToCopy,
container: window.document.getElementById('quarto-embedded-source-code-modal')
Expand All @@ -243,7 +242,7 @@ <h1 class="title">R Census Examples</h1>
}
var localhostRegex = new RegExp(/^(?:http|https):\/\/localhost\:?[0-9]*\//);
var mailtoRegex = new RegExp(/^mailto:/);
var filterRegex = new RegExp("https:\/\/arilamstein\.github\.io\/census-examples-website\/");
var filterRegex = new RegExp("https:\/\/RConsortium\.github\.io\/Census-Examples-Website\/");
var isInternal = (href) => {
return filterRegex.test(href) || localhostRegex.test(href) || mailtoRegex.test(href);
}
Expand Down Expand Up @@ -345,7 +344,6 @@ <h1 class="title">R Census Examples</h1>
if (window.Quarto?.typesetMath) {
window.Quarto.typesetMath(note);
}
// TODO in 1.5, we should make sure this works without a callout special case
if (note.classList.contains("callout")) {
return note.outerHTML;
} else {
Expand Down
2 changes: 1 addition & 1 deletion robots.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Sitemap: https://arilamstein.github.io/census-examples-website/sitemap.xml
Sitemap: https://RConsortium.github.io/Census-Examples-Website/sitemap.xml
11 changes: 4 additions & 7 deletions school.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head>

<meta charset="utf-8">
<meta name="generator" content="quarto-1.5.57">
<meta name="generator" content="quarto-1.6.37">

<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">

Expand Down Expand Up @@ -35,10 +35,10 @@
<script src="site_libs/quarto-html/tippy.umd.min.js"></script>
<script src="site_libs/quarto-html/anchor.min.js"></script>
<link href="site_libs/quarto-html/tippy.css" rel="stylesheet">
<link href="site_libs/quarto-html/quarto-syntax-highlighting.css" rel="stylesheet" id="quarto-text-highlighting-styles">
<link href="site_libs/quarto-html/quarto-syntax-highlighting-29e2c20b02301cfff04dc8050bf30c7e.css" rel="stylesheet" id="quarto-text-highlighting-styles">
<script src="site_libs/bootstrap/bootstrap.min.js"></script>
<link href="site_libs/bootstrap/bootstrap-icons.css" rel="stylesheet">
<link href="site_libs/bootstrap/bootstrap.min.css" rel="stylesheet" id="quarto-bootstrap" data-mode="light">
<link href="site_libs/bootstrap/bootstrap-1322888c997fad56b0b4d776d35cf542.min.css" rel="stylesheet" append-hash="true" id="quarto-bootstrap" data-mode="light">
<script id="quarto-search-options" type="application/json">{
"location": "navbar",
"copy-button": false,
Expand Down Expand Up @@ -231,8 +231,6 @@ <h1 class="title">CPS School Enrollment Supplement</h1>
});
clipboard.on('success', onCopySuccess);
if (window.document.getElementById('quarto-embedded-source-code-modal')) {
// For code content inside modals, clipBoardJS needs to be initialized with a container option
// TODO: Check when it could be a function (https://github.com/zenorocha/clipboard.js/issues/860)
const clipboardModal = new window.ClipboardJS('.code-copy-button[data-in-quarto-modal]', {
text: getTextToCopy,
container: window.document.getElementById('quarto-embedded-source-code-modal')
Expand All @@ -241,7 +239,7 @@ <h1 class="title">CPS School Enrollment Supplement</h1>
}
var localhostRegex = new RegExp(/^(?:http|https):\/\/localhost\:?[0-9]*\//);
var mailtoRegex = new RegExp(/^mailto:/);
var filterRegex = new RegExp("https:\/\/arilamstein\.github\.io\/census-examples-website\/");
var filterRegex = new RegExp("https:\/\/RConsortium\.github\.io\/Census-Examples-Website\/");
var isInternal = (href) => {
return filterRegex.test(href) || localhostRegex.test(href) || mailtoRegex.test(href);
}
Expand Down Expand Up @@ -343,7 +341,6 @@ <h1 class="title">CPS School Enrollment Supplement</h1>
if (window.Quarto?.typesetMath) {
window.Quarto.typesetMath(note);
}
// TODO in 1.5, we should make sure this works without a callout special case
if (note.classList.contains("callout")) {
return note.outerHTML;
} else {
Expand Down
28 changes: 14 additions & 14 deletions search.json
Original file line number Diff line number Diff line change
@@ -1,37 +1,37 @@
[
{
"objectID": "school.html",
"href": "school.html",
"title": "CPS School Enrollment Supplement",
"section": "",
"text": "Here is how you can access the CPS School Enrollment Supplement in R:"
},
{
"objectID": "tidycensus.html",
"href": "tidycensus.html",
"title": "tidycensus Examples",
"section": "",
"text": "Here’s an example of getting State Population Estimates from the 2020 Decennial Census using the tidycensus package:\n\nlibrary(dplyr)\nlibrary(tidycensus)\n\npop2020 &lt;- get_decennial(\n geography = \"state\",\n variables = \"P1_001N\",\n year = 2020) %&gt;%\n mutate(year = 2020, variable = \"population\")\n\npop2020\n\n# A tibble: 52 × 5\n GEOID NAME variable value year\n &lt;chr&gt; &lt;chr&gt; &lt;chr&gt; &lt;dbl&gt; &lt;dbl&gt;\n 1 42 Pennsylvania population 13002700 2020\n 2 06 California population 39538223 2020\n 3 54 West Virginia population 1793716 2020\n 4 49 Utah population 3271616 2020\n 5 36 New York population 20201249 2020\n 6 11 District of Columbia population 689545 2020\n 7 02 Alaska population 733391 2020\n 8 12 Florida population 21538187 2020\n 9 45 South Carolina population 5118425 2020\n10 38 North Dakota population 779094 2020\n# ℹ 42 more rows\n\n\nHere is how you can see the states with the largest population:\n\narrange(pop2020, desc(value))\n\n# A tibble: 52 × 5\n GEOID NAME variable value year\n &lt;chr&gt; &lt;chr&gt; &lt;chr&gt; &lt;dbl&gt; &lt;dbl&gt;\n 1 06 California population 39538223 2020\n 2 48 Texas population 29145505 2020\n 3 12 Florida population 21538187 2020\n 4 36 New York population 20201249 2020\n 5 42 Pennsylvania population 13002700 2020\n 6 17 Illinois population 12812508 2020\n 7 39 Ohio population 11799448 2020\n 8 13 Georgia population 10711908 2020\n 9 37 North Carolina population 10439388 2020\n10 26 Michigan population 10077331 2020\n# ℹ 42 more rows"
},
{
"objectID": "index.html",
"href": "index.html",
"title": "R Census Examples",
"section": "",
"text": "This site contains examples of how to use various R packages that work with US Census Data.\nIt’s built using Quarto. To learn more about Quarto websites visit https://quarto.org/docs/websites.\nTest of publishing to github pages via github actions: https://quarto.org/docs/publishing/github-pages.html\nTest 12pm"
},
{
"objectID": "choroplethr.html",
"href": "choroplethr.html",
"title": "Choroplethr",
"section": "",
"text": "choroplethr was designed to make it as easy as possible to do exploratory data analysis of demographic data using choropleth (i.e. color-coded) maps.\nAs an example, let’s use choroplethr to explore the built-in dataset ?df_pop_county, which has 2012 county-level population estimates. We will create the map using ?county_choropleth.\n\nlibrary(choroplethr)\nlibrary(choroplethrMaps)\n\ndata(df_pop_county)\ncounty_choropleth(df_pop_county)\n\n\n\n\n\n\n\n\nchoroplethr defaults to using 7 quantiles. This means that there are 7 unique colors, and an equal number of counties are assigned to each color.\nIf you use two quantiles, you can see which counties have above or blow the median population:\n\nlibrary(choroplethr)\nlibrary(choroplethrMaps)\n\ndata(df_pop_county)\ncounty_choropleth(df_pop_county, num_colors=2)\n\n\n\n\n\n\n\n\nUsing a continuous scale for the colors makes it easy to detect outliers. You can do that by setting num_colors=1:\n\nlibrary(choroplethr)\nlibrary(choroplethrMaps)\n\ndata(df_pop_county)\ncounty_choropleth(df_pop_county, num_colors=1)\n\n\n\n\n\n\n\n\nTo learn more take the free class Mapmaking in R with Choroplethr"
},
{
"objectID": "school.html",
"href": "school.html",
"title": "CPS School Enrollment Supplement",
"section": "",
"text": "Here is how you can access the CPS School Enrollment Supplement in R:"
},
{
"objectID": "about.html",
"href": "about.html",
"title": "About",
"section": "",
"text": "This site is intended as a companion to A Guide to Working with Census Data in R.\nIt was created by the R Consortium Census Working Group (do we have a link?)."
},
{
"objectID": "index.html",
"href": "index.html",
"title": "R Census Examples",
"section": "",
"text": "This site contains examples of how to use various R packages that work with US Census Data.\nIt’s built using Quarto. To learn more about Quarto websites visit https://quarto.org/docs/websites.\nTest of publishing to github pages via github actions: https://quarto.org/docs/publishing/github-pages.html"
}
]

Large diffs are not rendered by default.

12 changes: 0 additions & 12 deletions site_libs/bootstrap/bootstrap.min.css

This file was deleted.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion site_libs/quarto-html/quarto.js
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,10 @@ window.document.addEventListener("DOMContentLoaded", function (_event) {
}

async function findAndActivateCategories() {
const currentPagePath = offsetAbsoluteUrl(window.location.href);
// Categories search with listing only use path without query
const currentPagePath = offsetAbsoluteUrl(
window.location.origin + window.location.pathname
);
const response = await fetch(offsetRelativeUrl("listings.json"));
if (response.status == 200) {
return response.json().then(function (listingPaths) {
Expand Down
20 changes: 10 additions & 10 deletions sitemap.xml
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://arilamstein.github.io/census-examples-website/school.html</loc>
<lastmod>2024-11-22T19:54:19.397Z</lastmod>
<loc>https://RConsortium.github.io/Census-Examples-Website/tidycensus.html</loc>
<lastmod>2024-11-22T20:00:11.731Z</lastmod>
</url>
<url>
<loc>https://arilamstein.github.io/census-examples-website/tidycensus.html</loc>
<lastmod>2024-11-22T19:54:19.397Z</lastmod>
<loc>https://RConsortium.github.io/Census-Examples-Website/index.html</loc>
<lastmod>2024-11-22T20:00:40.589Z</lastmod>
</url>
<url>
<loc>https://arilamstein.github.io/census-examples-website/choroplethr.html</loc>
<lastmod>2024-11-22T19:54:19.397Z</lastmod>
<loc>https://RConsortium.github.io/Census-Examples-Website/choroplethr.html</loc>
<lastmod>2024-11-22T20:00:11.730Z</lastmod>
</url>
<url>
<loc>https://arilamstein.github.io/census-examples-website/about.html</loc>
<lastmod>2024-11-22T19:54:19.397Z</lastmod>
<loc>https://RConsortium.github.io/Census-Examples-Website/school.html</loc>
<lastmod>2024-11-22T20:00:11.730Z</lastmod>
</url>
<url>
<loc>https://arilamstein.github.io/census-examples-website/index.html</loc>
<lastmod>2024-11-22T19:54:19.397Z</lastmod>
<loc>https://RConsortium.github.io/Census-Examples-Website/about.html</loc>
<lastmod>2024-11-22T20:00:11.729Z</lastmod>
</url>
</urlset>
Loading

0 comments on commit f406f81

Please sign in to comment.