exercism / meta

Experimenting with a repo to manage the project-wide, meta todos.
7 stars 2 forks source link

Create a SNIPPET file in each track for the nextercism track landing page #89

Closed kytrinyx closed 6 years ago

kytrinyx commented 7 years ago

The track landing page has a code example on it next to the introductory text, in order to give people a taste of what the language looks like. E.g.

screen shot 2017-08-22 at 8 29 42 am

Since we have code that knows how to find out which exercise is the first (core) exercise, and which file is the solution file, we can script a PR to each track to create a reasonable default with this file.

In the future, some tracks might want to simplify or choose a different example, which is fine.

The example will ideally be 6-10 lines long and <=40 chars per line, and will be stored in the docs/SNIPPET.txt file.

If intro examples are longer than this, we will automatically cut it off at 10 lines when displaying it on the site.