Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore : update the site generation script #595

Merged
merged 1 commit into from
Sep 21, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ push: ## Push images to registry. WARN: This operation should only be done in CI
cd contrib/functions/ts && $(MAKE) push

site-generate: ## Collect function branches and generate a catalog of their examples and documentation using kpt next.
rm -rf ./site/*/
rm -rf ./site/*/ && mkdir site/contrib
(cd scripts/generate_catalog/ && go run . ../.. ../../site)

site-run: ## Run the site locally.
Expand Down
2 changes: 0 additions & 2 deletions scripts/generate_catalog/generate_catalog.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,6 @@ func getFunctions(branches []string, source string, dest string) []function {

// Functions with the hidden field enabled should not be processed.
metadataPath := strings.TrimSpace(fmt.Sprintf("%v:%v", b, filepath.Join(relativeFuncPath, "metadata.yaml")))
fmt.Fprintf(os.Stderr, "metadataPath: %v\n", metadataPath)

md, err := getMetadata(metadataPath)
if err != nil {
fmt.Fprintf(os.Stderr, "Error getting metadata for %q from %q: %v\n", funcName, b, err)
Expand Down