Skip to content

Commit

Permalink
Fix similar docs search on Julia 1.11 (#2842)
Browse files Browse the repository at this point in the history
  • Loading branch information
fonsp committed Mar 7, 2024
1 parent 576ffd9 commit 89b5927
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
2 changes: 1 addition & 1 deletion src/runner/PlutoRunner/src/PlutoRunner.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2178,7 +2178,7 @@ function improve_docs!(doc_md::Markdown.MD, query::Symbol, binding::Docs.Binding

perm = sortperm(suggestions_scores; rev=true)
permute!(suggestions, perm)
links = map(s -> Suggestion(s, symbol), @view(suggestions[begin:min(end,DOC_SUGGESTION_LIMIT)]))
links = map(s -> Suggestion(string(s), symbol), Iterators.take(suggestions, DOC_SUGGESTION_LIMIT))

if length(links) > 0
push!(doc_md.content,
Expand Down
9 changes: 0 additions & 9 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,3 @@ verify_no_running_processes()
print_timeroutput()
@timeit_include("ExpressionExplorer.jl")

# TODO: test PlutoRunner functions like:
# - from_this_notebook

# TODO: test include() inside notebooks

# TODO: test async execution order
# TODO: test @bind

# TODO: test if notebooks are saved correctly after edits

0 comments on commit 89b5927

Please sign in to comment.