Skip to content

Generate exercise READMEs from templates#319

Merged
ErikSchierboom merged 2 commits intomasterfrom
generate-readme
Jul 17, 2017
Merged

Generate exercise READMEs from templates#319
ErikSchierboom merged 2 commits intomasterfrom
generate-readme

Conversation

@kytrinyx
Copy link
Copy Markdown
Member

@kytrinyx kytrinyx commented Jul 10, 2017

We are working towards making exercises stand-alone.
That is to say: no more generating READMEs on the fly.

This will give maintainers more control over each individual exercise
README, and it will also make some of the backend logic for delivering
exercises simpler.

This does not mean, however, hand-crafting READMEs from scratch.

I wrote some tooling to make it possible to generate the READMEs from
a customizable template.

The template uses the Go text/template package, and the default template
will generate the same READMEs as we have been generating on the fly.

See the documentation in regenerating exercise readmes for
details.

The READMEs can be generated at any time using a new 'generate' command in configlet. This command has not yet landed in master or been released, but can be built from source in the generate-readmes branch on configlet.

Tracking progress of all tracks in: exercism/meta#15

@kytrinyx
Copy link
Copy Markdown
Member Author

The build is failing on the book-store exercise, but I don't see what/how. I'm retriggering the build in case this was a fleeting thing.

@kytrinyx
Copy link
Copy Markdown
Member Author

retriggering the build in case this was a fleeting thing.

Seems to have worked

@kytrinyx
Copy link
Copy Markdown
Member Author

Please hold off on merging this. In exercism/configlet#24 we're talking about having a default template in the repository that we can use instead of duplicating the template everywhere. That way only the exercises that want to change the default would actually have a template.

Katrina Owen added 2 commits July 16, 2017 13:10
We are working towards making exercises stand-alone—that is to say:
no more generating READMEs on the fly.

This will give maintainers more control over each individual exercise
README.

The template uses the Go text/template package, and the default templates
generate the exact same READMEs as we have been generating on the fly.
@kytrinyx
Copy link
Copy Markdown
Member Author

This should be good to go provided that the build passes.

@ErikSchierboom ErikSchierboom merged commit 7d46b58 into master Jul 17, 2017
@ErikSchierboom ErikSchierboom deleted the generate-readme branch July 17, 2017 06:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants