From 73bec629cf3de0c9fc7604df999bac0984e79a09 Mon Sep 17 00:00:00 2001 From: Lovell Fuller Date: Mon, 5 May 2025 13:20:49 +0100 Subject: [PATCH] Docs: website already hosts images, no need to use jsdelivr --- README.md | 2 +- docs/astro.config.mjs | 2 +- docs/src/content/docs/api-resize.md | 2 +- docs/src/content/docs/index.md | 2 +- lib/resize.js | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 2e6b0f48..47da52e8 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # sharp -sharp logo +sharp logo The typical use case for this high speed Node-API module is to convert large images in common formats to diff --git a/docs/astro.config.mjs b/docs/astro.config.mjs index f6e88d96..5c720935 100644 --- a/docs/astro.config.mjs +++ b/docs/astro.config.mjs @@ -18,7 +18,7 @@ export default defineConfig({ tag: 'meta', attrs: { 'http-equiv': 'Content-Security-Policy', - content: "default-src 'self'; connect-src 'self'; object-src 'none'; style-src 'self' 'unsafe-inline'; img-src 'self' data: https://cdn.jsdelivr.net/gh/lovell/; script-src 'self' 'unsafe-inline' 'unsafe-eval' https://static.cloudflareinsights.com/beacon.min.js/;" + content: "default-src 'self'; connect-src 'self'; object-src 'none'; style-src 'self' 'unsafe-inline'; img-src 'self' data:; script-src 'self' 'unsafe-inline' 'unsafe-eval' https://static.cloudflareinsights.com/beacon.min.js/;" } }, { tag: 'link', diff --git a/docs/src/content/docs/api-resize.md b/docs/src/content/docs/api-resize.md index 7291f9d9..da7ac53b 100644 --- a/docs/src/content/docs/api-resize.md +++ b/docs/src/content/docs/api-resize.md @@ -17,7 +17,7 @@ When both a `width` and `height` are provided, the possible methods by which the Some of these values are based on the [object-fit](https://developer.mozilla.org/en-US/docs/Web/CSS/object-fit) CSS property. -Examples of various values for the fit property when resizing +Examples of various values for the fit property when resizing When using a **fit** of `cover` or `contain`, the default **position** is `centre`. Other options are: - `sharp.position`: `top`, `right top`, `right`, `right bottom`, `bottom`, `left bottom`, `left`, `left top`. diff --git a/docs/src/content/docs/index.md b/docs/src/content/docs/index.md index 705ecc7d..4c04edd8 100644 --- a/docs/src/content/docs/index.md +++ b/docs/src/content/docs/index.md @@ -2,7 +2,7 @@ title: "High performance Node.js image processing" --- -sharp logo +sharp logo The typical use case for this high speed Node-API module is to convert large images in common formats to diff --git a/lib/resize.js b/lib/resize.js index 348fbd81..66cfd871 100644 --- a/lib/resize.js +++ b/lib/resize.js @@ -129,7 +129,7 @@ function isResizeExpected (options) { * * Some of these values are based on the [object-fit](https://developer.mozilla.org/en-US/docs/Web/CSS/object-fit) CSS property. * - * Examples of various values for the fit property when resizing + * Examples of various values for the fit property when resizing * * When using a **fit** of `cover` or `contain`, the default **position** is `centre`. Other options are: * - `sharp.position`: `top`, `right top`, `right`, `right bottom`, `bottom`, `left bottom`, `left`, `left top`.