Skip to content

Commit

Permalink
Try rendering on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
mikemahoney218 committed Apr 10, 2023
1 parent b4c827c commit 15785eb
Show file tree
Hide file tree
Showing 636 changed files with 91 additions and 38,936 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/render.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
workflow_dispatch:

name: Render Site

jobs:
build-deploy:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Check out repository
uses: actions/checkout@v2

- name: Set up Quarto
uses: quarto-dev/quarto-actions/setup@v2
with:
tinytex: true

- name: Render Quarto Project
uses: quarto-dev/quarto-actions/render@v2

- name: Deploy
if: github.event_name != 'pull_request'
uses: JamesIves/[email protected]
with:
branch: build
folder: "_site"
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -121,3 +121,4 @@ dist
/.quarto/
*.tif
elevators.db
_site
Binary file modified _freeze/cdi/index/figure-html/unnamed-chunk-1-1.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 modified _freeze/cdi/index/figure-html/unnamed-chunk-10-1.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 modified _freeze/cdi/index/figure-html/unnamed-chunk-11-1.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 modified _freeze/cdi/index/figure-html/unnamed-chunk-12-1.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 modified _freeze/cdi/index/figure-html/unnamed-chunk-15-1.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 modified _freeze/cdi/index/figure-html/unnamed-chunk-19-1.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 modified _freeze/cdi/index/figure-html/unnamed-chunk-20-1.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 modified _freeze/cdi/index/figure-html/unnamed-chunk-21-1.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 modified _freeze/cdi/index/figure-html/unnamed-chunk-24-1.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 modified _freeze/cdi/index/figure-html/unnamed-chunk-4-1.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 modified _freeze/cdi/index/figure-html/unnamed-chunk-6-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"hash": "212e3afd70fed91d96ad7aa209588c36",
"result": {
"markdown": "---\ntitle: \"Counting the number of times each citation is used in a Quarto document\"\ndescription: \"Documenting this trick here for future me, six months from now.\"\nauthor:\n - name: Mike Mahoney\n url: {}\ndate: \"2023-04-10\"\ncategories: [\"Quarto\", \"Tutorials\", \"Data science\"]\nimage: books.jpg\nformat: \n html:\n toc: true\nengine: knitr\n---\n\n\nI'm currently editing my candidacy exam -- where I wrote what was effectively a review article on a subject adjacent to, but not within, my dissertation area -- down into something that might be publishable. Part of that work has been trimming down the number of citations in the paper: my original exam had 300 individual citations, which is a bit much, and the places I'm looking at sending this paper generally restrict articles to 100 total cites.\n\nAs such, I've needed to trim down the number of citations used in this paper.^[And to be clear, these are not 300 citations which are truly core to the paper's argument. There's a number of places in the paper where I more or less say \"This line of work has been highly influential in later work\", and then cite every single article I read which cited the original study; this made a bit more sense in the context of \"candidacy exam\" where I was trying to demonstrate that I had comprehensively surveyed the literature, but isn't something I'd ever do in published work.] To do that, I've been trying to figure out which sources were only cited a handful of times and could be easily removed. There's plenty online about [how to do that calculation with LaTeX](https://tex.stackexchange.com/questions/14158/can-i-count-the-number-of-times-each-reference-is-cited), but I've been writing both my exam and this new paper in [Quarto](https://quarto.org/) and was having a hard time getting those code snippets to work.\n\nIt turned out that I needed to use three fields in my document's YAML header. Namely, I needed to set the `cite-method` of my document to `biblatex`, set the `biblatexoptions` field to `citecounter=true`, and then include a LaTeX snippet to actually _print_ those citation counts to the `text` key below `include-before-body`:^[Is that key new? I could have sworn I used to provide raw TeX to the `include-before-body` field, but apparently now that needs to be a file name.]\n\n```yaml\nformat:\n pdf:\n cite-method: biblatex\n biblatexoptions: \"citecounter=true\"\n include-before-body:\n text: |\n \\renewcommand{\\finentrypunct}{%\n \\addperiod\\space\n (Cited \\arabic{citecounter}~time\\ifnumequal{\\value{citecounter}}{1}{}{s})%\n }\n```\n\nNow when you render your document, each citation entry will be followed by a small snippet of text reading \"Cited X times\", where X is the number of times each reference was cited in your document. \n",
"supporting": [],
"filters": [
"rmarkdown/pagebreak.lua"
],
"includes": {},
"engineDependencies": {},
"preserve": {},
"postProcess": true
}
}
Binary file modified _freeze/site_libs/vis-9.1.0/img/network/acceptDeleteIcon.png
Binary file modified _freeze/site_libs/vis-9.1.0/img/network/addNodeIcon.png
Binary file modified _freeze/site_libs/vis-9.1.0/img/network/backIcon.png
Binary file modified _freeze/site_libs/vis-9.1.0/img/network/connectIcon.png
Binary file modified _freeze/site_libs/vis-9.1.0/img/network/cross.png
Binary file modified _freeze/site_libs/vis-9.1.0/img/network/cross2.png
Binary file modified _freeze/site_libs/vis-9.1.0/img/network/deleteIcon.png
Binary file modified _freeze/site_libs/vis-9.1.0/img/network/downArrow.png
Binary file modified _freeze/site_libs/vis-9.1.0/img/network/editIcon.png
Binary file modified _freeze/site_libs/vis-9.1.0/img/network/leftArrow.png
Binary file modified _freeze/site_libs/vis-9.1.0/img/network/minus.png
Binary file modified _freeze/site_libs/vis-9.1.0/img/network/plus.png
Binary file modified _freeze/site_libs/vis-9.1.0/img/network/rightArrow.png
Binary file modified _freeze/site_libs/vis-9.1.0/img/network/upArrow.png
Binary file modified _freeze/site_libs/vis-9.1.0/img/network/zoomExtends.png
Binary file removed _site/avatar.jpg
Diff not rendered.
1,708 changes: 0 additions & 1,708 deletions _site/blog.html

This file was deleted.

2,399 changes: 0 additions & 2,399 deletions _site/blog.xml

This file was deleted.

777 changes: 0 additions & 777 deletions _site/cdi/index.html

This file was deleted.

Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Binary file removed _site/cv.pdf
Binary file not shown.
332 changes: 0 additions & 332 deletions _site/index.html

This file was deleted.

Loading

0 comments on commit 15785eb

Please sign in to comment.