cri-o/vendor/k8s.io/kubernetes/cmd/mungedocs
Mrunal Patel 8e5b17cf13 Switch to github.com/golang/dep for vendoring
Signed-off-by: Mrunal Patel <mrunalp@gmail.com>
2017-01-31 16:45:59 -08:00
..
testdata Switch to github.com/golang/dep for vendoring 2017-01-31 16:45:59 -08:00
analytics.go Switch to github.com/golang/dep for vendoring 2017-01-31 16:45:59 -08:00
analytics_test.go Switch to github.com/golang/dep for vendoring 2017-01-31 16:45:59 -08:00
BUILD Switch to github.com/golang/dep for vendoring 2017-01-31 16:45:59 -08:00
example_syncer.go Switch to github.com/golang/dep for vendoring 2017-01-31 16:45:59 -08:00
example_syncer_test.go Switch to github.com/golang/dep for vendoring 2017-01-31 16:45:59 -08:00
headers.go Switch to github.com/golang/dep for vendoring 2017-01-31 16:45:59 -08:00
headers_test.go Switch to github.com/golang/dep for vendoring 2017-01-31 16:45:59 -08:00
kubectl_dash_f.go Switch to github.com/golang/dep for vendoring 2017-01-31 16:45:59 -08:00
kubectl_dash_f_test.go Switch to github.com/golang/dep for vendoring 2017-01-31 16:45:59 -08:00
links.go Switch to github.com/golang/dep for vendoring 2017-01-31 16:45:59 -08:00
links_test.go Switch to github.com/golang/dep for vendoring 2017-01-31 16:45:59 -08:00
mungedocs.go Switch to github.com/golang/dep for vendoring 2017-01-31 16:45:59 -08:00
preformatted.go Switch to github.com/golang/dep for vendoring 2017-01-31 16:45:59 -08:00
preformatted_test.go Switch to github.com/golang/dep for vendoring 2017-01-31 16:45:59 -08:00
README.md Switch to github.com/golang/dep for vendoring 2017-01-31 16:45:59 -08:00
toc.go Switch to github.com/golang/dep for vendoring 2017-01-31 16:45:59 -08:00
toc_test.go Switch to github.com/golang/dep for vendoring 2017-01-31 16:45:59 -08:00
util.go Switch to github.com/golang/dep for vendoring 2017-01-31 16:45:59 -08:00
util_test.go Switch to github.com/golang/dep for vendoring 2017-01-31 16:45:59 -08:00
whitespace.go Switch to github.com/golang/dep for vendoring 2017-01-31 16:45:59 -08:00
whitespace_test.go Switch to github.com/golang/dep for vendoring 2017-01-31 16:45:59 -08:00

Documentation Mungers

Basically this is like lint/gofmt for md docs.

It basically does the following:

  • iterate over all files in the given doc root.
  • for each file split it into a slice (mungeLines) of lines (mungeLine)
  • a mungeline has metadata about each line typically determined by a 'fast' regex.
    • metadata contains things like 'is inside a preformatted block'
    • contains a markdown header
    • has a link to another file
    • etc..
    • if you have a really slow regex with a lot of backtracking you might want to write a fast one to limit how often you run the slow one.
  • each munger is then called in turn
    • they are given the mungeLines
    • they create an entirely new set of mungeLines with their modifications
    • the new set is returned
  • the new set is then fed into the next munger.
  • in the end we might commit the end mungeLines to the file or not (--verify)

Analytics