Support sidebarAbsolutePath to fix relative link and nested sidebar when I just provide one sidebar.md
Summary
What kind of change does this PR introduce? (check at least one)
- [ ] Bugfix
- [x] Feature
- [ ] Code style update
- [ ] Refactor
- [ ] Docs
- [ ] Build-related changes
- [ ] Other, please describe:
If changing the UI of default theme, please provide the before/after screenshot:
Does this PR introduce a breaking change? (check one)
- [ ] Yes
- [x] No
If yes, please describe the impact and migration path for existing applications:
The PR fulfills these requirements:
- [ ] When resolving a specific issue, it's referenced in the PR's title (e.g.
fix #xxx[,#xxx], where "xxx" is the issue number)
You have tested in the following browsers: (Providing a detailed version will be better.)
- [x] Chrome
- [ ] Firefox
- [ ] Safari
- [ ] Edge
- [ ] IE
If adding a new feature, the PR's description includes:
- [x] A convincing reason for adding this feature
- [x] Related documents have been updated
- [ ] Related tests have been updated
To avoid wasting your time, it's best to open a feature request issue first and wait for approval before working on it.
Other information:
Referer to issues:
- https://github.com/docsifyjs/docsify/issues/925
- https://github.com/docsifyjs/docsify/issues/429
- [x] DO NOT include files inside
libdirectory.
@anikethsaha Iām sorry, I did not find the way to fix. Could you please have a look to this problem?
its because you added a header ## in configuration.md docs. so, the fixtures need to be changed.
add sidebarAbsolutePath in array here
its because you added a header
##inconfiguration.mddocs. so, the fixtures need to be changed.add
sidebarAbsolutePathin arrayhere
Fixed. Thanks!
I will review this soon
thanks @trusktr for the detailed review.
just to add a point, this will be a part of v5 cause I dont think we can do any feature or enhancement release as of now, it all should be released with v5 if this gets approved.
I will create a v5 branch soon or will need to discuss where to start the development and how.