Adds a link fixer/checker to mungedocs.

Links that don't work yet can be prefixed with "TODO:" to avoid the check.
This commit is contained in:
Daniel Smith
2015-07-09 16:52:03 -07:00
parent affba42a05
commit c4aab16b04
4 changed files with 189 additions and 36 deletions

View File

@@ -30,7 +30,7 @@ import (
// the ToC, thereby updating any previously inserted ToC.
//
// TODO(erictune): put this in own package with tests
func updateTOC(markdown []byte) ([]byte, error) {
func updateTOC(filePath string, markdown []byte) ([]byte, error) {
toc, err := buildTOC(markdown)
if err != nil {
return nil, err