Skip to content

Commit

Permalink
feat: add tracking
Browse files Browse the repository at this point in the history
  • Loading branch information
maehr committed Aug 26, 2024
1 parent 605b67d commit 58c1ac7
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 11 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/quarto-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,15 @@ jobs:
# add software dependencies here and any libraries

# From https://github.com/actions/setup-python
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
cache: 'pip'
# - name: Setup Python
# uses: actions/setup-python@v5
# with:
# python-version: '3.10'
# cache: 'pip'

- run: pip install jupyter
# - run: pip install jupyter

- run: find blog -name 'requirements.txt' -exec pip install -r {} \;
# - run: find blog -name 'requirements.txt' -exec pip install -r {} \;

# From https://github.com/r-lib/actions/tree/v2-branch/setup-r
# - name: Setup R
Expand All @@ -77,13 +77,13 @@ jobs:
- name: Render Quarto Project
uses: quarto-dev/quarto-actions/render@v2
with:
path: .
path: blog
to: html

- name: JamPack
if: github.event_name != 'pull_request'
run: |
npx @divriots/jampack .
npx @divriots/jampack blog/_site
# To publish to Netlify, RStudio Connect, or GitHub Pages, uncomment
# the appropriate block below
Expand All @@ -107,7 +107,7 @@ jobs:
uses: quarto-dev/quarto-actions/publish@v2
with:
target: gh-pages
path: _site
path: blog/_site
render: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # this secret is always available for github actions
Expand Down
6 changes: 5 additions & 1 deletion blog/_quarto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@ format:
html:
link-external-icon: true
link-external-newwindow: true
theme: pulse
theme:
- pulse
- custom.scss
toc: true
toc-location: left
citations-hover: true
Expand All @@ -71,6 +73,8 @@ format:
# - text: Data Import Code
# icon: file-code
# href: data-import.py
include-in-header:
- custom-header.html
pdf:
documentclass: scrartcl
geometry: [a4paper, bindingoffset=0mm, inner=30mm, outer=30mm, top=30mm, bottom=30mm]
Expand Down
5 changes: 5 additions & 0 deletions blog/custom-header.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<script
defer
data-domain="moritzmaehr.ch"
src="https://plausible.io/js/script.outbound-links.js"
></script>
12 changes: 12 additions & 0 deletions blog/custom.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/*-- scss:rules --*/

a {
word-wrap: break-word;
overflow-wrap: break-word;
white-space: pre-wrap;
}

a:hover {
text-decoration: underline;
text-decoration-thickness: 3px;
}

0 comments on commit 58c1ac7

Please sign in to comment.