exercism / ocaml

Exercism exercises in OCaml.
https://exercism.org/tracks/ocaml
MIT License
93 stars 50 forks source link

Configure online editor #384

Closed ErikSchierboom closed 1 year ago

ErikSchierboom commented 3 years ago

This issue is part of the migration to v3. You can read full details about the various changes here.

In Exercism v3, students can now choose to work on exercises directly from their browser, instead of having to download exercises to their local machine. The track-specific settings for the in-browser editor are defined in the top-level "online_editor" field in the track's config.json file. This field is defined as an object with two fields:

You can find a full description of these fields in the spec.

Goal

The "online_editor" field should be updated to correspond to the track's best practices regarding indentation.

Example

"online_editor": {
  "indent_style": "space",
  "indent_size": 4
}

Tracking

https://github.com/exercism/v3-launch/issues/2

tautologico commented 2 years ago

I think this change is already done on the config.json file, see https://github.com/exercism/ocaml/blob/main/config.json#L13

ErikSchierboom commented 2 years ago

@tautologico Those are the correct settings?

tautologico commented 2 years ago

I think it's more usual to use 2 spaces instead of 4, but other than that it's ok. I can send a PR.