diff --git a/doc/rpc/command-template.html b/doc/rpc/command-template.md rename from doc/rpc/command-template.html rename to doc/rpc/command-template.md diff --git a/doc/rpc/generate.go b/doc/rpc/generate.go --- a/doc/rpc/generate.go +++ b/doc/rpc/generate.go @@ -115,7 +115,7 @@ } groups = append(groups, g) - tmpl := template.Must(template.ParseFiles(path.Join(srcdir, "doc", "rpc", "command-template.html"))) + tmpl := template.Must(template.ParseFiles(path.Join(srcdir, "doc", "rpc", "command-template.md"))) for _, group := range groups { groupname := group.Name @@ -127,7 +127,7 @@ } for _, command := range group.Commands { name := command.Name - address := fmt.Sprintf("%s/%s.html", dirname, name) + address := fmt.Sprintf("%s/%s.md", dirname, name) permalink := fmt.Sprintf("en/doc/%s/rpc/%s/%s/", version, groupname, name) err = tmpl.Execute(open(address), CommandData{ Version: version, @@ -140,7 +140,7 @@ log.Fatalf("Cannot make command file %s: %s", name, err.Error()) } } - address := path.Join(rpcdocdir, version, "rpc", "index.html") + address := path.Join(rpcdocdir, version, "rpc", "index.md") permalink := fmt.Sprintf("en/doc/%s/rpc/", version) err = tmpl.Execute(open(address), CommandData{ Version: version, @@ -153,7 +153,7 @@ log.Fatalf("Cannot make index file: %s", err.Error()) } - address = path.Join(rpcdocdir, version, "index.html") + address = path.Join(rpcdocdir, version, "index.md") permalink = fmt.Sprintf("en/doc/%s/", version) err = tmpl.Execute(open(address), CommandData{ Version: version,