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

Documentation feedback and improvements #360

Merged
merged 51 commits into from
Jan 23, 2024
Merged
Show file tree
Hide file tree
Changes from 14 commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
04fb3e3
Feedback
BTWS2 Nov 17, 2023
6ac56b4
examples
BTWS2 Nov 17, 2023
ad9e23f
Add types of syntax highlighting
BTWS2 Nov 17, 2023
a0fc134
testsuites
BTWS2 Nov 17, 2023
4695c46
syntax
BTWS2 Nov 17, 2023
8818099
reading activity draft
BTWS2 Nov 17, 2023
ceb72ea
reading activity
BTWS2 Nov 17, 2023
79cd926
reading activity
BTWS2 Nov 17, 2023
1c5d197
reading activity
BTWS2 Nov 17, 2023
bcc2592
indentation
BTWS2 Nov 17, 2023
199252e
newlines
BTWS2 Nov 17, 2023
95699c7
English
BTWS2 Nov 17, 2023
26df33c
remove author
BTWS2 Nov 20, 2023
e40abba
judge reference
BTWS2 Nov 20, 2023
96c9e73
Update nl/guides/exercises/examples/input-output/index.md
BTWS2 Jan 11, 2024
8b5fe65
Update nl/references/exercise-description/index.md
BTWS2 Jan 11, 2024
cd7553b
Update nl/faq/activities/index.md
BTWS2 Jan 11, 2024
bb2a97e
Update nl/guides/exercises/examples/command-line/index.md
BTWS2 Jan 11, 2024
9a5c53c
Update nl/faq/activities/index.md
BTWS2 Jan 11, 2024
1a83bd6
Update nl/references/exercise-description/index.md
BTWS2 Jan 11, 2024
b4536b1
Update nl/references/exercise-description/index.md
BTWS2 Jan 11, 2024
4c061be
Update nl/guides/exercises/creating-exercises/content/index.md
BTWS2 Jan 11, 2024
9aaf8be
Update nl/guides/exercises/creating-exercises/content/index.md
BTWS2 Jan 11, 2024
a7c13db
Update nl/guides/exercises/creating-exercises/content/index.md
BTWS2 Jan 11, 2024
6d2afed
Update nl/guides/exercises/creating-exercises/content/index.md
BTWS2 Jan 11, 2024
32c239f
Update nl/guides/exercises/creating-exercises/content/index.md
BTWS2 Jan 11, 2024
8b9f2a5
Update nl/guides/exercises/creating-exercises/content/index.md
BTWS2 Jan 11, 2024
dd09380
Update nl/guides/exercises/creating-exercises/content/index.md
BTWS2 Jan 11, 2024
90f0dd5
Update nl/guides/exercises/creating-exercises/content/index.md
BTWS2 Jan 11, 2024
ae2ff68
Update nl/guides/exercises/creating-exercises/content/index.md
BTWS2 Jan 11, 2024
7326551
Update nl/guides/exercises/creating-exercises/content/index.md
BTWS2 Jan 11, 2024
80a2c75
Update nl/guides/exercises/examples/input-output/index.md
BTWS2 Jan 11, 2024
a2a669b
Update nl/guides/exercises/examples/command-line/index.md
BTWS2 Jan 11, 2024
4bd601c
Update nl/guides/exercises/examples/_common.md
BTWS2 Jan 11, 2024
a376191
Update nl/guides/exercises/examples/_common.md
BTWS2 Jan 11, 2024
177dedc
remove idea and add item to index
BTWS2 Jan 11, 2024
379a013
change link
BTWS2 Jan 11, 2024
50390c0
whitespace
BTWS2 Jan 11, 2024
d65b0b3
Adjust capitalization to current state of dodona.be
BTWS2 Jan 11, 2024
c20d137
image size and kramdown
BTWS2 Jan 12, 2024
67c7dc6
Update nl/faq/activities/index.md
BTWS2 Jan 18, 2024
56d6530
Update nl/faq/index.md
BTWS2 Jan 18, 2024
1989f75
Update nl/references/exercise-description/index.md
BTWS2 Jan 18, 2024
58fed52
Update en/references/exercise-description/index.md
BTWS2 Jan 22, 2024
904806b
doctest and spelling
BTWS2 Jan 22, 2024
4b7783e
kramdown
BTWS2 Jan 22, 2024
1e7306f
advanced
BTWS2 Jan 22, 2024
baf9559
judges
BTWS2 Jan 22, 2024
736c38b
remove courses vs repositories
BTWS2 Jan 22, 2024
1be24a9
move content
BTWS2 Jan 22, 2024
4094ac9
spelling
BTWS2 Jan 22, 2024
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: 8 additions & 0 deletions .idea/.gitignore
BTWS2 marked this conversation as resolved.
Show resolved Hide resolved

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions .idea/dodona-edu.github.io.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 19 additions & 0 deletions .idea/inspectionProfiles/Project_Default.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/inspectionProfiles/profiles_settings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 23 additions & 0 deletions .idea/jupyter-settings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions en/faq/activities/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,14 @@ On the home page of Dodona, you can find all your drafts under _Draft exercises_

