Skip to content

Search indexing does not work if some links are broken #2674

@kokovtsev

Description

@kokovtsev

Description

Indexing for the search plugin fails if any document linked in the sidebar failed to load.

Expected behavior

Docsify should index at least pages that were loaded successfully.

Actual behavior

The index is not updated at all

Steps to reproduce

Please see this reproduction repository. In this repo, the sidebar has a link that is intentionally broken, i.e. leads to a non-existing MD file.

Normally, Docsify should find this word in the "lorem.md" file. However, it says "No results" because it failed to index the content.

Environment

  • Docsify version: 5.0.0-rc.3

Additional Information

  • Bug still occurs when all/other plugins are disabled?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Triagebugconfirmed as a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions