Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

use vendored pygmentize

  • Loading branch information...
commit 845529c1678b8dbe944c2633dfcd6cfa90b1e4f5 1 parent 8d31ec1
@mmcgrana authored
Showing with 1 addition and 8 deletions.
  1. +1 −8 tools/generate.go
View
9 tools/generate.go
@@ -15,7 +15,7 @@ import (
var cacheDir = "/tmp/gobyexample-cache"
var siteDir = "./public"
-var pygmentizeBin = ""
+var pygmentizeBin = "./vendor/pygments/pygmentize"
func check(err error) {
if err != nil {
@@ -106,12 +106,6 @@ func whichLexer(path string) string {
return ""
}
-func whichPygmentize() {
- bin, err := exec.LookPath("pygmentize")
- check(err)
- pygmentizeBin = bin
-}
-
func debug(msg string) {
if os.Getenv("DEBUG") == "1" {
fmt.Fprintln(os.Stderr, msg)
@@ -245,7 +239,6 @@ func renderExamples(examples []*Example) {
}
func main() {
- whichPygmentize()
copyFile("templates/site.css", siteDir+"/site.css")
copyFile("templates/favicon.ico", siteDir+"/favicon.ico")
copyFile("templates/404.html", siteDir+"/404.html")
Please sign in to comment.
Something went wrong with that request. Please try again.