diff --git a/.github/workflows/page.yml b/.github/workflows/page.yml index 5ec4445..c4fb3ab 100644 --- a/.github/workflows/page.yml +++ b/.github/workflows/page.yml @@ -31,7 +31,8 @@ jobs: - name: Build Site Generator run: | go install github.com/go-i2p/go-gh-page/cmd/github-site-gen@latest - cp -v "$GOPATH/bin/github-site-gen" ./github-site-gen + export GOBIN=$(go env GOPATH)/bin + cp -v "$GOBIN/github-site-gen" ./github-site-gen # Ensure the binary is executable chmod +x github-site-gen @@ -56,4 +57,4 @@ jobs: folder: site # The folder the action should deploy branch: gh-pages # The branch the action should deploy to clean: true # Automatically remove deleted files from the deploy branch - commit-message: "Deploy site generated on ${{ github.sha }}" \ No newline at end of file + commit-message: "Deploy site generated on ${{ github.sha }}" diff --git a/Makefile b/Makefile index 8d5e654..b92fa63 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,13 @@ +<<<<<<< HEAD fmt: cp find . -name '*.go' -exec gofumpt -w -s -extra {} \; cp: - cp -v ./.github/workflows/page.yml pkg/templates/page.yml \ No newline at end of file + cp -v ./.github/workflows/page.yml pkg/templates/page.yml +||||||| 883cc95 +fmt: + find . -name '*.go' -exec gofumpt -w -s -extra {} \; +======= +fmt: + find . -name '*.go' -exec gofumpt -w -s -extra {} \; +>>>>>>> a0804fdff6ce1cf2312908d85889ae632c2915e6 diff --git a/README.md b/README.md index 9e0c4ea..641e374 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # go-gh-page -A tool that automatically generates GitHub Pages static websites from repository content. It converts your repository's Markdown files to HTML with a consistent layout, handles navigation, and preserves your documentation structure. +A tool that automatically generates GitHub Pages static websites from repository content. It converts your repository's Markdown files to HTML with a consistent layout, handles navigation, and preserves your documentation structure. It can be used as a github workflow for any repo. ## Features diff --git a/pkg/templates/doc.html b/pkg/templates/doc.html index cd9cec5..125fd49 100644 --- a/pkg/templates/doc.html +++ b/pkg/templates/doc.html @@ -4,226 +4,7 @@