- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for cleanupForInclude (0.43 sec)
-
cmd/genkubedocs/postprocessing_test.go
"line 2\n" + "### SEE ALSO\n" + "line 3", expectedMarkdown: "line 2\n", }, } for _, rt := range tests { actual := cleanupForInclude(rt.markdown) if actual != rt.expectedMarkdown { t.Errorf( "failed cleanupForInclude:\n\texpected: %s\n\t actual: %s", rt.expectedMarkdown, actual, ) } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jan 30 13:22:22 UTC 2019 - 1.5K bytes - Viewed (0) -
cmd/genkubedocs/postprocessing.go
return os.WriteFile(filename, []byte(processedMarkDown), 0644) } // cleanupForInclude parts of markdown that will make difficult to use it as include in the website: // - The title of the document (this allow more flexibility for include, e.g. include in tabs) // - The sections see also, that assumes file will be used as a main page func cleanupForInclude(md string) string { lines := strings.Split(md, "\n") cleanMd := ""
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Feb 01 05:59:41 UTC 2022 - 1.8K bytes - Viewed (0) -
cmd/genkubedocs/gen_kube_docs.go
doc.GenMarkdownTree(kubeadm, outDir) // cleanup generated code for usage as include in the website MarkdownPostProcessing(kubeadm, outDir, cleanupForInclude) default: fmt.Fprintf(os.Stderr, "Module %s is not supported", module) os.Exit(1) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Feb 01 05:59:41 UTC 2022 - 2.8K bytes - Viewed (0)