From c6d816c1aa1755e83088d8b4712265c98bc3d16a Mon Sep 17 00:00:00 2001 From: alessandrofelder Date: Mon, 9 Oct 2023 15:05:33 +0100 Subject: [PATCH] reusable variable for repo --- index.qmd | 2 ++ slides/collaborate.qmd | 4 ++-- slides/documentation.qmd | 4 ++-- slides/testing.qmd | 2 +- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/index.qmd b/index.qmd index ed38e23..0656ef0 100644 --- a/index.qmd +++ b/index.qmd @@ -42,6 +42,8 @@ format: margin-left: 0 embed-resources: true page-layout: full +exercises: + org-repo: "rse-best-practices-course-2023/rse-best-practices-playground" --- ## [Neuroinformatics unit](https://neuroinformatics.dev/people.html){preview-link="true"} diff --git a/slides/collaborate.qmd b/slides/collaborate.qmd index 6306040..e7d6353 100644 --- a/slides/collaborate.qmd +++ b/slides/collaborate.qmd @@ -27,7 +27,7 @@ ::: :::: -## [The development cycle](https://github.com/neuroinformatics-unit/rse-best-practices-playground){preview-link="true" style="text-align: center"} +## [The development cycle](https://github.com/{{< meta exercises.org-repo >}}){preview-link="true" style="text-align: center"} :::: {.columns} @@ -43,7 +43,7 @@ ::: :::: -## Exercise: Have you set up [your playground?](https://github.com/neuroinformatics-unit/rse-best-practices-playground-trial/issues/1){preview-link="true" style="text-align: center"} +## Exercise: Have you set up [your playground?](https://github.com/{{< meta exercises.org-repo >}}/issues/1){preview-link="true" style="text-align: center"} ## What makes (research) code good? diff --git a/slides/documentation.qmd b/slides/documentation.qmd index 2ef7b71..a55b732 100644 --- a/slides/documentation.qmd +++ b/slides/documentation.qmd @@ -48,7 +48,7 @@ def get_named_colors_mapping(): Docstrings (should) follow an [agreed convention](https://peps.python.org/pep-0257/){preview-link="true"} -## A first task: [writing a docstring](https://github.com/neuroinformatics-unit/rse-best-practices-playground) +## A first task: [writing a docstring](https://github.com/{{< meta exercises.org-repo >}}) ``` {.python} def calculate_fastest_time(time_list): @@ -60,5 +60,5 @@ def calculate_fastest_time(time_list): ``` ::: {style="text-align: center; margin-top: 1em"} -[Exercise: write a docstring for a function in `times.py`](https://github.com/neuroinformatics-unit/rse-best-practices-playground) +[Exercise: write a docstring for a function in `times.py`](https://github.com/{{< meta exercises.org-repo >}}/issues/2) ::: \ No newline at end of file diff --git a/slides/testing.qmd b/slides/testing.qmd index 646c6d4..e4476c4 100644 --- a/slides/testing.qmd +++ b/slides/testing.qmd @@ -66,7 +66,7 @@ def test_fastest_time_in_a_specific_case(): ## Exercise: convert a sanity check into a test -[Testing exercise](https://github.com/neuroinformatics-unit/rse-good-practice-playground/issues/2) +[Testing exercise](https://github.com/{{< meta exercises.org-repo >}}/issues/2) ## How to think about what to test