From 58c1ac729a1ccae64451f0bb87800d90f5e22733 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Moritz=20M=C3=A4hr?= Date: Mon, 26 Aug 2024 07:56:49 +0200 Subject: [PATCH] feat: add tracking --- .github/workflows/quarto-publish.yml | 20 ++++++++++---------- blog/_quarto.yml | 6 +++++- blog/custom-header.html | 5 +++++ blog/custom.scss | 12 ++++++++++++ 4 files changed, 32 insertions(+), 11 deletions(-) create mode 100644 blog/custom-header.html create mode 100644 blog/custom.scss diff --git a/.github/workflows/quarto-publish.yml b/.github/workflows/quarto-publish.yml index 1a05a2d..c16342a 100644 --- a/.github/workflows/quarto-publish.yml +++ b/.github/workflows/quarto-publish.yml @@ -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 @@ -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 @@ -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 diff --git a/blog/_quarto.yml b/blog/_quarto.yml index b7a33e1..f0f4230 100644 --- a/blog/_quarto.yml +++ b/blog/_quarto.yml @@ -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 @@ -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] diff --git a/blog/custom-header.html b/blog/custom-header.html new file mode 100644 index 0000000..0692061 --- /dev/null +++ b/blog/custom-header.html @@ -0,0 +1,5 @@ + diff --git a/blog/custom.scss b/blog/custom.scss new file mode 100644 index 0000000..faccca7 --- /dev/null +++ b/blog/custom.scss @@ -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; +}