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

Allow to define a keep together open block to avoid page break between related content #1407

Closed
ggrossetie opened this issue Nov 24, 2019 · 0 comments
Assignees
Milestone

Comments

@ggrossetie
Copy link
Member

The idea is to be able to create a "keep-together" block to avoid page break:

[.keep-together]
--
The following image shows the stellar evolution of a high-mass star:

image::star[]
--

In the above document, we want to avoid a page break between the introductory paragraph and the image.
Similarly, we could use this block with other types of content:

[.keep-together]
--
To install Antora, open a terminal and type:

 $ npm i -g @antora/cli@2.2 @antora/site-generator-default@2.2

IMPORTANT: The `@` at the beginning of the package name is important.
It tells `npm` that the `cli` package is located in the `antora` group.
If you omit this character, `npm` will assume the package name is the name of a git repository on GitHub.
The second `@` offsets the requested version number.
Only the major and minor segments are specified to ensure you receive the latest patch update.
--
ggrossetie added a commit to ggrossetie/asciidoctor-pdf that referenced this issue Nov 24, 2019
ggrossetie added a commit to ggrossetie/asciidoctor-pdf that referenced this issue Nov 24, 2019
@mojavelinux mojavelinux added this to the v1.5.0 milestone Nov 28, 2019
ggrossetie added a commit to ggrossetie/asciidoctor-pdf that referenced this issue Nov 28, 2019
The content of an unbreakable open block will be kept together on the same page (if it fits on one page).
ggrossetie added a commit to ggrossetie/asciidoctor-pdf that referenced this issue Nov 28, 2019
The content of an unbreakable open block will be kept together on the same page (if it fits on one page).
ggrossetie added a commit to ggrossetie/asciidoctor-pdf that referenced this issue Nov 28, 2019
The content of an unbreakable open block will be kept together on the same page (if it fits on one page).
@mojavelinux mojavelinux modified the milestones: v1.5.0, v1.5.0.rc.1 Jan 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants