mirror of
https://github.com/fluxcd/flux2.git
synced 2026-04-10 14:10:05 +00:00
fix links
- change links in cli docs to be relative (making mkdocs AND hugo happy) - run 'make docs' - fix other links Signed-off-by: Daniel Holbach <daniel@weave.works>
This commit is contained in:
parent
dea4a67639
commit
32f94bab97
120 changed files with 235 additions and 237 deletions
|
|
@ -32,8 +32,7 @@ title: "%s"
|
|||
`
|
||||
|
||||
var (
|
||||
cmdDocPath string
|
||||
cmdDocURLPath string
|
||||
cmdDocPath string
|
||||
)
|
||||
|
||||
var docgenCmd = &cobra.Command{
|
||||
|
|
@ -45,7 +44,6 @@ var docgenCmd = &cobra.Command{
|
|||
|
||||
func init() {
|
||||
docgenCmd.Flags().StringVar(&cmdDocPath, "path", "./docs/cmd", "path to write the generated documentation to")
|
||||
docgenCmd.Flags().StringVar(&cmdDocURLPath, "url-path", "/cmd/", "URL path the documentation is available at")
|
||||
|
||||
rootCmd.AddCommand(docgenCmd)
|
||||
}
|
||||
|
|
@ -67,5 +65,5 @@ func frontmatterPrepender(filename string) string {
|
|||
|
||||
func linkHandler(name string) string {
|
||||
base := strings.TrimSuffix(name, path.Ext(name))
|
||||
return cmdDocURLPath + strings.ToLower(base) + "/"
|
||||
return "../" + strings.ToLower(base) + "/"
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue