mirror of
https://github.com/lovell/sharp.git
synced 2025-07-09 02:30:12 +02:00
Docs: add comment with source to all auto-generated pages
This commit is contained in:
parent
eeac8d4656
commit
63f0ab5e20
@ -31,7 +31,7 @@ Object.keys(pages).forEach(async (m) => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
const cleanMarkdown =
|
const cleanMarkdown =
|
||||||
`---\ntitle: ${pages[m]}\n---\n\n` +
|
`---\n# This file was auto-generated from JSDoc in lib/${m}.js\ntitle: ${pages[m]}\n---\n\n` +
|
||||||
markdown
|
markdown
|
||||||
.replace(/(## )([A-Za-z0-9]+)([^\n]*)/g, '$1$2\n> $2$3\n') // simplify headings
|
.replace(/(## )([A-Za-z0-9]+)([^\n]*)/g, '$1$2\n> $2$3\n') // simplify headings
|
||||||
.replace(/<a name="[A-Za-z0-9+]+"><\/a>/g, '') // remove anchors
|
.replace(/<a name="[A-Za-z0-9+]+"><\/a>/g, '') // remove anchors
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
---
|
---
|
||||||
|
# This file was auto-generated from JSDoc in lib/channel.js
|
||||||
title: Channel manipulation
|
title: Channel manipulation
|
||||||
---
|
---
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
---
|
---
|
||||||
|
# This file was auto-generated from JSDoc in lib/colour.js
|
||||||
title: Colour manipulation
|
title: Colour manipulation
|
||||||
---
|
---
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
---
|
---
|
||||||
|
# This file was auto-generated from JSDoc in lib/composite.js
|
||||||
title: Compositing images
|
title: Compositing images
|
||||||
---
|
---
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
---
|
---
|
||||||
|
# This file was auto-generated from JSDoc in lib/constructor.js
|
||||||
title: Constructor
|
title: Constructor
|
||||||
---
|
---
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
---
|
---
|
||||||
|
# This file was auto-generated from JSDoc in lib/input.js
|
||||||
title: Input metadata
|
title: Input metadata
|
||||||
---
|
---
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
---
|
---
|
||||||
|
# This file was auto-generated from JSDoc in lib/operation.js
|
||||||
title: Image operations
|
title: Image operations
|
||||||
---
|
---
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
---
|
---
|
||||||
|
# This file was auto-generated from JSDoc in lib/output.js
|
||||||
title: Output options
|
title: Output options
|
||||||
---
|
---
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
---
|
---
|
||||||
|
# This file was auto-generated from JSDoc in lib/resize.js
|
||||||
title: Resizing images
|
title: Resizing images
|
||||||
---
|
---
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
---
|
---
|
||||||
|
# This file was auto-generated from JSDoc in lib/utility.js
|
||||||
title: Global properties
|
title: Global properties
|
||||||
---
|
---
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user