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

Sync upstream #1059

Closed
17 changes: 16 additions & 1 deletion .github/workflows/sandpaper-main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
branches:
- main
- master
- l10n_main
schedule:
- cron: '0 0 * * 2'
workflow_dispatch:
Expand Down Expand Up @@ -36,6 +37,8 @@ jobs:

- name: "Checkout Lesson"
uses: actions/checkout@v4
with:
ref: l10n_main

- name: "Set up R"
uses: r-lib/actions/setup-r@v2
Expand All @@ -56,9 +59,21 @@ jobs:
with:
cache-version: ${{ secrets.CACHE_VERSION }}

- name: Create and populate .Renviron file with LANG_CODE secret
run: |
echo "LANG_CODE=${{ secrets.LANG_CODE }}" >> ~/.Renviron

- name: "Deploy Site"
run: |
reset <- "${{ github.event.inputs.reset }}" == "true"
options(repos = c(carpentries = "https://carpentries.r-universe.dev/", CRAN = "https://cran.rstudio.com/"))
renv::install("carpentries/sandpaper")
renv::install("joelnitta/dovetail")
sandpaper::package_cache_trigger(TRUE)
sandpaper:::ci_deploy(reset = reset)
lesson_trans_dir <- paste0(tempdir(), "/dovetail-", Sys.Date())
lang_code <- Sys.getenv("LANG_CODE", unset = "en")
dovetail:::make_translated_dir(
translated_dir = lesson_trans_dir, overwrite = TRUE, lang = lang_code,
l10n_branch = NULL, clean = FALSE)
sandpaper:::ci_deploy(path = lesson_trans_dir, reset = reset)
shell: Rscript {0}
29 changes: 8 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,29 +1,16 @@
[![Create a Slack Account with us](https://img.shields.io/badge/Create_Slack_Account-The_Carpentries-071159.svg)](https://slack-invite.carpentries.org/)
[![Slack Status](https://img.shields.io/badge/Slack_Channel-swc--git-E01563.svg)](https://carpentries.slack.com/messages/C91JS49HD)
[![Create a Slack Account with us][create_slack_svg]][slack_invite]

# git-novice
# Internationalisation hub repository for Software Carpentry git-novice

An introduction to version control for novices using Git.
Please see [https://swcarpentry.github.io/git-novice/](https://swcarpentry.github.io/git-novice/) for a rendered version of this material,
or [the lesson template documentation][lesson-example] for instructions on formatting, building, and submitting material.

Maintainers:
Please see [https://swcarpentry.github.io/git-novice/](https://swcarpentry.github.io/git-novice/) for a rendered version of this material in english.

- [Kat Koziar][koziar_kat]: [@kekoziar](https://github.com/kekoziar)
- [Martino Sorbaro][sorbaro_mart]: [@martinosorb](https://github.com/martinosorb)
More info to follow.

Alumni maintainers:
[create_slack_svg]: https://img.shields.io/badge/Create_Slack_Account-The_Carpentries-071159.svg
[slack_invite]: https://slack-invite.carpentries.org/

- [Ivan Gonzalez][gonzalez_ivan]: [@iglpdc](https://github.com/iglpdc)
- [Daisie Huang][huang_daisie]: [@daisieh](https://github.com/daisieh)
- [Nima Hejazi][hejazi_nima]: [@nhejazi](https://github.com/nhejazi)
- [Madicken Munk][munk_madicken]: [@munkm](https://github.com/munkm)

[![Create a Slack Account with us](https://img.shields.io/badge/Create_Slack_Account-The_Carpentries-071159.svg)](https://slack-invite.carpentries.org/)
[![Slack Status](https://img.shields.io/badge/Slack_Channel-swc--git-E01563.svg)](https://carpentries.slack.com/messages/C91JS49HD)

[lesson-example]: https://carpentries.github.io/sandpaper-docs/
[hejazi_nima]: https://carpentries.org/instructors/#nhejazi
[koziar_kat]: https://carpentries.org/instructors/#kekoziar
[munk_madicken]: https://carpentries.org/instructors/#munkm
[gonzalez_ivan]: https://carpentries.org/instructors/#iglpdc
[huang_daisie]: https://software-carpentry.org/team/#huang_daisie
[sorbaro_mart]: https://carpentries.org/instructors/#martinosorb
41 changes: 41 additions & 0 deletions crowdin.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
preserve_hierarchy: true

files:
- source: /episodes/*.Rmd
dest: /episodes/%file_name%.md
type: md
translation: /locale/%two_letters_code%/episodes/%original_file_name%
update_option: update_as_unapproved
- source: /episodes/*.md
translation: /locale/%two_letters_code%/episodes/%original_file_name%
update_option: update_as_unapproved
- source: /instructors/*.md
translation: /locale/%two_letters_code%/instructors/%original_file_name%
update_option: update_as_unapproved
- source: /learners/*.md
translation: /locale/%two_letters_code%/learners/%original_file_name%
update_option: update_as_unapproved
- source: /profiles/*.md
translation: /locale/%two_letters_code%/profiles/%original_file_name%
update_option: update_as_unapproved
- source: /CODE_OF_CONDUCT.md
translation: /locale/%two_letters_code%/%original_file_name%
update_option: update_as_unapproved
- source: /config.yaml
translation: /locale/%two_letters_code%/%original_file_name%
update_option: update_as_unapproved
- source: /CONTRIBUTING.md
translation: /locale/%two_letters_code%/%original_file_name%
update_option: update_as_unapproved
- source: /LICENSE.md
translation: /locale/%two_letters_code%/%original_file_name%
update_option: update_as_unapproved
- source: /README.md
translation: /locale/%two_letters_code%/%original_file_name%
update_option: update_as_unapproved
- source: /index.md
translation: /locale/%two_letters_code%/%original_file_name%
update_option: update_as_unapproved
- source: /links.md
translation: /locale/%two_letters_code%/%original_file_name%
update_option: update_as_unapproved
Loading