From 96eac89be60e7750d3ea7fcfbffbb9881e279624 Mon Sep 17 00:00:00 2001 From: K-Sato1995 Date: Thu, 25 Jan 2024 21:11:05 +0900 Subject: [PATCH] rename to example --- example/.gitignore | 2 ++ {baseProject => example}/contents/test.md | 0 {baseProject => example}/contents/testMd.md | 0 example/go.mod | 11 +++++++++++ example/go.sum | 9 +++++++++ {baseProject => example}/main.go | 0 {baseProject => example}/templates/detail.css | 0 {baseProject => example}/templates/detail.html | 0 {baseProject => example}/templates/layout.css | 0 {baseProject => example}/templates/list.css | 0 {baseProject => example}/templates/list.html | 0 simple-ssg-cli/cmd/init.go | 4 ++-- 12 files changed, 24 insertions(+), 2 deletions(-) create mode 100644 example/.gitignore rename {baseProject => example}/contents/test.md (100%) rename {baseProject => example}/contents/testMd.md (100%) create mode 100644 example/go.mod create mode 100644 example/go.sum rename {baseProject => example}/main.go (100%) rename {baseProject => example}/templates/detail.css (100%) rename {baseProject => example}/templates/detail.html (100%) rename {baseProject => example}/templates/layout.css (100%) rename {baseProject => example}/templates/list.css (100%) rename {baseProject => example}/templates/list.html (100%) diff --git a/example/.gitignore b/example/.gitignore new file mode 100644 index 0000000..6848620 --- /dev/null +++ b/example/.gitignore @@ -0,0 +1,2 @@ +# Update based on the given path +/generated \ No newline at end of file diff --git a/baseProject/contents/test.md b/example/contents/test.md similarity index 100% rename from baseProject/contents/test.md rename to example/contents/test.md diff --git a/baseProject/contents/testMd.md b/example/contents/testMd.md similarity index 100% rename from baseProject/contents/testMd.md rename to example/contents/testMd.md diff --git a/example/go.mod b/example/go.mod new file mode 100644 index 0000000..3022f41 --- /dev/null +++ b/example/go.mod @@ -0,0 +1,11 @@ +module example + +go 1.21.6 + +require github.com/K-Sato1995/go-simple-ssg v0.0.4 + +require ( + github.com/evanw/esbuild v0.19.12 // indirect + github.com/gomarkdown/markdown v0.0.0-20231222211730-1d6d20845b47 // indirect + golang.org/x/sys v0.16.0 // indirect +) diff --git a/example/go.sum b/example/go.sum new file mode 100644 index 0000000..7116ec2 --- /dev/null +++ b/example/go.sum @@ -0,0 +1,9 @@ +github.com/K-Sato1995/go-simple-ssg v0.0.4 h1:VxfyJ4yJ5fsKulFvv0FYoV/AAqqvL9TM31/7eHTbStc= +github.com/K-Sato1995/go-simple-ssg v0.0.4/go.mod h1:YHycf9HcvbY/X3H4qVyRfd3RY/zLByBCLnxd737rHJI= +github.com/evanw/esbuild v0.19.12 h1:p5WGo4o6TCN+kt+uZtYSGS3ZHPa+iIZ0SX+ys8UnP10= +github.com/evanw/esbuild v0.19.12/go.mod h1:D2vIQZqV/vIf/VRHtViaUtViZmG7o+kKmlBfVQuRi48= +github.com/gomarkdown/markdown v0.0.0-20231222211730-1d6d20845b47 h1:k4Tw0nt6lwro3Uin8eqoET7MDA4JnT8YgbCjc/g5E3k= +github.com/gomarkdown/markdown v0.0.0-20231222211730-1d6d20845b47/go.mod h1:JDGcbDT52eL4fju3sZ4TeHGsQwhG9nbDV21aMyhwPoA= +golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.16.0 h1:xWw16ngr6ZMtmxDyKyIgsE93KNKz5HKmMa3b8ALHidU= +golang.org/x/sys v0.16.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= diff --git a/baseProject/main.go b/example/main.go similarity index 100% rename from baseProject/main.go rename to example/main.go diff --git a/baseProject/templates/detail.css b/example/templates/detail.css similarity index 100% rename from baseProject/templates/detail.css rename to example/templates/detail.css diff --git a/baseProject/templates/detail.html b/example/templates/detail.html similarity index 100% rename from baseProject/templates/detail.html rename to example/templates/detail.html diff --git a/baseProject/templates/layout.css b/example/templates/layout.css similarity index 100% rename from baseProject/templates/layout.css rename to example/templates/layout.css diff --git a/baseProject/templates/list.css b/example/templates/list.css similarity index 100% rename from baseProject/templates/list.css rename to example/templates/list.css diff --git a/baseProject/templates/list.html b/example/templates/list.html similarity index 100% rename from baseProject/templates/list.html rename to example/templates/list.html diff --git a/simple-ssg-cli/cmd/init.go b/simple-ssg-cli/cmd/init.go index b165aa1..93000a4 100644 --- a/simple-ssg-cli/cmd/init.go +++ b/simple-ssg-cli/cmd/init.go @@ -24,7 +24,7 @@ func init() { RootCmd.AddCommand(initCmd) } -const BASE_PROJECT_PATH = "baseProject" +const BASE_PROJECT_PATH = "example" const REPO_URL = "https://github.com/K-Sato1995/go-simple-ssg" func initialize(cmd *cobra.Command, args []string) { @@ -62,7 +62,7 @@ func initialize(cmd *cobra.Command, args []string) { err = copyDir(baseProjectPath, projectDir) if err != nil { - fmt.Println("Error copying baseProject:", err) + fmt.Println("Error copying example:", err) return }