Skip to content

Commit

Permalink
Merge branch 'main' into enh/def-ipython
Browse files Browse the repository at this point in the history
  • Loading branch information
elletjies authored Mar 10, 2022
2 parents 508fea2 + dbf60c2 commit faeafc3
Show file tree
Hide file tree
Showing 11 changed files with 2,256 additions and 183 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/build-and-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ jobs:
- name: inspect content of folder
run: ls -alh _gh-site && ls -alh _gh-site/_data

- name: Deploy
- name: Deploy to site
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' && github.repository == 'carpentries/glosario' }}
uses: maxheld83/[email protected]
env:
BUILD_DIR: _gh-site/
GH_PAT: ${{ secrets.GH_PAT_DEPLOY }}
uses: JamesIves/[email protected]
with:
branch: site
folder: _gh-site
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ following to the `_config.yml` file under the `language:` entry, respecting the

### 3. Add the two-letter code to the script checking the content of the glossary

To make sure that entries in the glossary for the language added will be recognized, you need to add the two-letter ISO code for the language in the Python script `[utils/check-glossary.py](https://github.com/carpentries/glosario/blob/master/utils/check-glossary.py#L33)`:
To make sure that entries in the glossary for the language added will be recognized, you need to add the two-letter ISO code for the language in the Python script [`utils/check-glossary.py`](https://github.com/carpentries/glosario/blob/main/utils/check-glossary.py#L33):

```python
ENTRY_LANGUAGE_KEYS = {'af', 'am', 'ar', 'bn', 'de', 'en', 'es', 'fr', 'he', 'it', 'ja', 'nl', 'pt', 'zu'}
Expand Down
38 changes: 38 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,21 @@ languages:
আগে তাদের কি কি জানা উচিৎ, এবং তা তারা কোথা থেকে শিখতে পারবে। লেখকরা
লাইব্রেরি ফাংশন ব্যবহার করে তাদের পাঠ্যক্রমে বিভিন্ন ভাষাতে শব্দ ও সংজ্ঞার
সামঞ্জস্যপূর্ণ হাইপারলিঙ্ক যোগ করতে পারেন।
- key: el
name: Ελληνικά
title: Γλωσσάριο
blurb: >
Το `glosario` είναι ένα γλωσσάρι όρων που χρησιμοποιούνται στην επιστήμη
δεδομένων (data science). Είναι διαθέσιμο, σε μορφή ανοιχτού κώδικα,
στο διαδίκτυο καθώς και ως βιβλιοθήκη για τις γλώσσες
[R](https://github.com/carpentries/glosario-r/) και
[Python](https://github.com/carpentries/glosario-py/).
Προσθέτοντας λέξεις-κλειδιά του γλωσσαρίου στα μεταδεδομένα ενός μαθήματος,
οι συγγραφείς του μπορούν να δηλώσουν τι διδάσκει το μάθημα, τι θα πρέπει να
γνωρίζουν οι μαθητές πριν ξεκινήσουν, καθώς και το πού μπορούν να βρουν
αυτές τις γνώσεις. Οι συγγραφείς μπορούν επίσης να χρησιμοποιήσουν τις
συναρτήσεις της βιβλιοθήκης για να εισαγάγουν στα μαθήματά τους
συνδέσμους (hyperlinks) προς όρους και ορισμούς, σε διάφορες γλώσσες.
- key: en
name: English
title: Glossary
Expand Down Expand Up @@ -92,6 +107,11 @@ languages:
les élèves peuvent aller pour trouver ces informations. Les auteurs de leçons
peuvent aussi insérer des liens vers les définitions des termes utilisés dans leurs
leçons, et ce, en plusieurs langages.
- key: he
name: עִברִית
title: מילון מונחים
blurb: >
in translation
- key: it
name: Italiano
title: Glossario
Expand Down Expand Up @@ -224,3 +244,21 @@ languages:
maarifa hayo. Waandishi wanaweza pia kutumia vipengele kwenye maktaba
kuweka viungo thabiti vinavyo ashiria masharti na ufafanuzi kwenye
somo zao katika lugha yoyote ya kibinadamu.
- key: id
name: Bahasa Indonesia
title: Glosarium
blurb: >
`glosario` adalah glosarium-kode-terbuka dari istilah yang digunakan dalam
data science yang tersedia daring dan juga sebagai library dalam bahasa pemrograman
[R](https://github.com/carpentries/glosario-r/) dan
[Python](https://github.com/carpentries/glosario-py/).
Dengan menambahkan glosarium dalam metadata pelajaran, penulis dapat melacak
apa yang diajarkan, apa yang harus dipelajari sebelumnya, dan di mana
mereka dapat menelusuri lebih lanjut. Penulis dapat juga menggunakan fungsi dalam
library untuk memasukkan hyperlink istilah secara konsisten berikut definisinya
dalam pelajaran dalam beberapa bahasa.
- key: st
name: Southern Sotho
title: Glossary
blurb: >-
In translation
18 changes: 18 additions & 0 deletions _includes/matomo.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@

<!-- Matomo -->
<script>
var _paq = window._paq = window._paq || [];
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(["setDoNotTrack", true]);
_paq.push(["disableCookies"]);
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="https://carpentries.matomo.cloud/";
_paq.push(['setTrackerUrl', u+'matomo.php']);
_paq.push(['setSiteId', '12']);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.async=true; g.src='//cdn.matomo.cloud/carpentries.matomo.cloud/matomo.js'; s.parentNode.insertBefore(g,s);
})();
</script>
<!-- End Matomo Code -->
2 changes: 2 additions & 0 deletions _layouts/glossary.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,15 @@
{%- else -%}
{%- assign direction = 'ltr' %}
{%- endif -%}
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<title>{{site.title}}</title>
<link href="{{ '/static/site.css' | relative_url }}" rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css" href="{{site.baseurl}}/assets/css/glossary.css" />
<link rel="stylesheet" type="text/css" href="{{ relative_root_path }}/assets/css/glossary.css" />
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
{% include matomo.html %}
</head>
<body>
<main>
Expand Down
2 changes: 2 additions & 0 deletions _layouts/page.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
<!DOCTYPE html>
{% assign language = page.permalink | replace: '/', '' | default: 'en' %}
<html xmlns="http://www.w3.org/1999/xhtml" lang="{{language}}">
<head>
<title>{{site.title}}</title>
<link href="{{ '/static/site.css' | relative_url }}" rel="stylesheet" type="text/css">
<link rel="stylesheet" type="text/css" href="{{ '/assets/css/glossary.css' | relative_url }}" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
{% include matomo.html %}
</head>
<body>
<main>
Expand Down
6 changes: 6 additions & 0 deletions el.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
permalink: /el/
layout: glossary
direction: ltr
---
{% include glossary.html %}
Loading

0 comments on commit faeafc3

Please sign in to comment.