fix: MAN format — remove div markdown=1, use clean Markdown in details
This commit is contained in:
@@ -162,11 +162,9 @@ func buildManualPage(spec types.ServiceSpec, nav string, version string) string
|
||||
// MAN в раскрывающемся блоке — DevOps читает если застрял
|
||||
man := strings.TrimSpace(spec.ServiceMan)
|
||||
if man != "" {
|
||||
b.WriteString("<details>\n<summary>Справка (MAN)</summary>\n\n")
|
||||
b.WriteString("<div class=\"man-content\" markdown=\"1\">\n\n")
|
||||
b.WriteString("<details class=\"man-content\">\n<summary>Справка (MAN)</summary>\n\n")
|
||||
b.WriteString(htmlToMarkdown(man))
|
||||
b.WriteString("\n\n</div>\n")
|
||||
b.WriteString("</details>\n")
|
||||
b.WriteString("\n\n</details>\n")
|
||||
}
|
||||
return b.String()
|
||||
}
|
||||
|
||||
@@ -43,11 +43,15 @@
|
||||
padding-bottom: 0.3rem;
|
||||
}
|
||||
|
||||
.md-typeset .man-content {
|
||||
.md-typeset details.man-content {
|
||||
font-size: 0.78rem;
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
.md-typeset details.man-content[open] {
|
||||
margin-top: 0.5rem;
|
||||
}
|
||||
|
||||
/* Resource title + tabs: compact */
|
||||
.md-typeset .md-content__inner > h1:first-child {
|
||||
font-size: 0.77rem;
|
||||
|
||||
Reference in New Issue
Block a user