Skip to content
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

Admonition icon not rendered in asciidoc-maven-site-example #67

Open
ppalaga opened this issue Jan 2, 2018 · 3 comments
Open

Admonition icon not rendered in asciidoc-maven-site-example #67

ppalaga opened this issue Jan 2, 2018 · 3 comments
Labels

Comments

@ppalaga
Copy link

ppalaga commented Jan 2, 2018

Steps to reproduce:

cd asciidoc-maven-site-example
mvn clean site
google-chrome target/site/hello.html

Expected: the [TIP] admonition should be rendered with some kind of a bulb icon
Actual: no icon at all - see the screenshot

image

@abelsromero abelsromero added the bug label Jan 2, 2018
@abelsromero
Copy link
Member

Sorry, this a long standing known issue of the site goal.
The site embeds the generated HTML without Asciidoctor and fontawesome CSSs. That affects a lot of things like tables, icons, and several other stuff.
The solution requires a specific CSS that merges gently with the site CSS, Dan summarizes it very well here asciidoctor/asciidoctor-maven-plugin#166 (comment).

@ppalaga
Copy link
Author

ppalaga commented Jan 2, 2018

Thanks, I think I understand what's the problem. Where can I find the "standalone" asciidoctor css to steal the missing styles from?

@abelsromero
Copy link
Member

abelsromero commented Jan 3, 2018

The default CSS is here:
https://github.com/asciidoctor/asciidoctor/blob/master/data/stylesheets/asciidoctor-default.css
The font-awesom icons are imported using the CDN:

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.6.3/css/font-awesome.min.css">

Also, if you are going to play with the CSS, you may be interested in checking also the stylesheet factory: https://github.com/asciidoctor/asciidoctor-stylesheet-factory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants