To make sphinx htmls with no sidebar and no margins for printing, here's
what worked for me.
If there's a simpler way, please comment.
(CSS has many many settings, and I have no idea which ones matter
or how they interact: trial and error.)
cd .../docs
edit source/conf.py
html_theme = 'haiku' # use a standard theme, see
http://sphinx-doc.org/theming.html
# NOT a possibly buggy source/_themes/...css_t
html_theme_options = { "nosidebar" : "true" )
edit $Site/sphinx/themes/haiku/static/haiku.css_t
body {
width: 100% !important;
margin: 0 !important;
padding: 0 !important;
font-size: 11pt;
line-height: 1.3;
font-family: "DejaVu Sans", Arial, Helvetica, sans-serif;
color: #000;
background: none;
}
instead of haiku.css
body {
margin: auto; ...
comment out @media print { ... } ,
use the @media print from @import url("basic.css"); instead
make html # teelog
Build finished. The HTML pages are in build/html.
ERROR: Unknown directive type "autosummary" -- ignore
Look at .../docs/build/html/index.html or xx.html in your browser:
mac Firefox
loop:
apple-P print menu
set pages ..., headers / footers, double-sided ...
PDF -> Open PDF in Previewr shows exactly what will print
print or cancel.
-- cheers
denis
--
You received this message because you are subscribed to the Google Groups
"sphinx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sphinx-users.
For more options, visit https://groups.google.com/d/optout.