mirror of
https://github.com/hercules-ci/flake-parts.git
synced 2025-03-13 20:28:41 +00:00
options.html: Highlighting and max-width
This commit is contained in:
parent
560ca44596
commit
d0ed679646
1 changed files with 21 additions and 1 deletions
|
@ -61,8 +61,28 @@
|
|||
baseUrl = "https://github.com/hercules-ci/flake-parts/blob/main";
|
||||
sourcePath = ../.;
|
||||
};
|
||||
# pandoc
|
||||
htmlBefore = ''
|
||||
<html>
|
||||
<head>
|
||||
<title>Options</title>
|
||||
<style type="text/css">
|
||||
a:target { background-color: rgba(239,255,0,0.5); }
|
||||
body {
|
||||
max-width: 40em;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
'';
|
||||
htmlAfter = ''
|
||||
</body>
|
||||
</html>
|
||||
'';
|
||||
buildPhase = ''
|
||||
pandoc --verbose --from docbook --to html5 $coreOptions >options.html
|
||||
(echo "$htmlBefore"; pandoc --verbose --from docbook --to html5 $coreOptions; echo "$htmlAfter"; ) >options.html
|
||||
'';
|
||||
installPhase = ''
|
||||
mkdir -p $out
|
||||
|
|
Loading…
Add table
Reference in a new issue