From 820f878d297885b8ed6a7211eaae76de28ce633e Mon Sep 17 00:00:00 2001 From: Josh Dolitsky Date: Tue, 14 Nov 2023 16:42:31 -0600 Subject: [PATCH] Add link to project on bottom Signed-off-by: Josh Dolitsky --- README.md | 4 +++- docs/index.html | 8 +++++--- main.go | 15 +++++++++------ 3 files changed, 17 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 427a39d..b9f9df6 100644 --- a/README.md +++ b/README.md @@ -1 +1,3 @@ -# specs-latest \ No newline at end of file +# specs-latest + +Source code to generate https://oci-playground.github.io/specs-latest/ diff --git a/docs/index.html b/docs/index.html index d4856fc..748efa0 100644 --- a/docs/index.html +++ b/docs/index.html @@ -3,9 +3,8 @@ OCI specs latest -
+

OCI specs latest

-

last generated: Tue Nov 14 16:37:05 2023


distribution

+
+

generated on Tue Nov 14 16:42:08 2023

+

generated by github.com/oci-playground/specs-latest

+
diff --git a/main.go b/main.go index a5300fb..80b3bd7 100644 --- a/main.go +++ b/main.go @@ -65,25 +65,28 @@ func processConfig(config *specsConfig) { gitWorkspace := filepath.Join(currentDir, "docs", "git-workspace") log.Printf("ensuring git workspace directory %s", gitWorkspace) os.MkdirAll(gitWorkspace, 0755) - now := time.Now().Format("Mon Jan 02 15:04:05 2006") - s := fmt.Sprintf(` + + s := ` OCI specs latest

OCI specs latest

-

last generated: %s

-`, now) +` for _, spec := range config.Specs { os.Chdir(gitWorkspace) s += processSpec(&spec) } os.Chdir(currentDir) - s += `
+ now := time.Now().Format("Mon Jan 02 15:04:05 2006") + s += fmt.Sprintf(`
+

generated on %s

+

generated by github.com/oci-playground/specs-latest

+ -` +`, now) indexFile := filepath.Join(currentDir, "docs", "index.html") if err := os.WriteFile(indexFile, []byte(s), 0644); err != nil { log.Fatalf("WriteFile: %v", err)