Skip to content

Repeating sections when using .md files #1113

Closed
@ziguro

Description

@ziguro

Hi,

I am just starting with documentation.js version 8.0.2 on Windows 10 Pro. (Node version is 8.11.3)
Issue is repeating sections when I use md files. To reproduce, you can try these steps.

  1. Create a folder "Test".
  2. Cd into "Test"
  3. Created a folder "src"
  4. Cd into "src" and create a file "intro.md"
  5. Type "Hello World!" in intro.md
  6. Cd out of "src" and create a config file "documentation.yml"
  7. Typed below:
toc:
  - name: Introduction
    file: src/intro.md
  1. Build doc with this paramerters in Windows cmd terminal.
>documentation build --format html --output docs --config documentation.yml src\*

When I open "docs\index.html" in Chrome, I see "Introduction" section repeating twice as shown here.

Resulting file structure is like this.

|-Test
   |- docs
      |- assets
      |- index.html
   |- src
      |- intro.md
   |- documentation.yml

Any help to prevent this would be appreciated.
Thanks.

Test.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions