Commit feee7d4
Changed files (50)
internal
generator
gitdiff
links
progress_bar
internal/generator/blob.go
@@ -15,10 +15,10 @@ import (
"github.com/alecthomas/chroma/v2/lexers"
"github.com/alecthomas/chroma/v2/styles"
- "mokhan.ca/antonmedv/gitmal/pkg/git"
- "mokhan.ca/antonmedv/gitmal/pkg/links"
- "mokhan.ca/antonmedv/gitmal/pkg/progress_bar"
- "mokhan.ca/antonmedv/gitmal/pkg/templates"
+ "mokhan.ca/antonmedv/gitmal/internal/git"
+ "mokhan.ca/antonmedv/gitmal/internal/links"
+ "mokhan.ca/antonmedv/gitmal/internal/progress_bar"
+ "mokhan.ca/antonmedv/gitmal/internal/templates"
)
func GenerateBlobs(files []git.Blob, params Params) error {
internal/generator/branches.go
@@ -6,8 +6,8 @@ import (
"path/filepath"
"sort"
- "mokhan.ca/antonmedv/gitmal/pkg/git"
- "mokhan.ca/antonmedv/gitmal/pkg/templates"
+ "mokhan.ca/antonmedv/gitmal/internal/git"
+ "mokhan.ca/antonmedv/gitmal/internal/templates"
)
func GenerateBranches(branches []git.Ref, defaultBranch string, params Params) error {
internal/generator/branches_json.go
@@ -5,7 +5,7 @@ import (
"os"
"path/filepath"
- "mokhan.ca/antonmedv/gitmal/pkg/git"
+ "mokhan.ca/antonmedv/gitmal/internal/git"
)
type BranchJSON struct {
internal/generator/commit.go
@@ -17,10 +17,10 @@ import (
"github.com/alecthomas/chroma/v2/lexers"
"github.com/alecthomas/chroma/v2/styles"
- "mokhan.ca/antonmedv/gitmal/pkg/git"
- "mokhan.ca/antonmedv/gitmal/pkg/gitdiff"
- "mokhan.ca/antonmedv/gitmal/pkg/progress_bar"
- "mokhan.ca/antonmedv/gitmal/pkg/templates"
+ "mokhan.ca/antonmedv/gitmal/internal/git"
+ "mokhan.ca/antonmedv/gitmal/internal/gitdiff"
+ "mokhan.ca/antonmedv/gitmal/internal/progress_bar"
+ "mokhan.ca/antonmedv/gitmal/internal/templates"
)
func GenerateCommits(commits map[string]git.Commit, params Params) error {
internal/generator/commits_atom.go
@@ -5,7 +5,7 @@ import (
"os"
"path/filepath"
- "mokhan.ca/antonmedv/gitmal/pkg/git"
+ "mokhan.ca/antonmedv/gitmal/internal/git"
)
type AtomFeed struct {
internal/generator/commits_json.go
@@ -5,7 +5,7 @@ import (
"os"
"path/filepath"
- "mokhan.ca/antonmedv/gitmal/pkg/git"
+ "mokhan.ca/antonmedv/gitmal/internal/git"
)
type CommitJSON struct {
internal/generator/commits_list.go
@@ -6,9 +6,9 @@ import (
"path/filepath"
"slices"
- "mokhan.ca/antonmedv/gitmal/pkg/git"
- "mokhan.ca/antonmedv/gitmal/pkg/progress_bar"
- "mokhan.ca/antonmedv/gitmal/pkg/templates"
+ "mokhan.ca/antonmedv/gitmal/internal/git"
+ "mokhan.ca/antonmedv/gitmal/internal/progress_bar"
+ "mokhan.ca/antonmedv/gitmal/internal/templates"
)
const commitsPerPage = 100
internal/generator/index.go
@@ -6,9 +6,9 @@ import (
"sort"
"strings"
- "mokhan.ca/antonmedv/gitmal/pkg/git"
- "mokhan.ca/antonmedv/gitmal/pkg/links"
- "mokhan.ca/antonmedv/gitmal/pkg/templates"
+ "mokhan.ca/antonmedv/gitmal/internal/git"
+ "mokhan.ca/antonmedv/gitmal/internal/links"
+ "mokhan.ca/antonmedv/gitmal/internal/templates"
)
func GenerateIndex(files []git.Blob, params Params) error {
internal/generator/list.go
@@ -11,10 +11,10 @@ import (
"strings"
"sync"
- "mokhan.ca/antonmedv/gitmal/pkg/git"
- "mokhan.ca/antonmedv/gitmal/pkg/links"
- "mokhan.ca/antonmedv/gitmal/pkg/progress_bar"
- "mokhan.ca/antonmedv/gitmal/pkg/templates"
+ "mokhan.ca/antonmedv/gitmal/internal/git"
+ "mokhan.ca/antonmedv/gitmal/internal/links"
+ "mokhan.ca/antonmedv/gitmal/internal/progress_bar"
+ "mokhan.ca/antonmedv/gitmal/internal/templates"
)
func GenerateLists(files []git.Blob, params Params) error {
internal/generator/markdown.go
@@ -9,7 +9,7 @@ import (
"github.com/yuin/goldmark/parser"
gmhtml "github.com/yuin/goldmark/renderer/html"
- "mokhan.ca/antonmedv/gitmal/pkg/templates"
+ "mokhan.ca/antonmedv/gitmal/internal/templates"
)
func createMarkdown(style string) goldmark.Markdown {
internal/generator/params.go
@@ -1,6 +1,6 @@
package generator
-import "mokhan.ca/antonmedv/gitmal/pkg/git"
+import "mokhan.ca/antonmedv/gitmal/internal/git"
type Params struct {
Owner string
internal/generator/post_process.go
@@ -16,7 +16,7 @@ import (
"github.com/tdewolff/minify/v2/html"
"github.com/tdewolff/minify/v2/svg"
- "mokhan.ca/antonmedv/gitmal/pkg/progress_bar"
+ "mokhan.ca/antonmedv/gitmal/internal/progress_bar"
)
func PostProcessHTML(root string, doMinify bool, doGzip bool) error {
internal/generator/readme.go
@@ -5,8 +5,8 @@ import (
"html/template"
"strings"
- "mokhan.ca/antonmedv/gitmal/pkg/git"
- "mokhan.ca/antonmedv/gitmal/pkg/links"
+ "mokhan.ca/antonmedv/gitmal/internal/git"
+ "mokhan.ca/antonmedv/gitmal/internal/links"
)
func readme(files []git.Blob, dirsSet, filesSet links.Set, params Params, rootHref string) template.HTML {
internal/generator/themes.go
@@ -11,7 +11,7 @@ import (
"github.com/alecthomas/chroma/v2/lexers"
"github.com/alecthomas/chroma/v2/styles"
- "mokhan.ca/antonmedv/gitmal/pkg/templates"
+ "mokhan.ca/antonmedv/gitmal/internal/templates"
)
var ThemeStyles = map[string]string{
internal/generator/utils.go
@@ -6,8 +6,8 @@ import (
"path/filepath"
"strings"
- "mokhan.ca/antonmedv/gitmal/pkg/git"
- "mokhan.ca/antonmedv/gitmal/pkg/templates"
+ "mokhan.ca/antonmedv/gitmal/internal/git"
+ "mokhan.ca/antonmedv/gitmal/internal/templates"
)
const Dot = "·"
pkg/git/git.go → internal/git/git.go
File renamed without changes
pkg/git/types.go → internal/git/types.go
File renamed without changes
pkg/git/utils.go → internal/git/utils.go
File renamed without changes
pkg/gitdiff/apply.go → internal/gitdiff/apply.go
File renamed without changes
pkg/gitdiff/apply_binary.go → internal/gitdiff/apply_binary.go
File renamed without changes
pkg/gitdiff/apply_text.go → internal/gitdiff/apply_text.go
File renamed without changes
pkg/gitdiff/base85.go → internal/gitdiff/base85.go
File renamed without changes
pkg/gitdiff/binary.go → internal/gitdiff/binary.go
File renamed without changes
pkg/gitdiff/file_header.go → internal/gitdiff/file_header.go
File renamed without changes
pkg/gitdiff/format.go → internal/gitdiff/format.go
File renamed without changes
pkg/gitdiff/gitdiff.go → internal/gitdiff/gitdiff.go
File renamed without changes
pkg/gitdiff/io.go → internal/gitdiff/io.go
File renamed without changes
pkg/gitdiff/parser.go → internal/gitdiff/parser.go
File renamed without changes
pkg/gitdiff/patch_header.go → internal/gitdiff/patch_header.go
File renamed without changes
pkg/gitdiff/patch_identity.go → internal/gitdiff/patch_identity.go
File renamed without changes
pkg/gitdiff/text.go → internal/gitdiff/text.go
File renamed without changes
pkg/links/links.go → internal/links/links.go
@@ -8,7 +8,7 @@ import (
"golang.org/x/net/html"
- "mokhan.ca/antonmedv/gitmal/pkg/git"
+ "mokhan.ca/antonmedv/gitmal/internal/git"
)
type Set map[string]struct{}
pkg/progress_bar/progress_bar.go → internal/progress_bar/progress_bar.go
File renamed without changes
pkg/templates/css/markdown_dark.css → internal/templates/css/markdown_dark.css
File renamed without changes
pkg/templates/css/markdown_light.css → internal/templates/css/markdown_light.css
File renamed without changes
pkg/templates/blob.gohtml → internal/templates/blob.gohtml
File renamed without changes
pkg/templates/branches.gohtml → internal/templates/branches.gohtml
File renamed without changes
pkg/templates/commit.gohtml → internal/templates/commit.gohtml
File renamed without changes
pkg/templates/commits_list.gohtml → internal/templates/commits_list.gohtml
File renamed without changes
pkg/templates/file_tree.gohtml → internal/templates/file_tree.gohtml
File renamed without changes
pkg/templates/header.gohtml → internal/templates/header.gohtml
File renamed without changes
pkg/templates/layout.gohtml → internal/templates/layout.gohtml
File renamed without changes
pkg/templates/list.gohtml → internal/templates/list.gohtml
File renamed without changes
pkg/templates/markdown.gohtml → internal/templates/markdown.gohtml
File renamed without changes
pkg/templates/preview.gohtml → internal/templates/preview.gohtml
File renamed without changes
pkg/templates/svg.gohtml → internal/templates/svg.gohtml
File renamed without changes
pkg/templates/templates.go → internal/templates/templates.go
@@ -7,7 +7,7 @@ import (
"path/filepath"
"time"
- "mokhan.ca/antonmedv/gitmal/pkg/git"
+ "mokhan.ca/antonmedv/gitmal/internal/git"
)
var funcs = FuncMap{