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

Difficulty finding how to disable precompile workloads in docs #34

Open
IanButterworth opened this issue Jan 31, 2024 · 6 comments
Open

Comments

@IanButterworth
Copy link
Member

No description provided.

@timholy
Copy link
Member

timholy commented Jan 31, 2024

@IanButterworth
Copy link
Member Author

IanButterworth commented Jan 31, 2024

Oof. Sorry. This is a case of the Docs search not helping.

I knew the solution was Preferences based, so I searched for Preferences and got
https://julialang.github.io/PrecompileTools.jl/stable/search/?q=preferences

If you go onto the first 2 results and search on the page for Preferences there's no results (it seems to be preferring similarity to "reference" over actual occurrences of "preferences")

Perhaps making the title of section you linked to 'Disabling precompile workloads via Preferences` would've helped my case... But maybe the current title is better for people that don't even know about Preferences..

SEO is hard..

Feel free to close

@IanButterworth IanButterworth changed the title Docs don't explain how to disable precompile workloads Difficulty finding how to disable precompile workloads in docs Jan 31, 2024
@IanButterworth
Copy link
Member Author

New docs search is even worse

image

@timholy
Copy link
Member

timholy commented Feb 2, 2024

Yikes. CC @mortenpi, anything to be done about this? If you do a page-search with Firefox, "preferences" appears 8 times on the page. You have to use the dev branch https://julialang.github.io/PrecompileTools.jl/dev/ since we haven't yet tagged a release with this change.

@mortenpi
Copy link

mortenpi commented Feb 3, 2024

No easy solution I suspect. Could be because of the way we write out the search index. I suspect it might be the same issue as in JuliaDocs/Documenter.jl#2114.

@timholy
Copy link
Member

timholy commented Feb 3, 2024

If it helps, PrecompileTools is a tiny package and thus has tiny docs compared to base Julia, which might be easier for debugging?

I hadn't previously dug into the search index, but I see a file, search_index.js, in the build directory. I've copied it into a gist, along with a variant that I converted from js to json so that I could more easily load it into Julia. I'm not quite sure how this data is used for searching, but I do notice some entries that contain "Preferences", e.g.,

{
      "location": "index.html",
      "page": "Home",
      "title": "Home",
      "text": "If you're frequently modifying one or more packages, you may not want to spend the extra time precompiling the full set of workloads that you've chosen to make fast for your \"shipped\" releases. One can locally reduce the cost of precompilation for selected packages using the Preferences.jl-based mechanism and the \"precompile_workload\" key: from within your development environment, use",
      "category": "page"
    }

Here's another funny thing: if I enter "Preferences" into the search bar I get nothing. If I enter "Preferences.jl" into the search bar, I get a set of hits that seem plain wrong, unless you count matching the ".jl" in "Powered by Documenter.jl and the Julia Programming Language" that appears in the footer of each page.

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

3 participants