On 10/11/2015 21:44, KI7MT wrote:
*STYLESHEETS*
- There are a couple things that need be customized, like font sizes and
possibly Section Header colours etc. That can be worked on for the
WSJT-X v1.6.1 release.
- We should create a master *.css file and stick it in the repository
somewhere, then pull that sheet into each document tree as appropriate.
To use a custom stylesheet is rather simple, add the attribute to the
main document header (relative to *-main.adoc file):
:stylesheet: wsjt-master.css
or whatever you want to name it. For ease of implementation, you can add
it to the same directory as the *-main.adoc file. Or use the theme
directory, whichever is easier to manage.
Asciidoctor provides what they call a "Theme Factory" for generating
stylesheets. We can get into this later, but it's very easy to generate
new themes / stylesheets.
Hi Greg,
there is no need for that level of complication. The asciidoctor tool
allows for docinfo files which can be used to append CSS. All that is
needed is the asciidoc source specify the following in the header:
:docinfo1:
and add a file called docinfo.html to the source directory. For example
with the WSJT-X User Guide I have a docinfo.html with the following content:
<style>
body {
font-family: Arial, Hevetica, sans-serif;
}
h1, h2, h3, h4, h5, h6 {
font-family: Georgia, "Times New Roman", Times, serif;
}
a:visited {
color: purple;
}
</style>
This causes the User Guide to be rendered close to the version produced
currently by asciidoc. Here is a sample:
https://dl.dropboxusercontent.com/u/4192709/wsjtx-main-1.6.0-devel.html
This works because the docinfo.html fragment is inserted into the HTML
header so </style> and </script> elements may be added as required.
73
Bill
G4WJS.
------------------------------------------------------------------------------
_______________________________________________
wsjt-devel mailing list
wsjt-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wsjt-devel