diff --git a/.env b/.env new file mode 100644 index 0000000..8539528 Binary files /dev/null and b/.env differ diff --git a/.git-crypt/.gitattributes b/.git-crypt/.gitattributes new file mode 100644 index 0000000..665b10e --- /dev/null +++ b/.git-crypt/.gitattributes @@ -0,0 +1,4 @@ +# Do not edit this file. To specify the files to encrypt, create your own +# .gitattributes file in the directory where your files are. +* !filter !diff +*.gpg binary diff --git a/.git-crypt/keys/default/0/8AA5460E0D207F85D57B86990F0FEC7CC27BA5D5.gpg b/.git-crypt/keys/default/0/8AA5460E0D207F85D57B86990F0FEC7CC27BA5D5.gpg new file mode 100644 index 0000000..0f43712 Binary files /dev/null and b/.git-crypt/keys/default/0/8AA5460E0D207F85D57B86990F0FEC7CC27BA5D5.gpg differ diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..889dc35 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,2 @@ +.env filter=git-crypt diff=git-crypt +auth/**/* filter=git-crypt diff=git-crypt diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..5176199 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,54 @@ +on: + workflow_dispatch: + push: + branches: main + +name: Quarto Publish + +jobs: + build-deploy: + runs-on: ubuntu-latest + permissions: + contents: write + env: + GIT_CRYPT_KEY64: ${{ secrets.GIT_CRYPT_KEY64 }} + steps: + - name: Check out repository + uses: actions/checkout@v4 + + - name: Install system dependencies + run: | + apt-get update && apt-get install -y --no-install-recommends \ + git-crypt + + - name: Trust git repo + run: | + git config --global --add safe.directory /__w/acdc-db-handbook/acdc-db-handbook + + - name: Decrypt repository using symmetric key + run: | + echo $GIT_CRYPT_KEY64 > git_crypt_key.key64 && base64 -di git_crypt_key.key64 > git_crypt_key.key && git-crypt unlock git_crypt_key.key + rm git_crypt_key.key git_crypt_key.key64 + + - name: Set up Quarto + uses: quarto-dev/quarto-actions/setup@v2 + + - name: Install tinytex + run: quarto install tinytex + + - name: Install R + uses: r-lib/actions/setup-r@v2 + with: + r-version: '4.4.1' + + - name: Install R Dependencies + uses: r-lib/actions/setup-renv@v2 + with: + cache-version: 1 + + - name: Render and Publish + uses: quarto-dev/quarto-actions/publish@v2 + with: + target: gh-pages + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/.gitignore b/.gitignore index b5e9167..6923873 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ /.quarto/ +/docs/ diff --git a/preamble.tex b/preamble.tex deleted file mode 100644 index f788e6c..0000000 --- a/preamble.tex +++ /dev/null @@ -1,67 +0,0 @@ -\usepackage{booktabs} -\usepackage{color} -\usepackage{tcolorbox} -\usepackage{float} -\graphicspath{ {images/} } - -\newenvironment{rmdremind} - {\begin{tcolorbox}[width=\textwidth, - colback = {white}, - title = {\textbf{Remember}}, - colbacktitle = lightgray, - coltitle = black] - \begin{includegraphics}[scale = 1]{remind.png} - \begin{itemize}} - {\end{itemize} - \end{includegraphics} - \end{tcolorbox}} - -\newenvironment{rmdnote} - {\begin{tcolorbox}[width=\textwidth, - colback = {white}, - title = {\textbf{Note}}, - colbacktitle = lightgray, - coltitle = black] - \begin{includegraphics}[scale = 1]{pencil.png}} - {\end{includegraphics} - \end{tcolorbox}} - -\newenvironment{rmdexercise} - {\begin{tcolorbox}[width=\textwidth, - colback = {white}, - title = {\textbf{Exercise}}, - colbacktitle = lightgray, - coltitle = black] - \begin{includegraphics}[scale = 1]{exercise.png}} - {\end{includegraphics} - \end{tcolorbox}} - -\newenvironment{rmdinfo} - {\begin{tcolorbox}[width=\textwidth, - colback = {white}, - title = {\textbf{Info}}, - colbacktitle = lightgray, - coltitle = black] - \begin{includegraphics}[scale = 1]{info.png}} - {\end{includegraphics} - \end{tcolorbox}} - -\newenvironment{rmdwarning} - {\begin{tcolorbox}[width=\textwidth, - colback = {white}, - title = {\textbf{Warning}}, - colbacktitle = lightgray, - coltitle = black] - \begin{includegraphics}[scale = 1]{warning.png}} - {\end{includegraphics} - \end{tcolorbox}} - -\newenvironment{rmddownload} - {\begin{tcolorbox}[width=\textwidth, - colback = {white}, - title = {\textbf{Download}}, - colbacktitle = lightgray, - coltitle = black] - \begin{includegraphics}[scale = 1]{download.png}} - {\end{includegraphics} - \end{tcolorbox}} \ No newline at end of file diff --git a/style.css b/style.css deleted file mode 100644 index f317b43..0000000 --- a/style.css +++ /dev/null @@ -1,14 +0,0 @@ -p.caption { - color: #777; - margin-top: 10px; -} -p code { - white-space: inherit; -} -pre { - word-break: normal; - word-wrap: normal; -} -pre code { - white-space: inherit; -}