update import paths

This commit is contained in:
Erik Winter 2021-09-30 07:10:33 +02:00
parent 0f6a1c41cb
commit c69455deb4
22 changed files with 38 additions and 44 deletions

View File

@ -8,7 +8,7 @@ import (
"path/filepath" "path/filepath"
"strconv" "strconv"
"git.sr.ht/~ewintr/shitty-ssg/cmd/notes/note" "ewintr.nl/shitty-ssg/cmd/notes/note"
) )
func main() { func main() {

View File

@ -3,7 +3,7 @@ package note
import ( import (
"strings" "strings"
"git.sr.ht/~ewintr/shitty-ssg/pkg/adoc" "ewintr.nl/shitty-ssg/pkg/adoc"
) )
type Kind string type Kind string

View File

@ -3,7 +3,7 @@ package note
import ( import (
"io/ioutil" "io/ioutil"
"git.sr.ht/~ewintr/shitty-ssg/pkg/adoc" "ewintr.nl/shitty-ssg/pkg/adoc"
) )
type Notes []*Note type Notes []*Note

View File

@ -9,7 +9,7 @@ import (
"path/filepath" "path/filepath"
"strings" "strings"
"git.sr.ht/~ewintr/shitty-ssg/cmd/ssg/site" "ewintr.nl/shitty-ssg/cmd/ssg/site"
) )
var ( var (

View File

@ -6,7 +6,7 @@ import (
"path/filepath" "path/filepath"
"text/template" "text/template"
"git.sr.ht/~ewintr/shitty-ssg/pkg/adoc" "ewintr.nl/shitty-ssg/pkg/adoc"
) )
var ( var (

View File

@ -5,8 +5,8 @@ import (
"html" "html"
"strings" "strings"
"git.sr.ht/~ewintr/go-kit/slugify" "ewintr.nl/go-kit/slugify"
"git.sr.ht/~ewintr/shitty-ssg/pkg/adoc" "ewintr.nl/shitty-ssg/pkg/adoc"
) )
type HTMLPost struct { type HTMLPost struct {

View File

@ -3,9 +3,9 @@ package site_test
import ( import (
"testing" "testing"
"git.sr.ht/~ewintr/go-kit/test" "ewintr.nl/go-kit/test"
"git.sr.ht/~ewintr/shitty-ssg/cmd/ssg/site" "ewintr.nl/shitty-ssg/cmd/ssg/site"
"git.sr.ht/~ewintr/shitty-ssg/pkg/adoc" "ewintr.nl/shitty-ssg/pkg/adoc"
) )
func TestFormatBlock(t *testing.T) { func TestFormatBlock(t *testing.T) {

View File

@ -1,7 +1,7 @@
package site package site
import ( import (
"git.sr.ht/~ewintr/shitty-ssg/pkg/adoc" "ewintr.nl/shitty-ssg/pkg/adoc"
) )
const ( const (

View File

@ -3,9 +3,9 @@ package site_test
import ( import (
"testing" "testing"
"git.sr.ht/~ewintr/go-kit/test" "ewintr.nl/go-kit/test"
"git.sr.ht/~ewintr/shitty-ssg/cmd/ssg/site" "ewintr.nl/shitty-ssg/cmd/ssg/site"
"git.sr.ht/~ewintr/shitty-ssg/pkg/adoc" "ewintr.nl/shitty-ssg/pkg/adoc"
) )
func TestNewLanguage(t *testing.T) { func TestNewLanguage(t *testing.T) {

View File

@ -9,8 +9,8 @@ import (
"strings" "strings"
"time" "time"
"git.sr.ht/~ewintr/go-kit/slugify" "ewintr.nl/go-kit/slugify"
"git.sr.ht/~ewintr/shitty-ssg/pkg/adoc" "ewintr.nl/shitty-ssg/pkg/adoc"
) )
var ( var (

View File

@ -4,9 +4,9 @@ import (
"testing" "testing"
"time" "time"
"git.sr.ht/~ewintr/go-kit/test" "ewintr.nl/go-kit/test"
"git.sr.ht/~ewintr/shitty-ssg/cmd/ssg/site" "ewintr.nl/shitty-ssg/cmd/ssg/site"
"git.sr.ht/~ewintr/shitty-ssg/pkg/adoc" "ewintr.nl/shitty-ssg/pkg/adoc"
) )
func TestPost(t *testing.T) { func TestPost(t *testing.T) {

View File

@ -4,8 +4,8 @@ import (
"testing" "testing"
"time" "time"
"git.sr.ht/~ewintr/go-kit/test" "ewintr.nl/go-kit/test"
"git.sr.ht/~ewintr/shitty-ssg/cmd/ssg/site" "ewintr.nl/shitty-ssg/cmd/ssg/site"
) )
func TestPosts(t *testing.T) { func TestPosts(t *testing.T) {

View File

@ -5,7 +5,7 @@ import (
"os" "os"
"path/filepath" "path/filepath"
"git.sr.ht/~ewintr/shitty-ssg/pkg/adoc" "ewintr.nl/shitty-ssg/pkg/adoc"
) )
const dirMode = os.ModeDir | 0755 const dirMode = os.ModeDir | 0755

View File

@ -1,6 +1,6 @@
package site package site
import "git.sr.ht/~ewintr/shitty-ssg/pkg/adoc" import "ewintr.nl/shitty-ssg/pkg/adoc"
var ( var (
SITE_CONFIG_EWNL = &SiteConfig{ SITE_CONFIG_EWNL = &SiteConfig{

View File

@ -17,7 +17,7 @@ Originally I made the SSG to create one site. But it turned out to be not that h
In the future I might add an export for a Gopher or a Gemini site and if the collection of notes grows Ill probably improve the search somewhat. Now it only finds notes on tags or whole words. It displays them just in plain text. I will also probably dive more into shell escape codes and such to see if the apperance can be improved. In the future I might add an export for a Gopher or a Gemini site and if the collection of notes grows Ill probably improve the search somewhat. Now it only finds notes on tags or whole words. It displays them just in plain text. I will also probably dive more into shell escape codes and such to see if the apperance can be improved.
The code itself can be found https://git.sr.ht/~ewintr/shitty-ssg[here]. The code itself can be found https://ewintr.nl/shitty-ssg[here].
== Directories == Directories

View File

@ -82,4 +82,4 @@ So, my advise is to be aware of the restrictions and the hidden models of the to
In the title, I mention that my generator is “shitty” and it is. It does not have many features. It is riddled with bugs and edge cases that it cant handle. But that is not important. It works for my problem. If I dont like something, I can fix it. If bug doesnt bother me, Ill let it be. Like all creative endevours, it is important to just start and get it out. You can always improve it later. In the title, I mention that my generator is “shitty” and it is. It does not have many features. It is riddled with bugs and edge cases that it cant handle. But that is not important. It works for my problem. If I dont like something, I can fix it. If bug doesnt bother me, Ill let it be. Like all creative endevours, it is important to just start and get it out. You can always improve it later.
I put the source online https://git.sr.ht/~ewintr/shitty-ssg[here]. See https://erikwinter.nl/articles/2021/shitty-ssg-code-walkthrough/[here] for a high level overview. Not for people to blindly copy and run (why would you?), but to give some inspiration for people who are still on the fence. To show them that shitty does not have to be hard and that it can be good enough, as long as it is the right kind of shitty. _Your_ kind of shitty. I put the source online https://ewintr.nl/shitty-ssg[here]. See https://ewintr.nl/articles/2021/shitty-ssg-code-walkthrough/[here] for a high level overview. Not for people to blindly copy and run (why would you?), but to give some inspiration for people who are still on the fence. To show them that shitty does not have to be hard and that it can be good enough, as long as it is the right kind of shitty. _Your_ kind of shitty.

5
go.mod
View File

@ -2,7 +2,4 @@ module ewintr.nl/shitty-ssg
go 1.16 go 1.16
require ( require ewintr.nl/go-kit v0.0.0-20210919092827-8652e5694945
git.sr.ht/~ewintr/erikwinternl/shitty-ssg v0.0.0-20201204092507-5528bf33815d // indirect
git.sr.ht/~ewintr/go-kit v0.0.0-20200704112030-36275689b0ea
)

11
go.sum
View File

@ -1,10 +1,7 @@
cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw=
cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw=
git.sr.ht/~ewintr/erikwinternl v0.0.0-20201204092507-5528bf33815d h1:teNzxpdrJw5sUpB/84ojdjVV2q2+3IVwYjztCze9YmU= ewintr.nl/go-kit v0.0.0-20210919092827-8652e5694945 h1:8WnxXq3Urg1fkq3nWjCFK18NjpR3mqrRdOfOVNGFi/I=
git.sr.ht/~ewintr/erikwinternl/shitty-ssg v0.0.0-20201204092507-5528bf33815d h1:vyJ0Pgdrvqh28jxBCLGCGt/80p86iSQtKJW7rAbYRk8= ewintr.nl/go-kit v0.0.0-20210919092827-8652e5694945/go.mod h1:mIlMyAvKBuuQSQuX5f1+1gYZ02vz6xRFGN9wiO0HfzI=
git.sr.ht/~ewintr/erikwinternl/shitty-ssg v0.0.0-20201204092507-5528bf33815d/go.mod h1:ka/PzT9A0BNvjcUQpIM0YE1BnOR1/qr6x7XeCUyYDlw=
git.sr.ht/~ewintr/go-kit v0.0.0-20200704112030-36275689b0ea h1:YdHan+/QwjzF05Dlp40BHw5N47nWy2QZCY7aseXf2n0=
git.sr.ht/~ewintr/go-kit v0.0.0-20200704112030-36275689b0ea/go.mod h1:zrpigRr1EHuVGw7GWwvYWwfLgdAwJ110zIRAGtaicvI=
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
github.com/Knetic/govaluate v3.0.1-0.20171022003610-9aa49832a739+incompatible/go.mod h1:r7JcOSlj0wfOMncg0iLm8Leh48TZaKVeNIfJntJ2wa0= github.com/Knetic/govaluate v3.0.1-0.20171022003610-9aa49832a739+incompatible/go.mod h1:r7JcOSlj0wfOMncg0iLm8Leh48TZaKVeNIfJntJ2wa0=
github.com/Shopify/sarama v1.19.0/go.mod h1:FVkBWblsNy7DGZRfXLU0O9RCGt5g3g3yEuWXgklEdEo= github.com/Shopify/sarama v1.19.0/go.mod h1:FVkBWblsNy7DGZRfXLU0O9RCGt5g3g3yEuWXgklEdEo=
@ -295,8 +292,9 @@ golang.org/x/sys v0.0.0-20190726091711-fc99dfbffb4e/go.mod h1:h1NjWce9XRLGQEsW7w
golang.org/x/sys v0.0.0-20190826190057-c7b8b68b1456/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190826190057-c7b8b68b1456/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20191220142924-d4481acd189f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20191220142924-d4481acd189f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
golang.org/x/text v0.3.2 h1:tW2bmiBqwgJj/UpqtC8EpXEZVYOwU0yG4iWbprSVAcs=
golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk=
golang.org/x/text v0.3.6 h1:aRYxNxv6iGQlyVaZmk6ZgYEDa+Jg18DxebPSrd6bg1M=
golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
golang.org/x/time v0.0.0-20180412165947-fbb02b2291d2/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20180412165947-fbb02b2291d2/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
golang.org/x/tools v0.0.0-20180221164845-07fd8470d635/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20180221164845-07fd8470d635/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
@ -314,7 +312,6 @@ golang.org/x/tools v0.0.0-20191029190741-b9c20aec41a5/go.mod h1:b+2E5dAYhXwXZwtn
golang.org/x/tools v0.0.0-20200103221440-774c71fcf114/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= golang.org/x/tools v0.0.0-20200103221440-774c71fcf114/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
google.golang.org/api v0.3.1/go.mod h1:6wY9I6uQWHQ8EM57III9mq/AjF+i8G65rmVagqKMtkk= google.golang.org/api v0.3.1/go.mod h1:6wY9I6uQWHQ8EM57III9mq/AjF+i8G65rmVagqKMtkk=
google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM=
google.golang.org/appengine v1.2.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.2.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4=

View File

@ -3,8 +3,8 @@ package adoc_test
import ( import (
"testing" "testing"
"git.sr.ht/~ewintr/go-kit/test" "ewintr.nl/go-kit/test"
"git.sr.ht/~ewintr/shitty-ssg/pkg/adoc" "ewintr.nl/shitty-ssg/pkg/adoc"
) )
func TestNewKind(t *testing.T) { func TestNewKind(t *testing.T) {

View File

@ -3,8 +3,8 @@ package adoc_test
import ( import (
"testing" "testing"
"git.sr.ht/~ewintr/go-kit/test" "ewintr.nl/go-kit/test"
"git.sr.ht/~ewintr/shitty-ssg/pkg/adoc" "ewintr.nl/shitty-ssg/pkg/adoc"
) )
func TestParagraph(t *testing.T) { func TestParagraph(t *testing.T) {

View File

@ -3,8 +3,8 @@ package adoc_test
import ( import (
"testing" "testing"
"git.sr.ht/~ewintr/go-kit/test" "ewintr.nl/go-kit/test"
"git.sr.ht/~ewintr/shitty-ssg/pkg/adoc" "ewintr.nl/shitty-ssg/pkg/adoc"
) )
func TestInlineSimple(t *testing.T) { func TestInlineSimple(t *testing.T) {

View File

@ -5,8 +5,8 @@ import (
"testing" "testing"
"time" "time"
"git.sr.ht/~ewintr/go-kit/test" "ewintr.nl/go-kit/test"
"git.sr.ht/~ewintr/shitty-ssg/pkg/adoc" "ewintr.nl/shitty-ssg/pkg/adoc"
) )
func TestNew(t *testing.T) { func TestNew(t *testing.T) {