diff --git a/srcpkgs/mdocml/files/void.css b/srcpkgs/mdocml/files/void.css deleted file mode 100644 index 17bb533d10c..00000000000 --- a/srcpkgs/mdocml/files/void.css +++ /dev/null @@ -1,61 +0,0 @@ - -/** Void style **/ -html { - --fg: #333; - --bg: #fff; - --fg-accent: #478061; - --nav-fg: #fff; - --nav-bg: #478061; -} -@media (prefers-color-scheme: dark) { - html { - --fg: #ccc; - --bg: #222; - --fg-accent: #62b086; - --nav-fg: #fff; - --nav-bg: #295340; - } -} - -a, :link, :visited { color: var(--fg-accent); } -a:hover { color: var(--fg); } - -html { max-width: 100% } -body { margin: 0 } -.manual-text { max-width: 65em; padding: 0 1em; } - -nav#void-nav { - width:100%; - min-height:50px; - color:var(--nav-fg); - background-color:var(--nav-bg); - z-index:110; - font-size:14px -} -nav#void-nav ul { - display:block; - list-style:none; - margin:0 -} -nav#void-nav ul li { - display:inline-block; - margin:0; -} -nav#void-nav ul li a { - display:inline-block; - padding:15px; - line-height:20px; - font-size:1.2em; - color:var(--nav-fg); - text-decoration: none -} -nav#void-nav ul li a:hover,nav#void-nav ul li a:focus { - color:#fff; - background-color:#000; - text-decoration:none -} - -/** Hide architecture selector **/ -select[name="arch"] { - display: none; -} diff --git a/srcpkgs/mdocml/patches/cgi-head.patch b/srcpkgs/mdocml/patches/cgi-head.patch new file mode 100644 index 00000000000..c0429ce20c4 --- /dev/null +++ b/srcpkgs/mdocml/patches/cgi-head.patch @@ -0,0 +1,60 @@ +allows for injecting html into
for man-cgi + +https://inbox.vuxu.org/mandoc-tech/4d6a587e4edb6a4bd7fc6c5a790e3cf9e16ed7a6.camel@placeviolette.net/T/#u + +--- a/cgi.c ++++ b/cgi.c +@@ -408,11 +408,14 @@ + printf("(%.*s)", secsz, sec); + fputs(" - ", stdout); + } +- printf("%s\n" +- "\n" +- "\n", ++ printf("%s\n", + CUSTOMIZE_TITLE); + ++ resp_copy(MAN_DIR "/head.html"); ++ ++ printf("\n" ++ "\n"); ++ + resp_copy(MAN_DIR "/header.html"); + } + +--- a/man.cgi.3 15 Mar 2017 13:18:53 -0000 1.4 ++++ b/man.cgi.3 7 Nov 2022 17:32:35 -0000 +@@ -240,8 +240,10 @@ + .It Ft void Fn resp_begin_html "int code" "const char *msg" "const char *file" + This generator calls + .Fn resp_begin_http +-to print the HTTP headers, then prints the HTML header up to the +-opening tag of the element, then copies the file ++to print the HTTP headers, then prints the HTML header, then copies the file ++.Pa head.html ++to the output, if it exists and is readable, then prints up to the opening tag ++of the element, then copies the file + .Pa header.html + to the output, if it exists and is readable. + If +--- a/man.cgi.8 6 Jul 2022 15:47:28 -0000 1.24 ++++ b/man.cgi.8 7 Nov 2022 17:32:35 -0000 +@@ -199,6 +199,7 @@ + for this purpose. + The files + .Pa manpath.conf , ++.Pa head.html , + .Pa header.html , + and + .Pa footer.html +@@ -380,6 +381,10 @@ + .Sx Restricted character set , + .Nm + reports an internal server error and exits without doing anything. ++.It Pa /man/head.html ++An optional file containing static HTML code to be inserted right before ++closing the element. ++For example, it can contain additional tags or s to other resources. + .It Pa /man/header.html + An optional file containing static HTML code to be wrapped in + a