Skip to content

Convert a an empty book/preface/title into abstract#752

Merged
fsundermeyer merged 1 commit into
4.0.beta13from
toms/adoc-postprocess-preface-in-book
Mar 11, 2026
Merged

Convert a an empty book/preface/title into abstract#752
fsundermeyer merged 1 commit into
4.0.beta13from
toms/adoc-postprocess-preface-in-book

Conversation

@tomschr
Copy link
Copy Markdown
Collaborator

@tomschr tomschr commented Mar 6, 2026

Background

When transforming SUSE AI (for example, DC-AI-deployment) into a bigfile, you end up with this structure:

<book ...>
  <info> ... </info>
  <preface>
     <title />
     <variablelist> <!-- What, why, effort, and goal --> </variablelist>
  </preface>

  <!-- rest of the book -->
</book>

Effect

The empty preface title leads to an odd empty link in the left side TOC. Additionally, the title vanishes.

Proposal

This fix adds additional templates that deals with an empty preface title. If the stylesheet detects such structure, it moves everything inside the <preface> moved into an <abstract> placed inside an <info>.

This is the usual structure we have with Smart Docs.

When you have a <preface> with an empty <title>, this should
not stay as a <preface>, but moved into <info> inside an
<abstract>.
@tomschr tomschr force-pushed the toms/adoc-postprocess-preface-in-book branch from 8980ab0 to d9c337a Compare March 9, 2026 09:31
@fsundermeyer fsundermeyer merged commit 4ae0370 into 4.0.beta13 Mar 11, 2026
2 checks passed
@fsundermeyer fsundermeyer deleted the toms/adoc-postprocess-preface-in-book branch March 11, 2026 10:07
fsundermeyer pushed a commit that referenced this pull request Mar 12, 2026
When you have a <preface> with an empty <title>, this should
not stay as a <preface>, but moved into <info> inside an
<abstract>.
fsundermeyer pushed a commit that referenced this pull request Mar 12, 2026
When you have a <preface> with an empty <title>, this should
not stay as a <preface>, but moved into <info> inside an
<abstract>.
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

Successfully merging this pull request may close these issues.

2 participants