user guide: generate html with css

This commit is contained in:
Rodrigo Arias 2021-02-08 18:53:10 +01:00
parent edd71815eb
commit 042876a287
3 changed files with 23 additions and 2 deletions

View File

@ -2,3 +2,4 @@
*.ascii
*.html
*.pdf
grohtml*

View File

@ -18,8 +18,9 @@ ug.pdf: ug.mm Makefile
groff -mm $(PREPROC) $(POSTPROC) $(REGISTERS) -dpaper=a4 -Tpdf $< > $@
-killall -HUP mupdf
ug.xhtml: ug.mm Makefile
groff -mm $(PREPROC) $(POSTPROC) -Txhtml $< > $@
%.html: %.ms Makefile
REFER=ref.i groff -ms $(PREPROC) $(POSTPROC) $(REGISTERS) -Thtml $< > $@
sed -i '/<\/head>/i<link rel="stylesheet" href="s.css">' $@
%.pdf: %.ms Makefile
REFER=ref.i groff -ms $(PREPROC) $(PDFOPT) -Tpdf $< > $@

19
garlic/doc/s.css Normal file
View File

@ -0,0 +1,19 @@
html {
line-height: 1.6;
margin-bottom: 50px;
padding-bottom: 80px;
}
body {
max-width: 700px;
text-align: justify;
margin:0 auto;
}
pre {
overflow: auto;
display: block;
padding: 3px 3px;
line-height: 1.4;
background-color: #eeeeee;
}