Skip to content

Improve antora experience by putting a doc div into generated preview html #844

Closed
@lask79

Description

@lask79

I am currently looking into a way to improve the antora experience for our writers by providing a custom stylesheet that is as near as possible to our antora ui.

While looking into it I found the configuration to set the preview stylesheet. The problem now is that the default antora stylesheet are expecting everything to be under .doc div but in the preview html no .doc div is available. Everything is under an article.

Request

  • when antora support is set to true
  • generate the preview html under a div with the class="doc".

Benefits

  • It would be possible to put the whole antora ui-bundle/_css/ under e.g. .asciidoctor/preview and set the asciidoc.preview.style to ./asciidoctor/preview/css/site.css
  • Easy to get the same ui in the preview as in the antora page

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