Skip to content

ARROW-15816: [R][DOCS] pkgdown config refactoring - #12531

Closed
eitsupi wants to merge 5 commits into
apache:masterfrom
eitsupi:update-pkgdown-config
Closed

eitsupi wants to merge 5 commits into
apache:masterfrom
eitsupi:update-pkgdown-config

Conversation

@eitsupi

@eitsupi eitsupi commented Mar 1, 2022 •

Copy link
Copy Markdown
Contributor

Related to ARROW-15734.

It turns out that we can't upgrade to Bootstrap 5 right away because the arrow's pkgdown site currently uses its own extra.js file.
So first, staying with the traditional Bootstrap3 now, but make some changes to prepare for upgrading to Bootstrap5 in the future.

  • Fix articles' title and add setting for article index.
  • Restore the GitHub icon on the right side of the nav bar.

Signed-off-by: SHIMA Tatsuya <[email protected]>
@thisisnic

Copy link
Copy Markdown
Member

@eitsupi This is a bit beyond the scope of what constitutes a minor change - please can you include the issue number in the PR title?

@eitsupi eitsupi changed the title MINOR: [R][DOCS] pkgdown config refactoring ARROW-15734: [R][DOCS] pkgdown config refactoring Mar 1, 2022
@eitsupi

eitsupi commented Mar 1, 2022

Copy link
Copy Markdown
Contributor Author

@thisisnic This PR does not solve ARROW-15734. Do I need to create a new issue?

@thisisnic

Copy link
Copy Markdown
Member

@thisisnic This PR does not solve ARROW-15734. Do I need to create a new issue?

Yes please

@eitsupi eitsupi changed the title ARROW-15734: [R][DOCS] pkgdown config refactoring ARROW-15816: [R][DOCS] pkgdown config refactoring Mar 1, 2022
Comment thread r/_pkgdown.yml Resolved
@github-actions

github-actions Bot commented Mar 1, 2022

Copy link
Copy Markdown

@github-actions

github-actions Bot commented Mar 1, 2022

Copy link
Copy Markdown

⚠️ Ticket has no components in JIRA, make sure you assign one.

@github-actions

github-actions Bot commented Mar 1, 2022

Copy link
Copy Markdown

⚠️ Ticket has not been started in JIRA, please click 'Start Progress'.

@github-actions

github-actions Bot commented Mar 1, 2022

Copy link
Copy Markdown

@thisisnic

Copy link
Copy Markdown
Member

I'm afraid I'm not sure I'm in favour of merging this as it doesn't solve the original problem (activating Bootstrap 5 in order to use the search functionality) and whilst it may provide a partial solution to that, the substantial bit of the work (updating the custom JS) still remains, and there change to the look of the menu is for the worse, in my opinion, sorry. I will nudge other committers to comment on this though, as they may feel differently.

@eitsupi

eitsupi commented Mar 1, 2022

Copy link
Copy Markdown
Contributor Author

Note that if you remove extra.js and activate Bootstrap 5, you will be able to use the search function immediately.

As a user of the arrow package, I have to say that for me, the search function is more necessary than the version switcher.
The current R documentation is not searchable and I often have to search the source code on GitHub to get to the information.
So I'm really hoping to be upgraded to Bootstrap 5 even if it make disable the version switcher.

I think it's really great that you implemented the version switcher, and of course I will follow the decision of the members of this project.
Unfortunately, I don't have the capability to modify extra.js. Please feel free to close this PR.

@thisisnic

thisisnic commented Mar 1, 2022 •

Copy link
Copy Markdown
Member

Thanks for looking into it and I'd agree it'd be great to have both. @jonkeane - hmm, any suggestions?

@jonkeane

jonkeane commented Mar 1, 2022

Copy link
Copy Markdown
Member

Hello, first I want to say thanks so much for all the work here + other PRs I've seen.

As you both have mentioned: we're a bit stuck and have to choose between supporting search + the version picker we have without putting some time into the JS that does the version picking to be compatible with bootstrap 5. I agree that search is super important, but also that we don't want to lose our version picker since we do that for other languages that Arrow supports.

Would it be possible to push to this branch | PR the changes that get us to using bootstrap 5 (even though it results in a broken site)? Mention the javascript issue, and then we can either leave this open or close it until we have the time to do the necessary javascript work. We'll have a record of what we need to do when we have that javascript skills + headspace to do it, but we don't break anything now. I'm also happy to make sure that you @eitsupi are listed as a co-author of that PR|commit if + when it merges

