Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handbook v0.1 vn #172

Merged
merged 3 commits into from
Jun 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion .github/workflows/render_book_on_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@ jobs:
# - name: Render the book
# # uses: quarto-dev/quarto-actions/render@v2
# run: Rscript -e 'source("quarto_runfile.R")'
- name: Fix locale
run: |
export LANG=en_US.UTF-8
export LC_CTYPE=en_US.UTF-8
export LC_ALL=en_US.UTF-8

- name: Render the book
shell: Rscript {0}
Expand All @@ -74,10 +79,11 @@ jobs:
git add .
git commit -m "CI added changes `date +'%Y-%m-%d %H:%M:%S'`" || echo "No changes to commit"
git push origin || echo "No changes to commit"

- name: Push changes
uses: ad-m/github-push-action@master
with:
branch: main
branch: master
github_token: ${{ secrets.GITHUB_TOKEN }}
force: true

Expand Down
123 changes: 58 additions & 65 deletions _quarto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,50 @@ published-title: "Last updated"
# default: full
# group:
# - [full, small]
lightbox: true # Lightbox images allow a reader to click to see a larger version of the image (including any caption)

babelquarto:
languagecodes:
- name: vn
text: "Tiếng Việt"
- name: fr
text: "Français"
- name: es
text: "Español"
- name: jp
text: "日本"
- name: tr
text: "Türkçe"
- name: pt
text: "Português"
- name: ru
text: "Русский"
- name: de
text: "Deutsch"
- name: en
text: "English"

mainlanguage: 'en'
languages: ['fr', 'es', 'vn', 'jp', 'pt', 'tr', 'ru'] #'de' fr

title-vn: "Cẩm nang dịch tễ học với R"
title-fr: "Le Epi R Handbook"
title-es: "EpiRhandbook en español"
title-jp: "疫学のための R ハンドブック"
title-tr: "Epidemiyologun R Rehberi"
title-pt: "Manual de R para Epidemiologistas"
title-ru: "Справочник эпидемиолога R"
title-de: "EpiRhandbook auf Deutsch"

lang: en

format:
html:
include-in-header:
- banner.html
theme:
light: cosmo
dark: [darkly, theme-dark.scss]

book:
title: "The Epidemiologist R Handbook"
Expand All @@ -17,18 +61,18 @@ book:
# site-url: https://epirhandbook.com
sharing: ["twitter", "facebook", "linkedin"]
sidebar:
logo: "images/Applied_Epi_logo.png"
tools:
- icon: twitter
href: "https://twitter.com/appliedepi"
- icon: linkedin
href: "https://www.linkedin.com/company/appliedepi/"
# - icon: github
# menu:
# - text: Source Code
# url: "https://github.com/appliedepi/epihandbook_eng"
# - text: Report a Bug
# url: "https://github.com/appliedepi/epihandbook_eng/issues/new"
logo: "images/Applied_Epi_logo.png"
tools:
- icon: twitter
href: "https://twitter.com/appliedepi"
- icon: linkedin
href: "https://www.linkedin.com/company/appliedepi/"
# - icon: github
# menu:
# - text: Source Code
# url: "https://github.com/appliedepi/epihandbook_eng"
# - text: Report a Bug
# url: "https://github.com/appliedepi/epihandbook_eng/issues/new"

date: today
date-format: "MMM D, YYYY"
Expand All @@ -48,7 +92,7 @@ book:

# ABOUT BOOK
- part: "About this book"
part-vn: "Về cuốn sách này"
part-vn: "Về cuốn sách này"
part-fr: "À propos de ce livre"
part-es: "Acerca de este libro"
part-jp: "本書について"
Expand Down Expand Up @@ -77,7 +121,7 @@ book:
- new_pages/r_projects.qmd
- new_pages/importing.qmd

# DATA MANGEMENT
# DATA MANAGEMENT
- part: "Data Management"
part-vn: "Quản lý dữ liệu"
part-fr: "Gestion des données"
Expand All @@ -98,7 +142,6 @@ book:
- new_pages/deduplication.qmd
- new_pages/iteration.qmd


# ANALYSIS
- part: "Analysis"
part-vn: "Phân tích dữ liệu"
Expand All @@ -123,7 +166,6 @@ book:
- new_pages/survival_analysis.qmd #done
- new_pages/gis.qmd #done


# DATA VIZ
- part: "Data Visualization"
part-vn: "Trực quan hóa dữ liệu"
Expand Down Expand Up @@ -165,7 +207,6 @@ book:
- new_pages/flexdashboard.qmd #done
- new_pages/shiny_basics.qmd #done


# MISCELLANEOUS
- part: "Miscellaneous"
part-vn: "Các chủ điểm khác"
Expand All @@ -187,51 +228,3 @@ book:
- new_pages/data_table.qmd #done
# new_pages/rstudio_advanced.qmd



lightbox: true # Lightbox images allow a reader to click to see a larger version of the image (including any caption)


babelquarto:
languagecodes:
- name: vn
text: "Tiếng Việt"
- name: fr
text: "Français"
- name: es
text: "Español"
- name: jp
text: "日本"
- name: tr
text: "Türkçe"
- name: pt
text: "Português"
- name: ru
text: "Русский"
- name: de
text: "Deutsch"
- name: en
text: "English"

mainlanguage: 'en'
languages: ['fr', 'es', 'vn', 'jp', 'pt', 'tr', 'ru'] #'de' fr

title-vn: Cẩm nang dịch tễ học với R
title-fr: Le Epi R Handbook
title-es: EpiRhandbook en español
title-jp: 疫学のための R ハンドブック
title-tr: Epidemiyologun R Rehberi
title-pt: Manual de R para Epidemiologistas
title-ru: Справочник эпидемиолога R
title-de: EpiRhandbook auf Deutsch


lang: en

format:
html:
include-in-header:
- banner.html
theme:
light: cosmo
dark: [darkly, theme-dark.scss] #superhero
Loading