You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 5, 2022. It is now read-only.
The navigator should expand when I click to a children of children .html page. For example, when I click to "Problem 2-1", the navigator should highlight "Problem 2-1" to orange, and keeps expanding the content in the navigator.
Actual Behavior
The navigator closes when I click to a children of children .html page.
After clicking "Problem 2-1", the navigator will close, which is not so convenient.
Steps to Reproduce the Problem
The codes:
- text: 2 Getting Started
type: link
path: Chap02/2.0.html
children:
- text: 2.1 Insertion sort
type: link
path: Chap02/2.1.html
- text: 2.2 Analyzing algorithms
type: link
path: Chap02/2.2.html
- text: 2.3 Designing algorithms
type: link
path: Chap02/2.3.html
- text: Chap 2. Problems
type: link
path: Chap02/2-0.html
children:
- text: Problem 2-1
type: link
path: Chap02/2-1.html
- text: Problem 2-2
type: link
path: Chap02/2-2.html
- text: Problem 2-3
type: link
path: Chap02/2-3.html
- text: Problem 2-4
type: link
path: Chap02/2-4.html
Specifications
NodeJS Version: 8.9.4
NPM Version: 5.6.0
OS: macOS High Sierra version 10.13.3
Hexo Version: 3.5.0
Btw, is it possible to change the default color orange to other colors(like lightblue or green)?
I've modified the directory you mentioned in the documentation Hexo Doc Theme | SASS styles, but it seems it's not so easy to change this?
Thanks a lot!
The text was updated successfully, but these errors were encountered:
@walkccc I will check out this issue, the problem can be related to the fact that you are using the same path for two entries in the tree on different levels: "Chap02/2-0.html" it's a children of "Chap02/2-0.html"... this is why the "navigator closes" because the React code cannot distinguish them so it selects as active the first one that is found in the tree with the path equal to "Chap02/2-0.html".... my bad they aren't the same entry...
For the SASS customisation, what exactly is not clear to you?
Expected Behavior
The navigator should expand when I click to a children of children .html page. For example, when I click to "Problem 2-1", the navigator should highlight "Problem 2-1" to orange, and keeps expanding the content in the navigator.
Actual Behavior
The navigator closes when I click to a children of children .html page.
After clicking "Problem 2-1", the navigator will close, which is not so convenient.
Steps to Reproduce the Problem
The codes:
Specifications
Btw, is it possible to change the default color orange to other colors(like lightblue or green)?
I've modified the directory you mentioned in the documentation Hexo Doc Theme | SASS styles, but it seems it's not so easy to change this?
Thanks a lot!
The text was updated successfully, but these errors were encountered: