jenkins.io icon indicating copy to clipboard operation
jenkins.io copied to clipboard

Use same navigation for dev docs as for user handbook

Open MarkEWaite opened this issue 4 years ago • 10 comments
trafficstars

Use same navigation for dev docs as for user handbook

The user handbook on www.jenkins.io includes

  • left side navigation list that expands and collapses as the user moves from one page to another
  • current page is highlighted in bold text to show the user context
  • links to the subsections of the page in the upper right corner, usable as external xrefs
  • breadcrumbs at the top of the page for navigation from page to page and to the index

The developer documentation uses a simple list without expand and collapse and without any of the navigation improvements.

Make the developer documentation navigation use the same navigation assistance as the user handbook.

This is a more involved issue report because it requires changes to the templates that define the developer doc pages so that they will be more like the user handbook pages.

This will likely require multiple pull requests before it is fully resolved.

MarkEWaite avatar Nov 16 '21 02:11 MarkEWaite

Hi @MarkEWaite I would like to work on this issue for Hacktoberfest.

krisstern avatar Oct 01 '22 15:10 krisstern

That would be great @krisstern . Let me know if you need help. I'll assign the issue to you. Also let me know if you reach a point where you're not able to proceed and we'll unassign it.

MarkEWaite avatar Oct 04 '22 01:10 MarkEWaite

Thanks so much @MarkEWaite! Sure, I would like a very very brief overview of the architecture of the dev docs, to save me some time prepping for the pull requests. Do you happened to have any info on this?

krisstern avatar Oct 05 '22 12:10 krisstern

Also, by dev docs you meant this?: https://www.jenkins.io/doc/developer/

krisstern avatar Oct 05 '22 12:10 krisstern

Also, by dev docs you meant this?: https://www.jenkins.io/doc/developer/

That's correct.

The user handbook has a menu structure that expands, contracts, and highlights the current entry. When I open the installing Linux page, the left side expands the "installing" section and emphasizes the "Linux" entry in that section.

The developer handbook has several different top level entries, including "How-To Guides", "Improve a plugin tutorial", developer reference, and extensions index.

The "How-to Guides", "Improve a plugin tutorial", and developer reference each open to the same left side panel, but do not expand or contract.

MarkEWaite avatar Oct 05 '22 13:10 MarkEWaite

Cool, now I see what I will need to do clearly. Let me start work on this issue soon!

krisstern avatar Oct 05 '22 13:10 krisstern

Hi @MarkEWaite I am wondering what is the most efficient way to test out changes in the codebase for the dev docs?

krisstern avatar Oct 08 '22 07:10 krisstern

For development purposes, I build the site locally @krisstern using the instructions in the CONTRIBUTING document. I typically start my text editor and invoke a make run in a terminal window of the text editor, open the pages I'm modifying in a web browser to http://localhost:4242/ and then make the changes. The changes are usually detected automatically and rebuilt by the make run. Sometimes I need to stop the make run and call it again.

MarkEWaite avatar Oct 08 '22 21:10 MarkEWaite

Thanks @MarkEWaite! That's what I have tried as well. Appreciate the details.

krisstern avatar Oct 09 '22 07:10 krisstern

Just come up with this, however since I am not yet very familiar with the code base the anchor href are currently hardcoded and not fetched by code iteratively:

Screenshot 2022-10-09 at 4 50 08 PM

krisstern avatar Oct 09 '22 08:10 krisstern