mirror of https://github.com/rclone/rclone.git
docs: stop shouting the SEE ALSO header
This commit is contained in:
parent
458d93ea7e
commit
874616a73e
|
@ -184,6 +184,9 @@ rclone.org website.`,
|
||||||
if name != "rclone.md" {
|
if name != "rclone.md" {
|
||||||
return fmt.Errorf("internal error: failed to find cut points: startCut = %d, endCut = %d", startCut, endCut)
|
return fmt.Errorf("internal error: failed to find cut points: startCut = %d, endCut = %d", startCut, endCut)
|
||||||
}
|
}
|
||||||
|
if endCut >= 0 {
|
||||||
|
doc = doc[:endCut] + "### See Also" + doc[endCut+12:]
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
var out strings.Builder
|
var out strings.Builder
|
||||||
if groupsString := cmd.Annotations["groups"]; groupsString != "" {
|
if groupsString := cmd.Annotations["groups"]; groupsString != "" {
|
||||||
|
@ -202,7 +205,7 @@ rclone.org website.`,
|
||||||
See the [global flags page](/flags/) for global options not listed here.
|
See the [global flags page](/flags/) for global options not listed here.
|
||||||
|
|
||||||
`)
|
`)
|
||||||
doc = doc[:startCut] + out.String() + doc[endCut:]
|
doc = doc[:startCut] + out.String() + "### See Also" + doc[endCut+12:]
|
||||||
}
|
}
|
||||||
|
|
||||||
// outdent all the titles by one
|
// outdent all the titles by one
|
||||||
|
|
Loading…
Reference in New Issue