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

Include default AsciiDoctor stylesheet #16

Closed
eshepelyuk opened this issue Nov 4, 2014 · 5 comments
Closed

Include default AsciiDoctor stylesheet #16

eshepelyuk opened this issue Nov 4, 2014 · 5 comments

Comments

@eshepelyuk
Copy link
Contributor

Is it possible with means of Jekyll plugin to include default CSS asciidoctor-default.css from AsciiDoctor GEM into generated HTML for better styling of AsciiDoc markup without need of manually find and include the CSS file into Jekyll templates.

@mojavelinux
Copy link
Member

I agree. Though, to avoid conflict with page layout, we should include the embeddable version of the stylesheet, which is still under development here: asciidoctor/asciidoctor-stylesheet-factory#18

For now, you could add some logic to the top of the plugin to extract and write the stylesheet to disk. You can see how this is done in Asciidoctor core:

https://github.com/asciidoctor/asciidoctor/blob/master/lib/asciidoctor.rb#L1492

@eshepelyuk
Copy link
Contributor Author

Unfortunately I am not familiar with ruby ecisystem so will be unable to adjust the plugin's code.
I will close this issue for now.

@mojavelinux
Copy link
Member

We can leave this issue open as we haven't resolved it yet...and it's a good idea ;)

@mojavelinux mojavelinux reopened this Nov 5, 2014
@mojavelinux
Copy link
Member

I believe that JAQ now fills this void. In addition, version 2.0.0 allows you to generate standalone HTML files, which will include the stylesheet by default.

@djencks
Copy link
Contributor

djencks commented Mar 14, 2021

A comment in the docs about specifying the stylesheets in a layout would be good, otherwise there's nothing to do here.

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

No branches or pull requests

3 participants