Skip to content

Commit

Permalink
Merge pull request #2249 from imjasonh/marker-before
Browse files Browse the repository at this point in the history
📖 Make markers more easily copyable
  • Loading branch information
k8s-ci-robot authored Jul 2, 2021
2 parents 1831527 + f86a161 commit 7429836
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 0 additions & 5 deletions docs/book/theme/css/markers.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,8 @@
margin-bottom: 0.25em;
}

/* the marker name */
.marker > dt.name::before {
content: '// +';
}
.marker > dt.name {
font-weight: bold;
order: 0; /* hack around the ::before's positioning to get it after the line */
}

/* the target blob */
Expand Down
2 changes: 1 addition & 1 deletion docs/book/utils/markerdocs/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func markerTemplate(marker *MarkerDoc) toHTML {

// the marker name
term := dt(classes{"literal", "name"},
Text(marker.Name))
Text("// +"+marker.Name))

// the args summary (displayed in summary mode)
var fields []toHTML
Expand Down

0 comments on commit 7429836

Please sign in to comment.