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

Search bar broken #165

Closed
malcolmbarrett opened this issue Jul 10, 2020 · 5 comments
Closed

Search bar broken #165

malcolmbarrett opened this issue Jul 10, 2020 · 5 comments

Comments

@malcolmbarrett
Copy link

Hi -- thanks for this great resource!

On Chrome and Safari, the search bar does not work (it doesn't appear when clicking). I have seen this on two separate Macs. I haven't been able to replicate this in other bookdown sites, so I think it may be something about the configuration for this site, and I wanted to bring it to your attention. Thanks!

@wlandau
Copy link
Collaborator

wlandau commented Jul 11, 2020

Maybe it's an issue with the latest bookdown? The search bar does not work for me either, but neither does a clone of https://github.com/yihui/bookdown-minimal when I render locally and view in a browser. Would you install bookdown 0.20, render https://github.com/yihui/bookdown-minimal with bookdown::render_book('index.Rmd', 'all'), open _book/index.html in a browser, and try the search bar there?

@wlandau
Copy link
Collaborator

wlandau commented Jul 12, 2020

When I build and serve the manual locally with

source("faq.R")
source("build.R")
servr::httw(".", site.dir = "_book")

then the search bar works. On the gh-pages branch I see the usual search bar JS and CSS code makes it into https://github.com/ropensci-books/drake/tree/gh-pages/libs/gitbook-2.6.7. For the website itself, the only messages in the browser's developer console are about Google Analytics cookies.

In other words, I do not know how to debug this, and I will need the help of a PR or someone who is more experienced in web development.

@malcolmbarrett
Copy link
Author

I'm having basically the same results. I see that other rOpenSci books are ok (e.g. https://books.ropensci.org/fulltext), so it's not simply an issue of using GH pages...

@wlandau
Copy link
Collaborator

wlandau commented Jul 13, 2020

Now fixed. Details at rstudio/bookdown-demo#12 (comment).

@wlandau wlandau closed this as completed Jul 13, 2020
@malcolmbarrett
Copy link
Author

Wow, this is some serious detective work. Nice job and thanks for fixing!

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

No branches or pull requests

2 participants