diff options
author | Kurt Jung <kurt.w.jung@gmail.com> | 2015-07-11 11:34:11 -0400 |
---|---|---|
committer | Kurt Jung <kurt.w.jung@gmail.com> | 2015-07-11 11:34:11 -0400 |
commit | 96cf4d71abd5f53a5cd02c4a0ea35b2ebcad2366 (patch) | |
tree | f816bde5a06ca90b41d6219a6a821c0957cd95f2 /mkdoc | |
parent | 7754652f6723c384486cbb7603ee3b62d7342376 (diff) |
Use sed to improve appearance of markdown with features that are unavailable in godoc
Diffstat (limited to 'mkdoc')
-rwxr-xr-x | mkdoc | 13 |
1 files changed, 12 insertions, 1 deletions
@@ -1,2 +1,13 @@ -# github.com/JImmyFrasche/autoreadme +# https://github.com/jimmyfrasche/autoreadme autoreadme -f -template README.md.template +# Improve the appearance of the markdown document with features unavailable in godoc +cat README.md | tr '\n' '\v' | sed \ + -e 's/\v##\([^\v]*\)/\v##\1\v\v/g' \ + -e 's/\v• /* /g' \ + -e 's/\(http:\/\/www\.google\.com\/fonts\/\)/[Google Fonts](\1)/g' \ + -e 's/\(http:\/\/dejavu-fonts\.org\/\)/[DejaVu Fonts](\1)/g' \ + -e 's/draw2d.package.(\(https:\/\/github\.com\/llgcode\/draw2d\))/[draw2d](\1) package/g' \ + -e 's/FPDF.library.(\(http:\/\/www\.fpdf\.org\/\))/[FPDF](\1) library/g' \ + -e 's/original.FPDF.library/original [FPDF](http:\/\/www.fpdf.org\/) library/g' \ + | tr '\v' '\n' > 0 +mv 0 README.md |