all repos — vite @ 7042215f3e61ae32a60fd67dd2fca27045d8a35b

a fast (this time, actually) and minimal static site generator

Fix imports, disable syntax highlighting for now
Anirudh Oppiliappan x@icyphox.sh
Fri, 02 Dec 2022 16:42:43 +0530
commit

7042215f3e61ae32a60fd67dd2fca27045d8a35b

parent

4740d7ecfab6daa182b3acf839bc451575bdd9a8

6 files changed, 18 insertions(+), 33 deletions(-)

jump to
M atom/feed.goatom/feed.go

@@ -6,8 +6,8 @@ "fmt"

"path/filepath" "time" - "git.icyphox.sh/vite/config" - "git.icyphox.sh/vite/markdown" + "icyphox.sh/vite/config" + "icyphox.sh/vite/markdown" ) type AtomLink struct {
M commands/build.gocommands/build.go

@@ -9,10 +9,10 @@ "strings"

"sync" "time" - "git.icyphox.sh/vite/atom" - "git.icyphox.sh/vite/config" - "git.icyphox.sh/vite/markdown" - "git.icyphox.sh/vite/util" + "icyphox.sh/vite/atom" + "icyphox.sh/vite/config" + "icyphox.sh/vite/markdown" + "icyphox.sh/vite/util" ) const (
M go.modgo.mod

@@ -1,15 +1,11 @@

-module git.icyphox.sh/vite +module icyphox.sh/vite go 1.15 -replace github.com/russross/blackfriday/v2 => git.icyphox.sh/grayfriday v0.0.0-20221126034429-23c704183914 - -// replace github.com/russross/blackfriday/v2 => ../grayfriday - require ( github.com/Depado/bfchroma v1.3.0 github.com/adrg/frontmatter v0.2.0 github.com/alecthomas/chroma v0.10.0 - github.com/russross/blackfriday/v2 v2.0.1 gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b + icyphox.sh/grayfriday v0.0.0-20221130034322-1ea518786419 )
M go.sumgo.sum

@@ -1,5 +1,3 @@

-git.icyphox.sh/grayfriday v0.0.0-20221126034429-23c704183914 h1:4f0PFapEZUYls6gEjWMA82jOm0s5E4I9p23QpXv1sSg= -git.icyphox.sh/grayfriday v0.0.0-20221126034429-23c704183914/go.mod h1:/wTbXjiiGlIYuqC6rVyD9ml88NWw7tujy3pOqj8kkKc= github.com/BurntSushi/toml v0.3.1 h1:WXkYYl6Yr3qBf1K79EBnL4mak0OimBfB0XUf9Vl28OQ= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= github.com/Depado/bfchroma v1.3.0 h1:zz14vpvySU6S0CL6yGPr1vkFevQecIt8dJdCsMS2JpM=

@@ -27,7 +25,10 @@ github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=

github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/russross/blackfriday/v2 v2.0.1 h1:lPqVAte+HuHNfhJ/0LC98ESWRz8afy9tM/0RK8m9o+Q= +github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= github.com/sergi/go-diff v1.0.0/go.mod h1:0CfEIISq7TuYL3j771MWULgwwjU+GofnZX9QAmXWZgo= +github.com/shurcooL/sanitized_anchor_name v1.0.0 h1:PdmoCO6wvbs+7yrJyMORt4/BmY5IYyJwS/kOiWx8mHo= github.com/shurcooL/sanitized_anchor_name v1.0.0/go.mod h1:1NzhyTcUVG4SuEtjjoZeVRXNmyL/1OwPU0+IJeTBvfc= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=

@@ -45,3 +46,5 @@ gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=

gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b h1:h8qDotaEPuJATrMmW04NCwg7v22aHH28wwpauUhK9Oo= gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= +icyphox.sh/grayfriday v0.0.0-20221130034322-1ea518786419 h1:NfLEP+eVHytaObWE5ffsidoe7G1RQnEc2l9YZorYK8k= +icyphox.sh/grayfriday v0.0.0-20221130034322-1ea518786419/go.mod h1:9o5/tCXAQ8RPfaRdo7087zucRyJoQHE+T5YCRxGaBzE=
M main.gomain.go

@@ -4,7 +4,7 @@ import (

"fmt" "os" - "git.icyphox.sh/vite/commands" + "icyphox.sh/vite/commands" ) func main() {
M markdown/markdown.gomarkdown/markdown.go

@@ -6,12 +6,10 @@ "os"

gotmpl "text/template" "time" - "git.icyphox.sh/vite/config" - "git.icyphox.sh/vite/markdown/template" + "icyphox.sh/vite/config" + "icyphox.sh/vite/markdown/template" - bfc "github.com/Depado/bfchroma" - "github.com/alecthomas/chroma/formatters/html" - bf "github.com/russross/blackfriday/v2" + bf "icyphox.sh/grayfriday" ) var (

@@ -37,19 +35,7 @@

out.HTML = bf.Run( md.Body, bf.WithNoExtensions(), - bf.WithRenderer( - bfc.NewRenderer( - bfc.ChromaOptions( - html.TabWidth(4), - html.WithClasses(true), - ), - bfc.Extend( - bf.NewHTMLRenderer(bf.HTMLRendererParameters{ - Flags: bfFlags, - }), - ), - ), - ), + bf.WithRenderer(bf.NewHTMLRenderer(bf.HTMLRendererParameters{Flags: bfFlags})), bf.WithExtensions(bfExts), ) out.Meta = md.Frontmatter