8000 Try downloading searchindex.js directly from astropy.org to get around cross-origin AJAX issues · Issue #298 · astropy-learn/astropy-tutorials · GitHub
[go: up one dir, main page]

Skip to content 8000
Try downloading searchindex.js directly from astropy.org to get around cross-origin AJAX issues #298
Closed
@adrn

Description

@adrn

The way Sphinx search works is by generating a pure-javascript index file (searchindex.js) that is then called by various javascript code (in searchtools.js). Right now, the AJAX call to query the astropy documentation as a part of the main search bar fails because it requires a cross-origin AJAX request (blocked by default in most browsers). But it occurred to me that we could just download and cache the astropy docs searchindex.js file as a part of the pre-processing done to prepare the sphinx build, thereby making it a local file! We should prototype this and see if it works as expected.

cc @eteq @MananAgarwal

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0