summaryrefslogtreecommitdiff
path: root/mkdoc
blob: 8dd3850e8525f69d9bfa2e986009709a11147125 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# 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' \
  -e 's/\(Effective.Go\)/[\1](https:\/\/golang.org\/doc\/effective_go.html)/g' \
  -e 's/\(fpdf_test.go\)/[\1](https:\/\/github.com\/jung-kurt\/gofpdf\/blob\/master\/fpdf_test.go)/g' \
  | tr '\v' '\n' > 0 
mv 0 README.md