owenh000 / asciidoctor-multipage

A configurable multipage HTML converter for Asciidoctor
https://owenh.net/asciidoctor-multipage
MIT License
58 stars 23 forks source link

The appendix section number is wrong. #37

Closed diguage closed 2 years ago

diguage commented 2 years ago
= Example Manual^Alpha^
Doc Writer <doc.writer@example.org>
2014-09-09
:icons: font
:source-highlighter: rouge
:rouge-style: monokai
:stylesdir: assets/styles/
:linkcss:

This is a user manual for an example project.

:sectnums:

[#introduction]
== Introduction

This project does something.
We just haven't decided what that is yet.

[#source-code]
[appendix]
== Source `Code` Example

[source,java]
.Java code from project
----
package com.diguage;

/**
 * @author D瓜哥 · https://www.diguage.com/
 */
public class Main {
    public static void main(String[] args)
        System.out.println("Hello, world");
    }
}
----

This page was built by the following command:

 $ mvn

image

image

owenh000 commented 2 years ago

Hi @diguage, thanks for the report. Your example does not actually have the Table of Contents enabled, but I have confirmed the bug with the example below:

= Example Manual
Doc Writer <doc.writer@example.org>
2014-09-09
:toc: left
:sectnums:

This is a user manual for an example project.

[#introduction]
== Introduction

This project does something.

[#source-code]
[appendix]
== Source Code Example

This is appendix content.

Generated with:

$ bundler exec asciidoctor -r asciidoctor-multipage -b multipage_html5 -D test/out test.adoc
diguage commented 2 years ago

Hi @diguage, thanks for the report. Your example does not actually have the Table of Contents enabled, but I have confirmed the bug with the example below

@owenh000 Sorry. The :toc: left parameter was set by Maven, not in the document. 😄😄

owenh000 commented 2 years ago

@owenh000 Sorry. The :toc: left parameter was set by Maven, not in the document. :smile::smile:

No problem! I just wanted to have a clear test case without the external dependency.

owenh000 commented 2 years ago

This issue is actually a duplicate of issue #33, so I'm closing this one in favor of it.