Skip to content

Comments

CAMEL-15337: Add TOC to static content#459

Merged
zregvart merged 1 commit intoapache:masterfrom
zregvart:pr/toc-redux
Aug 14, 2020
Merged

CAMEL-15337: Add TOC to static content#459
zregvart merged 1 commit intoapache:masterfrom
zregvart:pr/toc-redux

Conversation

@zregvart
Copy link
Member

Based on work by @AemieJ in #446 this simplifies the implementation by
relying on the implementation already provided by Antora.

The main issue with reusing the Antora implementation was that the
markup of rendered Asciidoc contains <div class="sect?"> elements
around the chapters. Hugo rendered, static, content does not have this,
so the logic for the on this page functionality needed to be adjusted
slightly because of this.

Based on work by @AemieJ in apache#446 this simplifies the implementation by
relying on the implementation already provided by Antora.

The main issue with reusing the Antora implementation was that the
markup of rendered Asciidoc contains `<div class="sect?">` elements
around the chapters. Hugo rendered, static, content does not have this,
so the logic for the _on this page_ functionality needed to be adjusted
slightly because of this.
@zregvart
Copy link
Member Author

@AemieJ can you have a look at this?

@AemieJ
Copy link
Contributor

AemieJ commented Aug 14, 2020

@zregvart I didn't see that the Hugo missed that section. This is a much easier implementation and it works perfectly.

@zregvart zregvart merged commit 3fa7c29 into apache:master Aug 14, 2020
@zregvart zregvart deleted the pr/toc-redux branch August 14, 2020 06:51
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