fixup pdf build

Signed-off-by: Christian Goll <cgoll@suse.com>
This commit is contained in:
Christian Goll
2025-03-03 11:58:43 +01:00
committed by Jonathon Anderson
parent a58b48fa52
commit d256d15c20
5 changed files with 11 additions and 4 deletions

View File

@@ -11,6 +11,7 @@ func CobraRunE(cmd *cobra.Command, args []string) (err error) {
linkHandler := func(name, ref string) string {
return fmt.Sprintf(":ref:`%s <%s>`", name, ref)
}
cmd.Parent().Parent().DisableAutoGenTag = true
err = doc.GenReSTTreeCustom(cmd.Parent().Parent(), args[0], func(arg string) string { return "" }, linkHandler)
//err = doc.GenReSTTree(cmd.Parent().Parent(), args[0])
return