Open tomasbjerre opened 5 years ago
Maybe it would be better to use the "include-files feature of markdown? https://docs.microsoft.com/en-us/contribute/how-to-write-use-markdown#include-files less searching and replacing that way. And the code to produce the file would be so simple that I don't think it necessitates a function in the library?
(sorry for the late answer!!!)
I often find myself:
-h
README.md
.Would be nice with some utility-method that takes a section in the README and replaces it with updated docs. Users can invoke that utility method using a test case or whatever. And always have up-to-date usage in README.md.
To show what I mean, have a look at
updateReadmeWithReporters
here: https://github.com/tomasbjerre/violations-lib/blob/master/src/main/java/se/bjurr/violations/lib/util/Utils.java