Skip to content

Commit 2b7e2de

Browse files
authored
Initial commit
0 parents  commit 2b7e2de

File tree

125 files changed

+18087
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

125 files changed

+18087
-0
lines changed
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: Feedback
2+
description: Nutzen Sie diese Vorlage, um Feedback zur Fallstudie zu geben
3+
title: "Feedback: "
4+
labels: ["feedback"]
5+
assignees: []
6+
body:
7+
- type: markdown
8+
attributes:
9+
value: |
10+
Vielen Dank für Ihr Feedback! Ihre Rückmeldung hilft uns, die Materialien gezielt zu verbessern.
11+
12+
- type: input
13+
id: section
14+
attributes:
15+
label: Abschnitt/Modul
16+
description: Auf welchen Teil der Fallstudie bezieht sich Ihr Feedback?
17+
placeholder: "z.B. Kapitel B, Abschnitt 2, gesamtes interaktives Lehrbuch"
18+
validations:
19+
required: false
20+
21+
- type: dropdown
22+
id: feedback-type
23+
attributes:
24+
label: Art des Feedbacks
25+
options:
26+
- Inhalt & Aufbau
27+
- Methodik & Didaktik
28+
- Beispiele & Übungen
29+
- Technische Aspekte
30+
- Praxisrelevanz
31+
- Textliche Überarbeitung
32+
- Sonstiges
33+
validations:
34+
required: true
35+
36+
- type: textarea
37+
id: feedback
38+
attributes:
39+
label: Ihr Feedback
40+
description: Was möchten Sie uns mitteilen?
41+
placeholder: Bitte beschreiben Sie Ihr Feedback so konkret wie möglich.
42+
validations:
43+
required: true
44+
45+
- type: textarea
46+
id: suggestion
47+
attributes:
48+
label: Verbesserungsvorschlag
49+
description: Haben Sie einen konkreten Vorschlag zur Verbesserung?
50+
placeholder: Optional - Ihre Ideen für mögliche Verbesserungen
51+
validations:
52+
required: false

.github/ISSUE_TEMPLATE/frage.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Frage
2+
description: Nutzen Sie diese Vorlage, um eine Frage zu dieser Fallstudie zu stellen
3+
title: "Frage: "
4+
labels: ["question"]
5+
assignees: []
6+
body:
7+
- type: markdown
8+
attributes:
9+
value: |
10+
Vielen Dank, dass Sie sich die Zeit nehmen, eine Frage zu stellen!
11+
12+
- type: input
13+
id: section
14+
attributes:
15+
label: Abschnitt/Modul
16+
description: Zu welchem Teil der Fallstudie ist Ihre Frage?
17+
placeholder: "z.B. Kapitel B, Abschnitt 2"
18+
validations:
19+
required: false
20+
21+
- type: textarea
22+
id: question
23+
attributes:
24+
label: Ihre Frage
25+
description: Was möchten Sie wissen?
26+
placeholder: Bitte formulieren Sie Ihre Frage so präzise wie möglich.
27+
validations:
28+
required: true
29+
30+
- type: dropdown
31+
id: question-type
32+
attributes:
33+
label: Art der Frage
34+
description: Wählen Sie die Art Ihrer Frage aus
35+
options:
36+
- Verständnis des Inhalts
37+
- Technische Umsetzung
38+
- Forschungsdesign & Methodik
39+
- Datenbezogen
40+
- Sonstiges
41+
validations:
42+
required: true
Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
name: Deploy book with Python and R
2+
3+
on:
4+
workflow_run:
5+
workflows: ["Update Metadata"]
6+
types:
7+
- completed
8+
branches:
9+
- main
10+
11+
# This job installs dependencies, builds the book, and deploys it to GitHub Pages
12+
# only runs if "Update Metadata" workflow is successful
13+
jobs:
14+
deploy-book:
15+
runs-on: ubuntu-latest
16+
permissions:
17+
pages: write
18+
id-token: write
19+
if: ${{ github.event.workflow_run.conclusion == 'success' }}
20+
steps:
21+
- name: Checkout repository
22+
uses: actions/checkout@v4
23+
24+
# Python
25+
- name: Set up Python 3.11
26+
uses: actions/setup-python@v5
27+
with:
28+
python-version: 3.11
29+
cache: pip
30+
31+
- name: Install Python dependencies
32+
run: |
33+
pip install -r requirements.txt
34+
35+
36+
# R
37+
- name: Set up R
38+
uses: r-lib/actions/setup-r@v2
39+
40+
- name: Install R dependencies
41+
uses: r-lib/actions/setup-r-dependencies@v2
42+
with:
43+
cache: true
44+
cache-version: 2
45+
packages: |
46+
any::tidyverse
47+
any::IRkernel
48+
install-pandoc: false
49+
install-quarto: false
50+
51+
- name: Set up IRkernel
52+
run: |
53+
IRkernel::installspec(name="ir", displayname="R")
54+
shell: Rscript {0}
55+
56+
57+
# check all kernels
58+
- name: Log all available kernels
59+
run: |
60+
jupyter kernelspec list
61+
62+
# only caches if set up in _config.yml with:
63+
# execute:
64+
# execute_notebooks: cache
65+
- name: Cache executed notebooks
66+
uses: actions/cache@v3
67+
with:
68+
path: _build/.jupyter_cache
69+
key: jupyter-book-cache-${{ hashFiles('requirements.txt') }}
70+
71+
- name: Build the book
72+
run: |
73+
jupyter-book build .
74+
75+
- name: Upload book artifact
76+
uses: actions/upload-pages-artifact@v3
77+
with:
78+
path: "_build/html"
79+
80+
- name: Deploy to GitHub Pages
81+
id: deployment
82+
uses: actions/deploy-pages@v4
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
name: Deploy book with Python
2+
3+
on:
4+
workflow_run:
5+
workflows: ["Update Metadata"]
6+
types:
7+
- completed
8+
branches:
9+
- main
10+
11+
# This job installs dependencies, builds the book, and deploys it to GitHub Pages
12+
# only runs if "Update Metadata" workflow is successful
13+
jobs:
14+
deploy-book:
15+
runs-on: ubuntu-latest
16+
permissions:
17+
pages: write
18+
id-token: write
19+
if: ${{ github.event.workflow_run.conclusion == 'success' }}
20+
steps:
21+
- name: Checkout repository
22+
uses: actions/checkout@v4
23+
24+
# Python
25+
- name: Set up Python 3.11
26+
uses: actions/setup-python@v5
27+
with:
28+
python-version: 3.11
29+
cache: pip
30+
31+
- name: Install Python dependencies
32+
run: |
33+
pip install -r requirements.txt
34+
35+
36+
# check all kernels
37+
- name: Log all available kernels
38+
run: |
39+
jupyter kernelspec list
40+
41+
# only caches if set up in _config.yml with:
42+
# execute:
43+
# execute_notebooks: cache
44+
- name: Cache executed notebooks
45+
uses: actions/cache@v3
46+
with:
47+
path: _build/.jupyter_cache
48+
key: jupyter-book-cache-${{ hashFiles('requirements.txt') }}
49+
50+
- name: Build the book
51+
run: |
52+
jupyter-book build .
53+
54+
- name: Upload book artifact
55+
uses: actions/upload-pages-artifact@v3
56+
with:
57+
path: "_build/html"
58+
59+
- name: Deploy to GitHub Pages
60+
id: deployment
61+
uses: actions/deploy-pages@v4
Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
name: Deploy book with Python, SPARQL, and R
2+
3+
on:
4+
workflow_run:
5+
workflows: ["Update Metadata"]
6+
types:
7+
- completed
8+
branches:
9+
- main
10+
11+
# This job installs dependencies, builds the book, and deploys it to GitHub Pages
12+
# only runs if "Update Metadata" workflow is successful
13+
jobs:
14+
deploy-book:
15+
runs-on: ubuntu-latest
16+
permissions:
17+
pages: write
18+
id-token: write
19+
if: ${{ github.event.workflow_run.conclusion == 'success' }}
20+
steps:
21+
- name: Checkout repository
22+
uses: actions/checkout@v4
23+
24+
# Python
25+
- name: Set up Python 3.11
26+
uses: actions/setup-python@v5
27+
with:
28+
python-version: 3.11
29+
cache: pip
30+
31+
- name: Install Python dependencies
32+
run: |
33+
pip install -r requirements.txt
34+
35+
36+
# R
37+
- name: Set up R
38+
uses: r-lib/actions/setup-r@v2
39+
40+
- name: Install R dependencies
41+
uses: r-lib/actions/setup-r-dependencies@v2
42+
with:
43+
cache: true
44+
cache-version: 2
45+
packages: |
46+
any::tidyverse
47+
any::IRkernel
48+
install-pandoc: false
49+
install-quarto: false
50+
51+
- name: Set up IRkernel
52+
run: |
53+
IRkernel::installspec(name="ir", displayname="R")
54+
shell: Rscript {0}
55+
56+
57+
# SPARQL
58+
- name: Install SPARQL kernel
59+
run: |
60+
jupyter sparqlkernel install --user
61+
62+
63+
# check all kernels
64+
- name: Log all available kernels
65+
run: |
66+
jupyter kernelspec list
67+
68+
# only caches if set up in _config.yml with:
69+
# execute:
70+
# execute_notebooks: cache
71+
- name: Cache executed notebooks
72+
uses: actions/cache@v3
73+
with:
74+
path: _build/.jupyter_cache
75+
key: jupyter-book-cache-${{ hashFiles('requirements.txt') }}
76+
77+
- name: Build the book
78+
run: |
79+
jupyter-book build .
80+
81+
- name: Upload book artifact
82+
uses: actions/upload-pages-artifact@v3
83+
with:
84+
path: "_build/html"
85+
86+
- name: Deploy to GitHub Pages
87+
id: deployment
88+
uses: actions/deploy-pages@v4
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: Update Metadata
2+
3+
on:
4+
push:
5+
workflow_dispatch:
6+
7+
# Prevent infinite loops when workflow commits changes
8+
concurrency:
9+
group: ${{ github.workflow }}-${{ github.ref }}
10+
cancel-in-progress: true
11+
12+
jobs:
13+
update-metadata:
14+
runs-on: ubuntu-latest
15+
# Need write permission to push changes
16+
permissions:
17+
contents: write
18+
steps:
19+
- name: Checkout repository
20+
uses: actions/checkout@v4
21+
with:
22+
ref: ${{ github.ref }}
23+
24+
- name: Set up Python
25+
uses: actions/setup-python@v5
26+
with:
27+
python-version: '3.11'
28+
cache: pip
29+
30+
- name: Install dependencies
31+
run: |
32+
python -m pip install --upgrade pip
33+
pip install pyyaml
34+
35+
- name: Update metadata files
36+
run: python -m quadriga.metadata.run_all
37+
38+
- name: Check if files changed
39+
id: check_changes
40+
run: |
41+
if git diff --quiet metadata.yml && git diff --quiet CITATION.bib && git diff --quiet CITATION.cff; then
42+
echo "changes_detected=false" >> $GITHUB_OUTPUT
43+
else
44+
echo "changes_detected=true" >> $GITHUB_OUTPUT
45+
fi
46+
47+
- name: Commit changes if necessary
48+
if: steps.check_changes.outputs.changes_detected == 'true'
49+
run: |
50+
git config --local user.email "github-actions[bot]@users.noreply.github.com"
51+
git config --local user.name "github-actions[bot]"
52+
git add metadata.yml CITATION.bib
53+
git commit -m "[Automated] Update metadata files"
54+
git push

.gitignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
conda
2+
.venv
3+
_build
4+
__pycache__
5+
quadriga1/
6+
venv/
7+
**/.DS_Store
8+
.vscode
9+
**/.ipynb_checkpoints

0 commit comments

Comments
 (0)