Skip to content

Automatic updates fo scalar API reference library #423

Description

@michielp1807

Currently, the scalar API reference JS library is included statically (in src/static/standalone-scale-api-reference.js). This file comes from https://cdn.jsdelivr.net/npm/@scalar/api-reference@latest/dist/browser/standalone.js and has to manually be updated (see #422 for example).

Ideally, we'd want to include this as a NPM dependency such that we can get automatic updates, but this is currently not possible because the docs are just static HTML/JS files without its own build system.

We could maybe:

  • Add it to the front-end dependencies and somehow have vite store the file somewhere?
  • Make build.rs download the newest version?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    dependenciesPull requests that update a dependency file

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions