Skip to content

Commit 09d5aa8

Browse files
committed
Docs: update internal and libvips doc links
1 parent 040b73c commit 09d5aa8

File tree

16 files changed

+41
-41
lines changed

16 files changed

+41
-41
lines changed

.github/CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ If a [similar request](https://github.com/lovell/sharp/labels/enhancement) exist
1414
it's probably fastest to add a comment to it about your requirement.
1515

1616
Implementation is usually straightforward if libvips
17-
[already supports](https://www.libvips.org/API/current/func-list.html)
17+
[already supports](https://www.libvips.org/API/current/function-list.html)
1818
the feature you need.
1919

2020
## Submit a Pull Request to fix a bug

docs/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
"astro": "astro"
1212
},
1313
"dependencies": {
14-
"@astrojs/starlight": "^0.35.2",
15-
"astro": "^5.13.5",
16-
"starlight-auto-sidebar": "^0.1.2"
14+
"@astrojs/starlight": "^0.36.2",
15+
"astro": "^5.15.3",
16+
"starlight-auto-sidebar": "^0.1.3"
1717
}
1818
}

docs/src/content/docs/api-channel.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ title: Channel manipulation
88
99
Remove alpha channels, if any. This is a no-op if the image does not have an alpha channel.
1010

11-
See also [flatten](/api-operation#flatten).
11+
See also [flatten](/api-operation/#flatten).
1212

1313

1414
**Example**

docs/src/content/docs/api-colour.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ as defined by [toColourspace](#tocolourspace).
8080

8181
| Param | Type | Description |
8282
| --- | --- | --- |
83-
| [colourspace] | <code>string</code> | pipeline colourspace e.g. `rgb16`, `scrgb`, `lab`, `grey16` [...](https://github.com/libvips/libvips/blob/41cff4e9d0838498487a00623462204eb10ee5b8/libvips/iofuncs/enumtypes.c#L774) |
83+
| [colourspace] | <code>string</code> | pipeline colourspace e.g. `rgb16`, `scrgb`, `lab`, `grey16` [...](https://www.libvips.org/API/current/enum.Interpretation.html) |
8484

8585
**Example**
8686
```js
@@ -123,7 +123,7 @@ By default output image will be web-friendly sRGB, with additional channels inte
123123

124124
| Param | Type | Description |
125125
| --- | --- | --- |
126-
| [colourspace] | <code>string</code> | output colourspace e.g. `srgb`, `rgb`, `cmyk`, `lab`, `b-w` [...](https://github.com/libvips/libvips/blob/3c0bfdf74ce1dc37a6429bed47fa76f16e2cd70a/libvips/iofuncs/enumtypes.c#L777-L794) |
126+
| [colourspace] | <code>string</code> | output colourspace e.g. `srgb`, `rgb`, `cmyk`, `lab`, `b-w` [...](https://www.libvips.org/API/current/enum.Interpretation.html) |
127127

128128
**Example**
129129
```js

docs/src/content/docs/api-composite.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ The `blend` option can be one of `clear`, `source`, `over`, `in`, `out`, `atop`,
2121
`hard-light`, `soft-light`, `difference`, `exclusion`.
2222

2323
More information about blend modes can be found at
24-
https://www.libvips.org/API/current/libvips-conversion.html#VipsBlendMode
24+
https://www.libvips.org/API/current/enum.BlendMode.html
2525
and https://www.cairographics.org/operators/
2626

2727

@@ -64,8 +64,8 @@ and https://www.cairographics.org/operators/
6464
| [images[].raw.height] | <code>Number</code> | | |
6565
| [images[].raw.channels] | <code>Number</code> | | |
6666
| [images[].animated] | <code>boolean</code> | <code>false</code> | Set to `true` to read all frames/pages of an animated image. |
67-
| [images[].failOn] | <code>string</code> | <code>&quot;&#x27;warning&#x27;&quot;</code> | @see [constructor parameters](/api-constructor#parameters) |
68-
| [images[].limitInputPixels] | <code>number</code> \| <code>boolean</code> | <code>268402689</code> | @see [constructor parameters](/api-constructor#parameters) |
67+
| [images[].failOn] | <code>string</code> | <code>&quot;&#x27;warning&#x27;&quot;</code> | @see [constructor parameters](/api-constructor/) |
68+
| [images[].limitInputPixels] | <code>number</code> \| <code>boolean</code> | <code>268402689</code> | @see [constructor parameters](/api-constructor/) |
6969

7070
**Example**
7171
```js

docs/src/content/docs/api-input.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,17 @@ It does not take into consideration any operations to be applied to the output i
1313
such as resize or rotate.
1414

1515
Dimensions in the response will respect the `page` and `pages` properties of the
16-
[constructor parameters](/api-constructor#parameters).
16+
[constructor parameters](/api-constructor/).
1717

1818
A `Promise` is returned when `callback` is not provided.
1919

2020
- `format`: Name of decoder used to decompress image data e.g. `jpeg`, `png`, `webp`, `gif`, `svg`
2121
- `size`: Total size of image in bytes, for Stream and Buffer input only
2222
- `width`: Number of pixels wide (EXIF orientation is not taken into consideration, see example below)
2323
- `height`: Number of pixels high (EXIF orientation is not taken into consideration, see example below)
24-
- `space`: Name of colour space interpretation e.g. `srgb`, `rgb`, `cmyk`, `lab`, `b-w` [...](https://www.libvips.org/API/current/VipsImage.html#VipsInterpretation)
24+
- `space`: Name of colour space interpretation e.g. `srgb`, `rgb`, `cmyk`, `lab`, `b-w` [...](https://www.libvips.org/API/current/enum.Interpretation.html)
2525
- `channels`: Number of bands e.g. `3` for sRGB, `4` for CMYK
26-
- `depth`: Name of pixel depth format e.g. `uchar`, `char`, `ushort`, `float` [...](https://www.libvips.org/API/current/VipsImage.html#VipsBandFormat)
26+
- `depth`: Name of pixel depth format e.g. `uchar`, `char`, `ushort`, `float` [...](https://www.libvips.org/API/current/enum.BandFormat.html)
2727
- `density`: Number of pixels per inch (DPI), if present
2828
- `chromaSubsampling`: String containing JPEG chroma subsampling, `4:2:0` or `4:4:4` for RGB, `4:2:0:4` or `4:4:4:4` for CMYK
2929
- `isProgressive`: Boolean indicating whether the image is interlaced using a progressive scan

docs/src/content/docs/api-operation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ When used without parameters, performs a fast, mild sharpen of the output image.
179179
When a `sigma` is provided, performs a slower, more accurate sharpen of the L channel in the LAB colour space.
180180
Fine-grained control over the level of sharpening in "flat" (m1) and "jagged" (m2) areas is available.
181181

182-
See [libvips sharpen](https://www.libvips.org/API/current/libvips-convolution.html#vips-sharpen) operation.
182+
See [libvips sharpen](https://www.libvips.org/API/current/method.Image.sharpen.html) operation.
183183

184184

185185
**Throws**:

docs/src/content/docs/api-output.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ const dataWithMergedExif = await sharp(inputWithExif)
201201
202202
Keep ICC profile from the input image in the output image.
203203

204-
Where necessary, will attempt to convert the output colour space to match the profile.
204+
For non-RGB output use [toColourspace](/api-colour/#tocolourspace).
205205

206206

207207
**Since**: 0.33.0
@@ -430,7 +430,7 @@ Indexed PNG input at 1, 2 or 4 bits per pixel is converted to 8 bits per pixel.
430430
Set `palette` to `true` for slower, indexed PNG output.
431431

432432
For 16 bits per pixel output, convert to `rgb16` via
433-
[toColourspace](/api-colour#tocolourspace).
433+
[toColourspace](/api-colour/#tocolourspace).
434434

435435

436436
**Throws**:
@@ -589,7 +589,7 @@ Use these JP2 options for output image.
589589

590590
Requires libvips compiled with support for OpenJPEG.
591591
The prebuilt binaries do not include this - see
592-
[installing a custom libvips](https://sharp.pixelplumbing.com/install#custom-libvips).
592+
[installing a custom libvips](/install#custom-libvips).
593593

594594

595595
**Throws**:
@@ -754,7 +754,7 @@ This feature is experimental, please do not use in production systems.
754754

755755
Requires libvips compiled with support for libjxl.
756756
The prebuilt binaries do not include this - see
757-
[installing a custom libvips](https://sharp.pixelplumbing.com/install#custom-libvips).
757+
[installing a custom libvips](/install/#custom-libvips).
758758

759759

760760
**Throws**:

docs/src/content/docs/api-utility.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ e.g. libaom manages its own 4 threads when encoding AVIF images,
114114
and these are independent of the value set here.
115115

116116
:::note
117-
Further [control over performance](/performance) is available.
117+
Further [control over performance](/performance/) is available.
118118
:::
119119

120120

lib/channel.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const bool = {
1818
/**
1919
* Remove alpha channels, if any. This is a no-op if the image does not have an alpha channel.
2020
*
21-
* See also {@link /api-operation#flatten|flatten}.
21+
* See also {@link /api-operation/#flatten flatten}.
2222
*
2323
* @example
2424
* sharp('rgba.png')

0 commit comments

Comments
 (0)