mirror of
https://github.com/kidwellj/hacking_religion_textbook.git
synced 2024-11-01 01:12:20 +00:00
fixing ugly header in ch1
This commit is contained in:
parent
89aa257f9e
commit
d4ee903d34
|
@ -7,7 +7,7 @@
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
|
||||||
|
|
||||||
|
|
||||||
<title>Hacking Religion: TRS & Data Science in Action - 1 A note if you are reading raw code here rather than the book. You can ignore the code provided here below, as this is just intended to set up the basic workspace for our future work and is also necessary for the quarto application we use to build this book. Quarto is an application which blends together text and blocks of code. The text begins below at “The 2021 UK Census”</title>
|
<title>Hacking Religion: TRS & Data Science in Action - 1 Preamble</title>
|
||||||
<style>
|
<style>
|
||||||
code{white-space: pre-wrap;}
|
code{white-space: pre-wrap;}
|
||||||
span.smallcaps{font-variant: small-caps;}
|
span.smallcaps{font-variant: small-caps;}
|
||||||
|
@ -134,7 +134,7 @@ div.csl-indent {
|
||||||
<button type="button" class="quarto-btn-toggle btn" data-bs-toggle="collapse" data-bs-target=".quarto-sidebar-collapse-item" aria-controls="quarto-sidebar" aria-expanded="false" aria-label="Toggle sidebar navigation" onclick="if (window.quartoToggleHeadroom) { window.quartoToggleHeadroom(); }">
|
<button type="button" class="quarto-btn-toggle btn" data-bs-toggle="collapse" data-bs-target=".quarto-sidebar-collapse-item" aria-controls="quarto-sidebar" aria-expanded="false" aria-label="Toggle sidebar navigation" onclick="if (window.quartoToggleHeadroom) { window.quartoToggleHeadroom(); }">
|
||||||
<i class="bi bi-layout-text-sidebar-reverse"></i>
|
<i class="bi bi-layout-text-sidebar-reverse"></i>
|
||||||
</button>
|
</button>
|
||||||
<nav class="quarto-page-breadcrumbs" aria-label="breadcrumb"><ol class="breadcrumb"><li class="breadcrumb-item"><a href="./chapter_1.html"><span class="chapter-number">1</span> <span class="chapter-title">A note if you are reading raw code here rather than the book. You can ignore the code provided here below, as this is just intended to set up the basic workspace for our future work and is also necessary for the <code>quarto</code> application we use to build this book. Quarto is an application which blends together text and blocks of code. The text begins below at “The 2021 UK Census”</span></a></li></ol></nav>
|
<nav class="quarto-page-breadcrumbs" aria-label="breadcrumb"><ol class="breadcrumb"><li class="breadcrumb-item"><a href="./chapter_1.html"><span class="chapter-number">1</span> <span class="chapter-title">Preamble</span></a></li></ol></nav>
|
||||||
<a class="flex-grow-1" role="button" data-bs-toggle="collapse" data-bs-target=".quarto-sidebar-collapse-item" aria-controls="quarto-sidebar" aria-expanded="false" aria-label="Toggle sidebar navigation" onclick="if (window.quartoToggleHeadroom) { window.quartoToggleHeadroom(); }">
|
<a class="flex-grow-1" role="button" data-bs-toggle="collapse" data-bs-target=".quarto-sidebar-collapse-item" aria-controls="quarto-sidebar" aria-expanded="false" aria-label="Toggle sidebar navigation" onclick="if (window.quartoToggleHeadroom) { window.quartoToggleHeadroom(); }">
|
||||||
</a>
|
</a>
|
||||||
<button type="button" class="btn quarto-search-button" aria-label="" onclick="window.quartoOpenSearch();">
|
<button type="button" class="btn quarto-search-button" aria-label="" onclick="window.quartoOpenSearch();">
|
||||||
|
@ -168,7 +168,7 @@ div.csl-indent {
|
||||||
<li class="sidebar-item">
|
<li class="sidebar-item">
|
||||||
<div class="sidebar-item-container">
|
<div class="sidebar-item-container">
|
||||||
<a href="./chapter_1.html" class="sidebar-item-text sidebar-link active">
|
<a href="./chapter_1.html" class="sidebar-item-text sidebar-link active">
|
||||||
<span class="menu-text"><span class="chapter-number">1</span> <span class="chapter-title">A note if you are reading raw code here rather than the book. You can ignore the code provided here below, as this is just intended to set up the basic workspace for our future work and is also necessary for the <code>quarto</code> application we use to build this book. Quarto is an application which blends together text and blocks of code. The text begins below at “The 2021 UK Census”</span></span></a>
|
<span class="menu-text"><span class="chapter-number">1</span> <span class="chapter-title">Preamble</span></span></a>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
<li class="sidebar-item">
|
<li class="sidebar-item">
|
||||||
|
@ -238,7 +238,7 @@ div.csl-indent {
|
||||||
|
|
||||||
<header id="title-block-header" class="quarto-title-block default">
|
<header id="title-block-header" class="quarto-title-block default">
|
||||||
<div class="quarto-title">
|
<div class="quarto-title">
|
||||||
<h1 class="title"><span class="chapter-number">1</span> <span class="chapter-title">A note if you are reading raw code here rather than the book. You can ignore the code provided here below, as this is just intended to set up the basic workspace for our future work and is also necessary for the <code>quarto</code> application we use to build this book. Quarto is an application which blends together text and blocks of code. The text begins below at “The 2021 UK Census”</span></h1>
|
<h1 class="title"><span class="chapter-number">1</span> <span class="chapter-title">Preamble</span></h1>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
@ -255,14 +255,12 @@ div.csl-indent {
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
|
|
||||||
|
<p>We’ll get to the good stuff in a moment, but first we need to do a bit of setup. The code provided here is intended to set up your workspace and is also necessary for the <code>quarto</code> application we use to build this book. Quarto is an application which blends together text and blocks of code. You can ignore most of it for now, though if you’re running the code as we go along, you’ll definitely want to include these lines, as they create directories where your files will go as you create charts and extract data below and tells R where to find those files:</p>
|
||||||
<div class="cell">
|
<div class="cell">
|
||||||
<div class="sourceCode cell-code" id="cb1"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb1-1"><a href="#cb1-1" aria-hidden="true" tabindex="-1"></a></span>
|
<div class="sourceCode cell-code" id="cb1"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb1-1"><a href="#cb1-1" aria-hidden="true" tabindex="-1"></a><span class="fu">setwd</span>(<span class="st">"/Users/kidwellj/gits/hacking_religion_textbook/hacking_religion"</span>)</span>
|
||||||
<span id="cb1-2"><a href="#cb1-2" aria-hidden="true" tabindex="-1"></a><span class="co">#| include: true</span></span>
|
<span id="cb1-2"><a href="#cb1-2" aria-hidden="true" tabindex="-1"></a><span class="fu">library</span>(here) <span class="sc">|></span> <span class="fu">suppressPackageStartupMessages</span>()</span>
|
||||||
<span id="cb1-3"><a href="#cb1-3" aria-hidden="true" tabindex="-1"></a><span class="co">#| label: fig-polar</span></span>
|
<span id="cb1-3"><a href="#cb1-3" aria-hidden="true" tabindex="-1"></a><span class="fu">library</span>(tidyverse) <span class="sc">|></span> <span class="fu">suppressPackageStartupMessages</span>()</span>
|
||||||
<span id="cb1-4"><a href="#cb1-4" aria-hidden="true" tabindex="-1"></a><span class="fu">setwd</span>(<span class="st">"/Users/kidwellj/gits/hacking_religion_textbook/hacking_religion"</span>)</span>
|
<span id="cb1-4"><a href="#cb1-4" aria-hidden="true" tabindex="-1"></a>here<span class="sc">::</span><span class="fu">i_am</span>(<span class="st">"chapter_1.qmd"</span>)</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
|
||||||
<span id="cb1-5"><a href="#cb1-5" aria-hidden="true" tabindex="-1"></a><span class="fu">library</span>(here) <span class="sc">|></span> <span class="fu">suppressPackageStartupMessages</span>()</span>
|
|
||||||
<span id="cb1-6"><a href="#cb1-6" aria-hidden="true" tabindex="-1"></a><span class="fu">library</span>(tidyverse) <span class="sc">|></span> <span class="fu">suppressPackageStartupMessages</span>()</span>
|
|
||||||
<span id="cb1-7"><a href="#cb1-7" aria-hidden="true" tabindex="-1"></a>here<span class="sc">::</span><span class="fu">i_am</span>(<span class="st">"chapter_1.qmd"</span>)</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
|
|
||||||
<div class="cell-output cell-output-stderr">
|
<div class="cell-output cell-output-stderr">
|
||||||
<pre><code>here() starts at /Users/kidwellj/gits/hacking_religion_textbook/hacking_religion</code></pre>
|
<pre><code>here() starts at /Users/kidwellj/gits/hacking_religion_textbook/hacking_religion</code></pre>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -116,7 +116,7 @@ ul.task-list li input[type="checkbox"] {
|
||||||
<li class="sidebar-item">
|
<li class="sidebar-item">
|
||||||
<div class="sidebar-item-container">
|
<div class="sidebar-item-container">
|
||||||
<a href="./chapter_1.html" class="sidebar-item-text sidebar-link">
|
<a href="./chapter_1.html" class="sidebar-item-text sidebar-link">
|
||||||
<span class="menu-text"><span class="chapter-number">1</span> <span class="chapter-title">A note if you are reading raw code here rather than the book. You can ignore the code provided here below, as this is just intended to set up the basic workspace for our future work and is also necessary for the <code>quarto</code> application we use to build this book. Quarto is an application which blends together text and blocks of code. The text begins below at “The 2021 UK Census”</span></span></a>
|
<span class="menu-text"><span class="chapter-number">1</span> <span class="chapter-title">Preamble</span></span></a>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
<li class="sidebar-item">
|
<li class="sidebar-item">
|
||||||
|
@ -640,8 +640,8 @@ window.document.addEventListener("DOMContentLoaded", function (event) {
|
||||||
<div class="nav-page nav-page-previous">
|
<div class="nav-page nav-page-previous">
|
||||||
</div>
|
</div>
|
||||||
<div class="nav-page nav-page-next">
|
<div class="nav-page nav-page-next">
|
||||||
<a href="./chapter_1.html" class="pagination-link" aria-label="<span class='chapter-number'>1</span> <span class='chapter-title'>A note if you are reading raw code here rather than the book. You can ignore the code provided here below, as this is just intended to set up the basic workspace for our future work and is also necessary for the `quarto` application we use to build this book. Quarto is an application which blends together text and blocks of code. The text begins below at "The 2021 UK Census"</span>">
|
<a href="./chapter_1.html" class="pagination-link" aria-label="<span class='chapter-number'>1</span> <span class='chapter-title'>Preamble</span>">
|
||||||
<span class="nav-page-text"><span class="chapter-number">1</span> <span class="chapter-title">A note if you are reading raw code here rather than the book. You can ignore the code provided here below, as this is just intended to set up the basic workspace for our future work and is also necessary for the <code>quarto</code> application we use to build this book. Quarto is an application which blends together text and blocks of code. The text begins below at “The 2021 UK Census”</span></span> <i class="bi bi-arrow-right-short"></i>
|
<span class="nav-page-text"><span class="chapter-number">1</span> <span class="chapter-title">Preamble</span></span> <i class="bi bi-arrow-right-short"></i>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
```{r}
|
# Preamble
|
||||||
# A note if you are reading raw code here rather than the book. You can ignore the code provided here below, as this is just intended to set up the basic workspace for our future work and is also necessary for the `quarto` application we use to build this book. Quarto is an application which blends together text and blocks of code. The text begins below at "The 2021 UK Census"
|
|
||||||
|
|
||||||
|
We'll get to the good stuff in a moment, but first we need to do a bit of setup. The code provided here is intended to set up your workspace and is also necessary for the `quarto` application we use to build this book. Quarto is an application which blends together text and blocks of code. You can ignore most of it for now, though if you're running the code as we go along, you'll definitely want to include these lines, as they create directories where your files will go as you create charts and extract data below and tells R where to find those files:
|
||||||
|
|
||||||
|
```{r}
|
||||||
#| include: true
|
#| include: true
|
||||||
#| label: fig-polar
|
#| label: fig-polar
|
||||||
setwd("/Users/kidwellj/gits/hacking_religion_textbook/hacking_religion")
|
setwd("/Users/kidwellj/gits/hacking_religion_textbook/hacking_religion")
|
||||||
|
|
Loading…
Reference in a new issue