@eitsupi

eitsupi commented Mar 2, 2022 •

Copy link
Copy Markdown
Contributor Author

Thank you for checking.And, thank you again for your continued development of this project.

As I mentioned in ARROW-15734, I created this PullRequest in preparation for the upgrade to Bootstrap 5 and intended it to be mergeable at this time.
I apologize for mixing up changes that are essentially related to the upgrade to Bootstrap 5 with other changes.

I would like to change this PR to only restore the GitHub icon and the title of the articles to the correct format, without changing the multi-level list of articles as pointed out.
(It is hard to tell because there is no link from the top page, but some title of the articles are not recognized by pkgdown and the article list is broken. https://arrow.apache.org/docs/r/articles/)
image

Then, in addition to this PR, I will submit a separate PR that includes all of the current content of this PR and also activates Bootstrap5.

@eitsupi

eitsupi commented Mar 2, 2022

Copy link
Copy Markdown
Contributor Author

Navigation bar settings have been restored.

image

image

Signed-off-by: SHIMA Tatsuya <[email protected]>
@eitsupi

eitsupi commented Mar 2, 2022

Copy link
Copy Markdown
Contributor Author
  • With Bootstrap 5, the "index.html" link on projects on the nav bar is always selected when we open the index of the R document, and it doesn't look good, so change it to an absolute path like the other links.

Sorry, I completely misunderstood this to only occur in bs5 but it is the same situation now. (i.e., I recognized it as intentional).
So I have reverted this change.

@eitsupi

eitsupi commented Mar 31, 2022 •

Copy link
Copy Markdown
Contributor Author

I noticed that the multi-level menu in the nav bar cannot be opened from smart phones.

@eitsupi

eitsupi commented Apr 14, 2022

Copy link
Copy Markdown
Contributor Author

@thisisnic @jonkeane Is there any reason why this PR cannot be merged? This PR does not break anything.

@thisisnic

Copy link
Copy Markdown
Member

Sorry @eitsupi, had not got round to reviewing it again, and had taken your comment

I noticed that the multi-level menu in the nav bar cannot be opened from smart phones.

to mean that something was broken. Just to confirm, is that broken on both the live site and in this PR, or something else?

@eitsupi

eitsupi commented Apr 15, 2022

Copy link
Copy Markdown
Contributor Author

to mean that something was broken. Just to confirm, is that broken on both the live site and in this PR, or something else?

Sorry, this was a misunderstanding. If I touched it well, I could select it without any problem.

@thisisnic

Copy link
Copy Markdown
Member

to mean that something was broken. Just to confirm, is that broken on both the live site and in this PR, or something else?

Sorry, this was a misunderstanding. If I touched it well, I could select it without any problem.

I'll most likely review this some time after the upcoming release, whenever my focus is on the pkgdown site again. I am about to submit a PR to pkgdown that will incorporate the version selector into pkgdown, and work with Bootstrap 5, so once that's finalised/merged and I make the necessary updates to the Arrow pkgdown site to work with those changes, then I'll take the time to look at it all together.

@eitsupi eitsupi closed this Apr 19, 2022
@eitsupi

eitsupi commented Apr 19, 2022 •

Copy link
Copy Markdown
Contributor Author

Thank you for the explanation and I look forward to your updates on pkgdown.

If that is the case, I have closed this PR as it seems unnecessary.

@eitsupi
eitsupi deleted the update-pkgdown-config branch April 19, 2022 10:20
@thisisnic

Copy link
Copy Markdown
Member

For clarity, I'm not saying your PR isn't helpful - it highlights the changes we'll need to make during the BS5 update. Happy to have it reopened and just pending review/merge at a later point.

@eitsupi

eitsupi commented Apr 19, 2022 •

Copy link
Copy Markdown
Contributor Author

This PR now have nothing to do with BS5, as several modifications have made it different from its original purpose.
Also, #12541 is for the current version of pkgdown, so it will be outdated the times when using newer pkgdown.

This PR now only restores the currently missing GitHub icon and fixes the article title not being recognized on the article index page.
This is a problem at the moment, not related to BS5.

There is another issue with navbar being incompatible with BS5, but that will be resolved when pkgdown is updated, so it is not a problem in the future.

image

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants