Skip to content

Section title out of sequence with operation macro when using leveloffset #649

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

Closed
mle-enso opened this issue Oct 15, 2019 · 2 comments
Closed
Labels
Milestone

Comments

@mle-enso
Copy link
Contributor

mle-enso commented Oct 15, 2019

We still experience the same issue that was also referenced in #638 and thought this should be fine with the 2.0.4 release.

We use the Spring Boot release 2.1.9 and with that Spring RESTDocs 2.0.4 with the following (shrinked to the necessary) index.adoc:

= The title
additional info;
:doctype: book
:icons: font
:source-highlighter: highlightjs
:toc: left
:toclevels: 4
:leveloffset: 1
:sectlinks:
:sectnums:
:linkattrs:
:last-update-label!:

Sample explanation

operation::regenerateAllItems[snippets='path-parameters']

After building there is still this error which does not show up with Spring RESTDocs 2.0.3:

[INFO] asciidoctor: WARN: index.adoc: line 2: section title out of sequence: expected levels 0 or 1, got level 2
@wilkinsona wilkinsona changed the title Section title out of sequence with operation macro Section title out of sequence with operation macro when using leveloffset Oct 16, 2019
@wilkinsona
Copy link
Member

Thanks for the report. It's :leveloffset: 1 that is causing the problem. We'll need to see if it can be taken into account when create the section(s) for the operation's snippet(s).

@wilkinsona wilkinsona added type: bug A bug and removed status: waiting-for-triage Untriaged issue labels Oct 16, 2019
@wilkinsona wilkinsona added this to the 2.0.5.RELEASE milestone Oct 16, 2019
@mle-enso
Copy link
Contributor Author

Well what a quick solution! Thanks Andy!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants