Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Separate handbook install chapter into sections #3874

Merged

Conversation

MarkEWaite
Copy link
Contributor

@MarkEWaite MarkEWaite commented Oct 16, 2020

Use sections to improve install readability

The addition of the Kubernetes installation instructions highlighted a long-standing challenge with the installation chapter. It was too long and contained too many topics for most users.

This pull request splits the install chapter into sections with the install chapter. Thankfully, much of the "do not repeat yourself" work was already done in earlier pull requests.

The pull request redirects bookmarks that linked to the previous locations like https://www.jenkins.io/doc/book/installing/#debianubuntu . It uses a Javascript technique that was described on a stackoverflow article.

The prerequisites have been extracted from the index.adoc page and inserted at the top of each of the relevant pages so that the reader installing for a specific platform can read linearly through the instructions for their platform.

CC: @zaycodes

CC: @vsilverman this will affect your work on replacing the blueocean image with the official docker image. I'll help with resolving conflicts and collisions as this progresses through the review process.

Before

Screenshot 2020-10-16 110924

After

screencapture-localhost-4242-doc-book-installing-2020-10-16-11_08_00

Copy link
Member

@vsilverman vsilverman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@MarkEWaite - Looks good to me

We prefer to use the page level redirect mechanism described in the
contributing guide.  However, this page needs to remain as a page yet
have internal anchors within the page redirected to other locations.
The anchor redirects are targeting several different pages.  This
Javascript technique allows entrance into a single page to redirect to
a different page based on the anchor text.

The Javascript that is embedded in this page is taken from
https://stackoverflow.com/questions/1305211/javascript-to-redirect-from-anchor-to-a-separate-page/21198129#21198129
with deepest gratitude for that answer.

I've checked each of the redirects using a local web page that opened
http://localhost:4242/doc/book/installing/#windows (and others like it).
They are well-behaved running my local development copy of jenkins.io.
When this is merged, I will perform additional checks to confirm that
the technique also works for https://www.jenkins.io/doc/book/installing/
@MarkEWaite MarkEWaite marked this pull request as ready for review October 16, 2020 17:05
@MarkEWaite MarkEWaite requested a review from a team as a code owner October 16, 2020 17:05
@MarkEWaite
Copy link
Contributor Author

@MarkEWaite - Looks good to me

Thanks @vsilverman . I apologize in advance for this disruption this will be to your pull request, but I'm happy to assist with resolving the conflicts this pull request will create in yours.

@kwhetstone and @zaycodes this is ready for review.

Copy link
Contributor

@kwhetstone kwhetstone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm glad you got the linking working! lgtm, and I really like how it's now in separate files. This will make the page easier to navigate and easier to review.

Copy link
Contributor

@markjacksonfishing markjacksonfishing left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small wording changes

content/doc/book/installing/windows.adoc Outdated Show resolved Hide resolved
content/doc/book/installing/windows.adoc Outdated Show resolved Hide resolved
Thanks to @markyjackson-taulia for detecting the mistakes.
Copy link
Member

@vsilverman vsilverman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@MarkEWaite MarkEWaite merged commit 5052f30 into jenkins-infra:master Oct 19, 2020
@MarkEWaite MarkEWaite deleted the split-installing-into-sections branch October 19, 2020 20:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants