Skip to content

Is there a way to link to CSS instead of embedding it? #729

Open
@kriegaex

Description

@kriegaex
  • Bug report
  • Feature request
  • Question

Description

Using the Maven plugin, I am creating dozens of HTML files from asciidoc files. Each one of them embeds a significant amount of CSS. As all the generated docs will end up on the same website, I am wondering if there is any way to generate CSS just once and automatically link to it from each HTML file.

I am not very experienced in all things Asciidoctor, but I read about safe mode and linkcss. What I do not know, is whether I can set those options centrally as a Maven plugin option or need to edit each single file to have the same settings. I found no examples setting those attributes here or in the Maven plugin examples repository.

If it is relevant, I still need to be using include:: in some documents.

BTW, I searched the web and Stack Overflow for an answer, but did not find any.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions