Skip to content
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

Embed Files - random order of headers in sidebar #828

Closed
1 task
reinkepatrick opened this issue Apr 27, 2019 · 3 comments
Closed
1 task

Embed Files - random order of headers in sidebar #828

reinkepatrick opened this issue Apr 27, 2019 · 3 comments
Labels

Comments

@reinkepatrick
Copy link

reinkepatrick commented Apr 27, 2019

Bug Report

I have a docsify page with subpages by the _sidebar.md, this is hosted via GitHub pages. I wanted to separate the one page by embed files. Now I have the problem that the order of the points in the sidebar changes randomly, these points are not the ones in the _sidebar.md but are generated by the headers. When I reload web page then the whole page is empty.

Steps to reproduce

Page hosted on GitHub-Pages. Under page added to the _sidebar.md and split by embed files.

<!-- _sidebar.md -->

* [Point](point/index.md)
<!-- point/index.md -->

# Point

[section1](sections/section1.md ':include')

[section2](sections/section2.md ':include')
<!-- sections/section1.md -->

# Hello Section 1

## Hello World Section 1
<!-- sections/section2.md -->

# Hello Section 2

## Hello World Section 2

What is current behaviour

The headers are displayed randomly. As an example:

<!-- Example 1 -->

- Hello Section 2
  - Hello World Section 1
  - Hello World Section 2
- Hello Section 1
<!-- Example 1 -->

- Hello Section 2
  - Hello World Section 2
- Hello Section 1
  - Hello World Section 1

What is the expected behaviour

The pages are imported in the order I specify them.

Other relevant information

  • Bug does still occur when all/other plugins are disabled?

  • Your OS: Windows 10

  • Node.js version: -

  • npm/yarn version: -

  • Browser version: Google Chrome 74.0.3729.108

  • Docsify version: 4.9.1

  • Docsify plugins: -

@reinkepatrick reinkepatrick changed the title Embed Files - random order of file contents Embed Files - random order of headers in sidebar Apr 27, 2019
@marisk
Copy link

marisk commented May 13, 2019

This may be directly related to #791

@stale
Copy link

stale bot commented Feb 4, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Feb 4, 2020
@rolaguna
Copy link

I have a similar issue:

My sidebar shows the following:

  • A -> points to A.md
    • BB -> points to B.md

Which is ok.

However, when I click in A, the headers from A.md are included as submenus from A, at the same level that B:

  • A -> points to A.md
    • BB -> points to B.md
    • A.AA -> points to A.md#AA

However, I'd like/expect it to be as follows:

  • A -> points to A.md
    • A.AA -> points to A.md#AA
    • BB -> points to B.md

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