## How do I create new exercises? <Badge type="tip" text="teacher" />
As a teacher, you can use the hundreds of exercises that are available in Dodona, but you can also create new exercises yourself. You can follow [this guide](/en/guides/exercises/creating-exercises/introduction) for this.

## What is the difference between a course and a repository? <Badge type="tip" text="teacher" />
BTWS2 marked this conversation as resolved.
Show resolved Hide resolved
In Dodona, an "exercises repository" is a collection of exercises and reading activities managed in a linked GitHub repository.
These exercises can then be used in multiple "courses".

A "course" in Dodona is again a collection of exercises and reading activities structured in sequences.
Here you can, for example, structure exercises according to a desired learning path.
Courses are fully managed within Dodona.
A course can contain exercises from different exercise repositories.
A course also includes enrolled students.
In a course, you can monitor these students, make evaluations, answer questions, etc...
10 changes: 5 additions & 5 deletions en/faq/annotations/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@ You can also respond to an existing question from yourself or to a comment from

## How do I know if my question has been answered? <Badge type="tip" text="student" />

When a teacher answers your question, you will receive a notifications in Dodona. This notification will redirect you to the page where you asked the question.
When a teacher answers your question, you will receive a notification in Dodona. This notification will redirect you to the page where you asked the question.

![image](./comment_on_code.png)

## How can I enable/disable student questions? <Badge type="tip" text="teacher" />

Use the pencil in the top navigation bar of your course to go to the `edit` page. Here you can enable or disable student questions by checking or unchecking the box `Allow students to ask questions`.
Use the pencil in the top navigation bar of your course to go to the `Edit` page. Here you can enable or disable student questions by checking or unchecking the box `Allow students to ask questions`.

![img.png](./ask_questions_toggle.png)

Expand All @@ -59,7 +59,7 @@ You will also see a notification in the top navigation bar of your course. Click

![img.png](./course_question_list.png)

If you want to see al open question across all your courses, you can go to the `questions` page in the navigation sidebar of Dodona.
If you want to see al open question across all your courses, you can go to the `Questions` page in the navigation sidebar of Dodona.

![img.png](./questions_index_page.png)

Expand Down Expand Up @@ -91,11 +91,11 @@ You can either use the `Add global comment` button to add a general comment abou

Students often make the same mistakes, or have similar questions. To avoid having to write the same comment over and over again, you can reuse comments.

While writing or editing a comment, you can check `save comment`. This will allow you to add a title for this comment, which should help you find the comment for future use.
While writing or editing a comment, you can check `Save comment`. This will allow you to add a title for this comment, which should help you find the comment for future use.

![Save comment while writing](./save-comment-edit.png)

You can also save an existing comment by clicking `save comment` in the comment menu.
You can also save an existing comment by clicking `Save comment` in the comment menu.

![Save existing comment](save-comment.png)

Expand Down
9 changes: 9 additions & 0 deletions en/guides/exercises/creating-exercises/content/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
title: "Creating exercises: reading activity"
sidebarTitle: Reading activity
order: 4
prev: true
next: true
---

This guide is not yet available in English.
2 changes: 1 addition & 1 deletion en/guides/exercises/creating-exercises/management/index.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "Creating exercises: next steps"
sidebarTitle: Next steps
order: 4
order: 5
prev: true
next: false
---
Expand Down
5 changes: 2 additions & 3 deletions en/references/exercise-config/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Dodona allows setting the configuration of an **exercise** and a **reading activ

## Config file structure for reading activities

The structure for a reading activity is identical to that of an exercise. There are 2 big differences: the value of `type` must be set to `content` and keys that are not relevant for exercises can be omitted. The format of the description is also identical.
The structure for a reading activity is identical to that of an exercise. There are two big differences: the value of `type` must be set to `content` and keys that are not relevant for exercises can be omitted. The format of the description is also identical.

- **`type`**: Must be set to `content` for reading activities
- **`access`** (`public` or `private`): determines who can use this exercise
Expand Down Expand Up @@ -97,7 +97,6 @@ The structure for a reading activity is identical to that of an exercise. There
"memory_limit": 100000000
},
"programming_language": "python",
"author": "Firstname Lastname <[email protected]>",
"contact": "[email protected]"
"contact": "Firstname Lastname <[email protected]>"
}
```
14 changes: 11 additions & 3 deletions en/references/exercise-description/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -249,13 +249,13 @@ You can easily render code fragments in a monospaced font with syntax highlighti
When using HTML, wrap your code with `<code>` and `</code>`:

```html
In your solution, you can use variable <code>someVariable</code>.
In your solution, you can use variable <code>some_variable</code>.
```

In Markdown, wrap your code with backticks (\`):
In Markdown, wrap your code with backticks (\`). You can even add the programming language's syntax highlighting with `{:.language-python}` for example.
BTWS2 marked this conversation as resolved.
Show resolved Hide resolved

```markdown
In your solution, use can use variable `someVariable`.
In your solution, use can use variable `some_variable`. Use the abbreviated notation `result += 1`{:.language-python}.
```

### Code blocks
Expand Down Expand Up @@ -301,6 +301,14 @@ Using Markdown, Dodona can automatically add syntax highlighting if you provide
let a = 5;
let b = 42;
```
Syntax highlighting for the Python doctest format can be obtained this way:
BTWS2 marked this conversation as resolved.
Show resolved Hide resolved

```console?lang=python&prompt=>>>
>>> echo("Hello world!")
"Hello world!"
>>> echo(5)
5
```

## Callouts

Expand Down
2 changes: 1 addition & 1 deletion en/references/judges/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ order: 6

# Judges

On this page you can find an overview of all judges that are available on Dodona. A judge is a piece of software that is responsible for testing the solutions of students and writing the results in a format that Dodona understands.
On [this page](https://dodona.be/en/judges/) you can find an overview of all judges that are available on Dodona. A judge is a piece of software that is responsible for testing the solutions of students and writing the results in a format that Dodona understands.
BTWS2 marked this conversation as resolved.
Show resolved Hide resolved

Most judges only support one programming language, but there are also judges like [TESTed](#TESTed) that support multiple programming languages.

Expand Down
4 changes: 2 additions & 2 deletions en/references/tested/dsl/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ In most cases, it is fine to leave the description empty.
Each context must have at least one test case.
Since each context is executed separately, the following two constraints apply:

- Only the first test case may have a "main call", i.e. command line arguments or stdin.
- Only the first test case may have a "main call", i.e. command line arguments or _stdin_.
- Only the last test case may have a test for the program's exit code.

Do note that the first and last test case may be the same one:
Expand All @@ -84,7 +84,7 @@ if you only have one test case, it may be a main call and have a check for the e
Test cases are the building blocks of a test suite, and contain some input and the expected outputs (the _tests_).
Within each context, the following constraints apply to test cases:

- Only the first test case may have a "main call", i.e. command line arguments or stdin.
- Only the first test case may have a "main call", i.e. command line arguments or _stdin_.
- Only the last test case may have a test for the program's exit code.

Do note that the first and last test case may be the same one:
Expand Down
6 changes: 3 additions & 3 deletions en/references/tested/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ We'll explain how to create a simple programming exercise that uses TESTed to pr
and how to make the exercise available on Dodona.
The exercise is called "echo" and has the following problem statement:

> Define a function `echo` that outputs its string argument to stdout.
> Define a function `echo` that outputs its string argument to _stdout_.

Here are some correct submissions for this exercise in a couple of different programming languages:

Expand Down Expand Up @@ -203,7 +203,7 @@ We'll use the problem statement from above and add an example.
Create a file `echo/description/description.en.md` with the following content:

````markdown
Define a function `echo` that outputs its string argument to stdout.
Define a function `echo` that outputs its string argument to _stdout_.

### Example in Python

Expand Down Expand Up @@ -250,7 +250,7 @@ This test suite specifies that:
1. All feedback is included in a single tab called _Echo_.
2. The tab contains feedback on a single test case.
3. The test case calls the function `echo` with a string argument `"input-1"`.
4. The expected behavior of the test case is that the text `input-1` is generated on stdout.
4. The expected behavior of the test case is that the text `input-1` is generated on _stdout_.


The file structure now looks like this:
Expand Down
10 changes: 5 additions & 5 deletions en/references/tested/json/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ A test case is a statement or an expression that will be executed and evaluated.
Each context has at least one test case.
The following two constraints apply:

- Only the first test case may have a "main call", i.e. command line arguments or stdin.
- Only the first test case may have a "main call", i.e. command line arguments or _stdin_.
- Only the last test case may have a test for the program's exit code.

Do note that the first and last test case may be the same one:
Expand Down Expand Up @@ -255,7 +255,7 @@ Here's an overview of all output channels currently supported by TESTed:

### EmptyChannel

An `EmptyChannel` describes that no output is expected on a specific file descriptor (e.g. stdout or stderr).
An `EmptyChannel` describes that no output is expected on a specific file descriptor (e.g. _stdout_ or _stderr_).
Any output generated will be considered as incorrect by TESTed.
The `EmptyChannel` is represented by a string constant `none`.

Expand All @@ -273,7 +273,7 @@ For most output types, this is the default value, meaning you don't need to spec

### IgnoredChannel

An IgnoredChannel object describes that no output is expected on a specific file descriptor (e.g. stdout or stderr).
An IgnoredChannel object describes that no output is expected on a specific file descriptor (e.g. _stdout_ or _stderr_).
Any output generated on the file descriptor will be ignored, and is considered correct by TESTed.
In other words, if you do not want output, you should use [`EmptyChannel`](#emptychannel),
while if you don't care about the output, you should use `IgnoredChannel`.
Expand Down Expand Up @@ -422,8 +422,8 @@ TESTed currently supports the following two oracles:

### TextOutputChannel

A `TextOutputChannel` object represents text that is expected to be generated on an output channel (e.g. stdout or
stderr).
A `TextOutputChannel` object represents text that is expected to be generated on an output channel (e.g. _stdout_ or
_stderr_).

For example, if the text `"Hello world"` must be written to `stdout`:

Expand Down
10 changes: 10 additions & 0 deletions nl/faq/activities/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,13 @@ Op de startpagina van Dodona kan je al jouw concepten terugvinden onder _Ongepub

## Hoe maak ik nieuwe oefeningen aan? <Badge type="tip" text="lesgever" />
Als lesgever kan je gebruikmaken van de honderden oefeningen die in Dodona aanwezig zijn, maar je kan ook zelf nieuwe oefeningen aanmaken. Je kan hiervoor [dit stappenplan](/nl/guides/exercises/creating-exercises/introduction) volgen.

## Wat is het verschil tussen een cursus en een repository? <Badge type="tip" text="teacher" />
BTWS2 marked this conversation as resolved.
Show resolved Hide resolved
In Dodona is een "oefeningen _repository_" een verzameling oefeningen en leesactiviteiten die beheerd worden in een gelinkte GitHub repository.
BTWS2 marked this conversation as resolved.
Show resolved Hide resolved
Deze oefeningen kunnen dan gebruikt worden in meerdere "cursussen".

Een "cursus" in Dodona is opnieuw een verzameling oefeningen en leesactiviteiten gestructureerd in reeksen. Hier kan je bijvoorbeeld oefeningen structureren volgens een gewenst leerpad.
Cursussen worden volledig beheerd binnen Dodona.
Een cursus kan oefeningen van verschillende oefeningen repositories bevatten.
BTWS2 marked this conversation as resolved.
Show resolved Hide resolved
Bij een cursus horen ook de ingeschreven studenten.
In een cursus kan je deze studenten opvolgen, evaluaties maken, vragen beantwoorden, etc...
6 changes: 3 additions & 3 deletions nl/faq/annotations/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ Je zal ook een melding zien in de bovenste navigatiebalk van je cursus. Klik op

![img.png](./course_question_list.png)

Als je alle open vragen over al je cursussen wil zien, kan je naar de pagina `vragen` gaan in de linkse navigatiebalk van Dodona.
Als je alle open vragen over al je cursussen wil zien, kan je naar de pagina `Vragen` gaan in de linkse navigatiebalk van Dodona.

![img.png](./questions_index_page.png)

Expand All @@ -86,11 +86,11 @@ Je kan een algemene opmerking toevoegen door op de knop `Globale opmerking toevo
## Hoe kan ik opmerkingen opslaan en hergebruiken? <Badge type="tip" text="lesgever" />
Studenten maken vaak dezelfde fouten, of hebben gelijkaardige vragen. Om te vermijden dat je dezelfde opmerkingen steeds opnieuw moet schrijven, kan je opmerkingen hergebruiken.

Tijdens het schrijven of bewerken van een opmerking kan je `opmerking opslaan` aanvinken. Dit zal je toelaten om een titel toe te voegen aan de opmerking, wat je zal helpen om de opmerking in de toekomst terug te vinden.
Tijdens het schrijven of bewerken van een opmerking kan je `Sla opmerking op` aanvinken. Dit zal je toelaten om een titel toe te voegen aan de opmerking, wat je zal helpen om de opmerking in de toekomst terug te vinden.

![Save comment while writing](./save-comment-edit.png)

Je kan ook een bestaande opmerking opslaan door op `opmerking opslaan` te klikken in het menu van de opmerking.
Je kan ook een bestaande opmerking opslaan door op `Opmerking opslaan` te klikken in het menu van de opmerking.

![Save existing comment](save-comment-edit.png)

Expand Down
Loading