nightwatch-docs icon indicating copy to clipboard operation
nightwatch-docs copied to clipboard

Dynamically rendering PageNavigators.

Open nothuman2718 opened this issue 10 months ago • 10 comments

Dynamically rendering PageNavigators. With this change, the Next Prev page navigators will be generated dynamically.

Review time on a scale of 1-5 is 3.

nothuman2718 avatar Mar 31 '24 21:03 nothuman2718

This is cool. Thanks a lot, will review it soon.

garg3133 avatar Apr 01 '24 09:04 garg3133

Requested changes are pushed. Please review it when you had time.

nothuman2718 avatar Apr 01 '24 13:04 nothuman2718

@beatfactor Should I update .gitignore then?

nothuman2718 avatar Apr 05 '24 04:04 nothuman2718

@beatfactor Should I update .gitignore then?

it's fine, you can leave it.

beatfactor avatar Apr 05 '24 08:04 beatfactor

@nothuman2718 Try not to force push on the PR every time you make some changes, it makes it hard to assess the improvements you've made after the last review.

garg3133 avatar Apr 05 '24 09:04 garg3133

Sure. Noted!! Will not repeat again.

nothuman2718 avatar Apr 05 '24 09:04 nothuman2718

For a few pages, the titles that we have in the page navigators are different from the titles we have on the sidebar (on the main website) while they're going to match exactly with this PR.

image

I think it might be a good idea to keep these titles for page navigators and not match all the page navigator titles with the titles on the sidebar. This would be especially useful when we have situations like below where the "Next Page" such says "Introduction" while it should be something like "Introduction to Mobile Testing".

image

This could be easily achieved by supplying an alternative title for each page (if applicable) in the navItems list.

@beatfactor What do you think?

garg3133 avatar Apr 05 '24 09:04 garg3133

Yes, we should have an alternative link title in the navItems list.

beatfactor avatar Apr 05 '24 10:04 beatfactor

think it might be a good idea to keep these titles for page navigators and not match all the page navigator titles with the titles on the sidebar. This would be especially useful when we have situations like below where the "Next Page" such says "Introduction" while it should be something like "Introduction to Mobile Testing".

Sure.

nothuman2718 avatar Apr 05 '24 11:04 nothuman2718

@garg3133 Please have a look.

nothuman2718 avatar Apr 05 '24 11:04 nothuman2718