-
Notifications
You must be signed in to change notification settings - Fork 807
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Document how to generate output for off-line viewing #578
Comments
Bit more info -
"If you unset the iconfont-remote attribute, Asciidoctor will attempt to load Font Awesome from the output directory. asciidoctor -a icons=font -a stylesdir=css -a iconfont-remote! document.adoc This will configure the HTML to reference Font Awesome as follows: You then need to organize the Font Awesome files as follows (which mirrors how they are packed in the Font Awesome distribution). css/font-awesome.css
|
Admonition icons - yes, same as inline icons STEM - see asciidoctor/asciidoctor#659 Stylesheets - Easiest way to add arbitrary css is to put them in a docinfo. |
The
off-line1.adoc (same dir, working...):
The NOTE icon does work: off-line2.adoc (css at parent dir, doesn't work): See the stylesdir: ../css
The NOTE icon doesn't work: |
That's correct. The layout of Font Awesome layout is very restrictive at the moment because of the hardcoded relative path to the font in the Font Awesome CSS file. I point this out in the following comment, which is slated for being included in the documentation. https://github.com/asciidoctor/asciidoctor.org/issues/361#issuecomment-202750710 One quick solution is to open the CSS file and change the path to the font. |
This is mentioned in a couple of places, but needs drawing together in a single topic at the end of "Customizing Your Output".
To include highlighting, STEM, webfonts, stylesheets. Provide sample command line.
Main target is HTML but does it affect any other backends?
The text was updated successfully, but these errors were encountered: