summaryrefslogtreecommitdiff
path: root/mkdoc
diff options
context:
space:
mode:
authorKurt <kurt.w.jung@gmail.com>2019-04-30 14:32:56 -0400
committerKurt <kurt.w.jung@gmail.com>2019-04-30 14:32:56 -0400
commit88c06828a097914c971a893f0048cd911e9b1a22 (patch)
tree364756465275dca27404b9d424a178b289c3f32e /mkdoc
parent04d2090aeec620cca72622aa752cf53aaf0b0fbb (diff)
Use Lua script to generate README, doc.go and index.html rather than autoreadme
Diffstat (limited to 'mkdoc')
-rwxr-xr-xmkdoc23
1 files changed, 0 insertions, 23 deletions
diff --git a/mkdoc b/mkdoc
deleted file mode 100755
index 8c082c3..0000000
--- a/mkdoc
+++ /dev/null
@@ -1,23 +0,0 @@
-#!/bin/bash
-
-# 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' \
- -e 's/golint.(\(https:\/\/github\.com\/golang\/lint\))/[golint](\1)/g' \
- -e 's/go.vet.(\(https:\/\/godoc\.org\/golang\.org\/x\/tools\/cmd\/vet\))/[go vet](\1)/g' \
- -e 's/test.coverage.(\(https:\/\/blog\.golang\.org\/cover\))/[test coverage](\1)/g' \
- -e 's/Pull.requests.(\(https:\/\/help\.github\.com\/articles\/using\-pull\-requests\/\))/[Pull requests](\1)/g' \
- -e 's/Your change should\v/Your change should\v\v/g' \
- -e 's/issue 109/[issue 109](https:\/\/github.com\/jung-kurt\/gofpdf\/issues\/109)/g' \
- | tr '\v' '\n' > _0
-mv _0 README.md