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

Generate exercise READMEs from templates #319

Merged
merged 2 commits into from
Jul 17, 2017
Merged

Conversation

kytrinyx
Copy link
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
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
Member Author

retriggering the build in case this was a fleeting thing.

Seems to have worked

@kytrinyx
Copy link
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
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