docsify icon indicating copy to clipboard operation
docsify copied to clipboard

Support sidebarAbsolutePath to fix relative link and nested sidebar when I just provide one sidebar.md

Open tangshuang opened this issue 6 years ago • 6 comments

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 lib directory.

tangshuang avatar Mar 15 '20 14:03 tangshuang

@anikethsaha I’m sorry, I did not find the way to fix. Could you please have a look to this problem?

tangshuang avatar Mar 15 '20 15:03 tangshuang

its because you added a header ## in configuration.md docs. so, the fixtures need to be changed.

add sidebarAbsolutePath in array here

anikethsaha avatar Mar 15 '20 15:03 anikethsaha

its because you added a header ## in configuration.md docs. so, the fixtures need to be changed.

add sidebarAbsolutePath in array here

Fixed. Thanks!

tangshuang avatar Mar 17 '20 04:03 tangshuang

I will review this soon

anikethsaha avatar Mar 19 '20 06:03 anikethsaha

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.

anikethsaha avatar Apr 04 '20 02:04 anikethsaha

I will create a v5 branch soon or will need to discuss where to start the development and how.

anikethsaha avatar Apr 04 '20 02:04 anikethsaha