Skip to content

Commit

Permalink
Actions
Browse files Browse the repository at this point in the history
Try to update the website via GitHub Action.
Also, turn the directory as a project by creating a project in existing folder.
  • Loading branch information
davidzgli committed Aug 19, 2024
1 parent 32292c0 commit 4851208
Show file tree
Hide file tree
Showing 12 changed files with 685 additions and 7 deletions.
512 changes: 512 additions & 0 deletions .Rhistory

Large diffs are not rendered by default.

25 changes: 25 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
on:
workflow_dispatch:
push:
branches: main

name: Quarto Publish

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

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

- name: Render and Publish
uses: quarto-dev/quarto-actions/publish@v2
with:
target: gh-pages
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
/.quarto/
/_site/
/_site/
.Rproj.user
17 changes: 17 additions & 0 deletions _freeze/index/execute-results/html.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"hash": "6770a9b1606487f9bfd982f1b0afe38e",
"result": {
"engine": "knitr",
"markdown": "---\ntitle: \"David\"\nsubtitle: \"Data Scientist\"\ndate: today\ndate-format: full\n# `profile.jpg` photo by Jan Tinneberg on https://unsplash.com\n# image: profile.jpg\nimage: david_maplepath_2018.jpg\nabout: # https://quarto.org/docs/websites/website-about.html\n # id: hero-heading\n # template: jolla\n template: solana\n image-width: 6em\n links:\n - icon: github\n # - icon: flag-fill\n text: Github\n href: https://github.com/davidzgli\n - icon: linkedin\n text: LinkedIn\n href: https://www.linkedin.com/in/zhiguang-li-8117b453\neditor_options: \n chunk_output_type: console\n---\n\n\n\n\n## About\n\nI am a data scientist at NIH. Currently, I am studying the DNA methylation changes in blood samples of old populations. I am also interested in machine learning and data visualization.\n\n<!-- :::{#hero-heading} -->\n\n## Education\n\n\nWuhan University, Wuhan \\| Hubei \\| Sept 1994 - June 1998.\n\nFudan University, Shanghai \\| Shanghai \\| Sept 1998 - June 2001.\n\nCAS, Beijing \\| Beijing \\| Sept 2004 - June 2008.\n\n\n## Experience\n\n**LEPS**, National Institute on Aging \\| Staff Scientist \\| April 2020 - present\n\n<!-- ::: -->\n\n## Scatter plot from mtcars dataset\n\n\n\n\n::: {.cell layout-align=\"center\"}\n\n```{.r .cell-code}\nlibrary(ggplot2)\nggplot(mtcars, aes(x = wt, y = mpg, colour = factor(cyl))) +\n geom_point()\n```\n\n::: {.cell-output-display}\n![](index_files/figure-html/unnamed-chunk-1-1.png){fig-align='center' width=576}\n:::\n:::\n\n\n\n\n## Table\n\n\n\n\n::: {.cell layout-align=\"center\"}\n\n```{.r .cell-code}\nhead(mtcars)\n```\n\n::: {.cell-output .cell-output-stdout}\n\n```\n mpg cyl disp hp drat wt qsec vs am gear carb\nMazda RX4 21.0 6 160 110 3.90 2.620 16.46 0 1 4 4\nMazda RX4 Wag 21.0 6 160 110 3.90 2.875 17.02 0 1 4 4\nDatsun 710 22.8 4 108 93 3.85 2.320 18.61 1 1 4 1\nHornet 4 Drive 21.4 6 258 110 3.08 3.215 19.44 1 0 3 1\nHornet Sportabout 18.7 8 360 175 3.15 3.440 17.02 0 0 3 2\nValiant 18.1 6 225 105 2.76 3.460 20.22 1 0 3 1\n```\n\n\n:::\n:::\n\n\n\n\n\n### The following is a test\n\n\n\n\n{{< placeholder 400 200 >}}\n\n\n{{< lipsum 1 >}}\n\n\n{{< placeholder 400 100 format=svg >}}\n\n\n{{< lipsum 2 >}}\n\n",
"supporting": [
"index_files"
],
"filters": [
"rmarkdown/pagebreak.lua"
],
"includes": {},
"engineDependencies": {},
"preserve": {},
"postProcess": true
}
}
Binary file added _freeze/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.
7 changes: 7 additions & 0 deletions _freeze/site_libs/clipboard/clipboard.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions _quarto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,7 @@ format:
linestretch: 1.2
backgroundcolor: rgb(250, 250, 250)

execute:
freeze: auto


Loading

0 comments on commit 4851208

Please sign in to comment.