0
0
Fork 0

rewrite links suitable for blevesearch website

This commit is contained in:
Marty Schoch 2016-09-21 12:58:18 -04:00
parent 949ea6397c
commit 0236043f65
1 changed files with 7 additions and 1 deletions

View File

@ -17,6 +17,8 @@
package main
import (
"fmt"
"github.com/blevesearch/bleve/cmd/bleve/cmd"
"github.com/spf13/cobra/doc"
@ -34,5 +36,9 @@ import (
func main() {
cmd.RootCmd.DisableAutoGenTag = true
doc.GenMarkdownTree(cmd.RootCmd, "./")
identity := func(s string) string {
return fmt.Sprintf(`{{< relref "docs/%s" >}}`, s)
}
emptyStr := func(s string) string { return "" }
doc.GenMarkdownTreeCustom(cmd.RootCmd, "./", emptyStr, identity)
}