Skip to content

Latest commit

 

History

History
47 lines (35 loc) · 1.21 KB

README.md

File metadata and controls

47 lines (35 loc) · 1.21 KB

Simplicité public resources

Adding

To add a resource, add a line to the update_from_docs.sh script

Using

Retrieve the files using jsDelivr (cf docs)

Example:

https://cdn.jsdelivr.net/gh/simplicitesoftware/resources@latest/public/appstore_apps.json

Updating

jsDelivr has a cache which can be purged.

  1. Tag your commit with a valid incremented semver number like v1.0.2
  2. Push the tag to github
  3. Purge the URLs containing the @latest reference, either through curl or through jsDelivr's UI
curl -L -X POST \
  https://purge.jsdelivr.net \
  -H 'cache-control: no-cache' \
  -H 'content-type: application/json' \
  -d '{"path":[
    "/gh/simplicitesoftware/resources@latest/public/appstore_demo.json",
    "/gh/simplicitesoftware/resources@latest/public/appstore_apps.json",
    "/gh/simplicitesoftware/resources@latest/public/appstore_tools.json"
    ]}'

You should get a reponse like the following from jsDelivr if it worked. If not, use the UI.

{
  "id": "CXWDAKcejkTaas0QS",
  "status": "pending",
  "timestamp": "2024-03-21T16:33:50.876Z"
}