Usethis: Search is partially broken

Created on 11 Apr 2019  路  14Comments  路  Source: r-lib/usethis

The usethis site has search now 馃帀 but some searches lead to bad URLs that 404.

https://usethis.r-lib.org

Successful search terms: "create", "credentials".
Unsuccessful search terms: "https", "ssh", "git2r", "continuous".

The unsuccessful terms produce a promising dropdown menu, but all of the associated links are broken in this sort of way:

https://usethis.r-lib.org/reference/undefined?q=continuous#section-continuous-integration
https://usethis.r-lib.org/reference/undefined?q=ssh#value
https://usethis.r-lib.org/reference/undefined?q=git2r#arguments

I cannot break the dplyr search in the same way. I note that dplyr's site uses tidytemplate. Is that somehow the favourable difference?

bug documentation 馃挕 tooling

All 14 comments

Your config needs to match the tidyverse config. In particular, you are missing this section:

  "custom_settings": {
    "separatorsToIndex": "_",
    "attributesToRetrieve": [
      "hierarchy",
      "content",
      "anchor",
      "url",
      "url_without_anchor"
    ]
  },

Where did you get your config? Was it auto-generated?

Yeah that just "happened".

You mean pkgdown generated the docsearch config? If so, we should update the default.

We got algolia turned on in August 2018 (as the creation date of their config suggests), but then I didn't do anything about it until just now. So perhaps the config they would generate now would be correct? But in any case, I think I need to ask them to update it to match what you've got above.

You mean pkgdown generated the docsearch config? If so, we should update the default.

I have no idea who made it. I assume they do?

Ah, yes @s-pace can help you out.

pkgdown auto-gernerates one for you. Yours is here:

https://usethis.r-lib.org/docsearch.json

So I want algolia to update their config to match the auto-generated one within usethis's site?

Or I can take matters into my own hands and fix this myself?

Yes Algolia needs to update their config to the auto-generated one.

You could also submit a PR to the dosearch-config repo but usually @s-pace just makes this happen.

I made a PR with the auto-generated config, in case it saves @s-pace some work.

馃憢

@jennybc Thank you for the PR 馃檹

It should solves this issue. I let you integrate the suggestions an I will merge it ASAP.

Was this page helpful?
0 / 5 - 0 ratings