diff --git a/cmd/anna/anna.go b/cmd/anna/anna.go index 5323d75..1e8d1fe 100644 --- a/cmd/anna/anna.go +++ b/cmd/anna/anna.go @@ -6,9 +6,9 @@ import ( "os" "sort" - "github.com/acmpesuecc/anna/pkg/engine" - "github.com/acmpesuecc/anna/pkg/helpers" - "github.com/acmpesuecc/anna/pkg/parser" + "github.com/acmpesuecc/anna/v2/pkg/engine" + "github.com/acmpesuecc/anna/v2/pkg/helpers" + "github.com/acmpesuecc/anna/v2/pkg/parser" ) type Cmd struct { diff --git a/cmd/anna/livereload.go b/cmd/anna/livereload.go index a230d5d..12406c0 100644 --- a/cmd/anna/livereload.go +++ b/cmd/anna/livereload.go @@ -10,7 +10,7 @@ import ( "sync/atomic" "time" - "github.com/acmpesuecc/anna/pkg/helpers" + "github.com/acmpesuecc/anna/v2/pkg/helpers" ) var reloadPage = make(chan struct{}) diff --git a/cmd/anna/validate_html.go b/cmd/anna/validate_html.go index bd7a13f..c0e7552 100644 --- a/cmd/anna/validate_html.go +++ b/cmd/anna/validate_html.go @@ -8,7 +8,7 @@ import ( "strings" "github.com/PuerkitoBio/goquery" - "github.com/acmpesuecc/anna/pkg/helpers" + "github.com/acmpesuecc/anna/v2/pkg/helpers" ) func (cmd *Cmd) ValidateHTMLContent() { diff --git a/go.mod b/go.mod index 8da9c94..96ee9a4 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/acmpesuecc/anna +module github.com/acmpesuecc/anna/v2 go 1.22.2 diff --git a/main.go b/main.go index 4b54fd5..f78c77a 100644 --- a/main.go +++ b/main.go @@ -5,7 +5,7 @@ import ( "log" "time" - "github.com/acmpesuecc/anna/cmd/anna" + "github.com/acmpesuecc/anna/v2/cmd/anna" "github.com/spf13/cobra" ) diff --git a/main_test.go b/main_test.go index 5bba479..f502dd7 100644 --- a/main_test.go +++ b/main_test.go @@ -3,7 +3,7 @@ package main_test import ( "testing" - "github.com/acmpesuecc/anna/cmd/anna" + "github.com/acmpesuecc/anna/v2/cmd/anna" ) func BenchmarkMain(b *testing.B) { diff --git a/pkg/engine/anna_engine.go b/pkg/engine/anna_engine.go index 1ecfb93..f801968 100644 --- a/pkg/engine/anna_engine.go +++ b/pkg/engine/anna_engine.go @@ -12,8 +12,8 @@ import ( "sync" "time" - "github.com/acmpesuecc/anna/pkg/helpers" - "github.com/acmpesuecc/anna/pkg/parser" + "github.com/acmpesuecc/anna/v2/pkg/helpers" + "github.com/acmpesuecc/anna/v2/pkg/parser" ) type TagRootTemplateData struct { diff --git a/pkg/engine/anna_engine_test.go b/pkg/engine/anna_engine_test.go index 0c491e6..fdede94 100644 --- a/pkg/engine/anna_engine_test.go +++ b/pkg/engine/anna_engine_test.go @@ -9,8 +9,8 @@ import ( "strings" "testing" - "github.com/acmpesuecc/anna/pkg/engine" - "github.com/acmpesuecc/anna/pkg/parser" + "github.com/acmpesuecc/anna/v2/pkg/engine" + "github.com/acmpesuecc/anna/v2/pkg/parser" ) func TestRenderTags(t *testing.T) { diff --git a/pkg/engine/engine.go b/pkg/engine/engine.go index 19b3164..4897ab6 100644 --- a/pkg/engine/engine.go +++ b/pkg/engine/engine.go @@ -7,7 +7,7 @@ import ( "os" "strings" - "github.com/acmpesuecc/anna/pkg/parser" + "github.com/acmpesuecc/anna/v2/pkg/parser" ) // DeepDataMerge This struct holds all the ssg data diff --git a/pkg/engine/engine_integration_test.go b/pkg/engine/engine_integration_test.go index 911c4c4..a7ed4f6 100644 --- a/pkg/engine/engine_integration_test.go +++ b/pkg/engine/engine_integration_test.go @@ -7,8 +7,8 @@ import ( "slices" "testing" - "github.com/acmpesuecc/anna/pkg/engine" - "github.com/acmpesuecc/anna/pkg/parser" + "github.com/acmpesuecc/anna/v2/pkg/engine" + "github.com/acmpesuecc/anna/v2/pkg/parser" ) func TestRenderUserDefinedPages(t *testing.T) { diff --git a/pkg/engine/engine_test.go b/pkg/engine/engine_test.go index aa24d49..f5862ff 100644 --- a/pkg/engine/engine_test.go +++ b/pkg/engine/engine_test.go @@ -7,8 +7,8 @@ import ( "slices" "testing" - "github.com/acmpesuecc/anna/pkg/engine" - "github.com/acmpesuecc/anna/pkg/parser" + "github.com/acmpesuecc/anna/v2/pkg/engine" + "github.com/acmpesuecc/anna/v2/pkg/parser" ) const TestDirPath = "../../test/engine/" diff --git a/pkg/engine/user_engine.go b/pkg/engine/user_engine.go index 754d1c4..6c05dd8 100644 --- a/pkg/engine/user_engine.go +++ b/pkg/engine/user_engine.go @@ -7,12 +7,12 @@ import ( "runtime" "sync" - "github.com/acmpesuecc/anna/pkg/parser" + "github.com/acmpesuecc/anna/v2/pkg/parser" ) type postsTemplateData struct { DeepDataMerge DeepDataMerge - PageURL template.URL + PageURL template.URL TemplateData parser.TemplateData } @@ -25,7 +25,7 @@ func (e *Engine) RenderEngineGeneratedFiles(fileOutPath string, template *templa Frontmatter: parser.Frontmatter{Title: "Posts"}, }, DeepDataMerge: e.DeepDataMerge, - PageURL: "posts.html", + PageURL: "posts.html", } err := template.ExecuteTemplate(&postsBuffer, "posts", postsData) diff --git a/pkg/engine/user_engine_test.go b/pkg/engine/user_engine_test.go index d5be989..87ac558 100644 --- a/pkg/engine/user_engine_test.go +++ b/pkg/engine/user_engine_test.go @@ -7,8 +7,8 @@ import ( "slices" "testing" - "github.com/acmpesuecc/anna/pkg/engine" - "github.com/acmpesuecc/anna/pkg/parser" + "github.com/acmpesuecc/anna/v2/pkg/engine" + "github.com/acmpesuecc/anna/v2/pkg/parser" ) func TestRenderEngineGeneratedFiles(t *testing.T) { diff --git a/pkg/engine/zettel_engine.go b/pkg/engine/zettel_engine.go index 2a3c01d..1b27cad 100644 --- a/pkg/engine/zettel_engine.go +++ b/pkg/engine/zettel_engine.go @@ -7,7 +7,7 @@ import ( "runtime" "sync" - "github.com/acmpesuecc/anna/pkg/parser" + "github.com/acmpesuecc/anna/v2/pkg/parser" ) type notesTemplateData struct { diff --git a/pkg/helpers/helper_test.go b/pkg/helpers/helper_test.go index f590019..afcd916 100644 --- a/pkg/helpers/helper_test.go +++ b/pkg/helpers/helper_test.go @@ -7,7 +7,7 @@ import ( "slices" "testing" - "github.com/acmpesuecc/anna/pkg/helpers" + "github.com/acmpesuecc/anna/v2/pkg/helpers" ) var HelperTestDirPath = "../../test/helpers/" diff --git a/pkg/parser/parser.go b/pkg/parser/parser.go index ebd538a..c4f21bc 100644 --- a/pkg/parser/parser.go +++ b/pkg/parser/parser.go @@ -11,7 +11,7 @@ import ( "strings" "time" - "github.com/acmpesuecc/anna/pkg/helpers" + "github.com/acmpesuecc/anna/v2/pkg/helpers" figure "github.com/mangoumbrella/goldmark-figure" "github.com/yuin/goldmark" "github.com/yuin/goldmark/extension" diff --git a/pkg/parser/parser_integration_test.go b/pkg/parser/parser_integration_test.go index 78059fd..ce3f8d7 100644 --- a/pkg/parser/parser_integration_test.go +++ b/pkg/parser/parser_integration_test.go @@ -6,7 +6,7 @@ import ( "os" "testing" - "github.com/acmpesuecc/anna/pkg/parser" + "github.com/acmpesuecc/anna/v2/pkg/parser" ) func TestParseMDDir(t *testing.T) { diff --git a/pkg/parser/parser_test.go b/pkg/parser/parser_test.go index a8903a9..058baee 100644 --- a/pkg/parser/parser_test.go +++ b/pkg/parser/parser_test.go @@ -8,7 +8,7 @@ import ( "slices" "testing" - "github.com/acmpesuecc/anna/pkg/parser" + "github.com/acmpesuecc/anna/v2/pkg/parser" ) const TestDirPath = "../../test/parser/"