mirror of
https://github.com/lovell/sharp.git
synced 2025-07-08 18:20:13 +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 =
|
||||
`---\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
|
||||
.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
|
||||
|
@ -1,4 +1,5 @@
|
||||
---
|
||||
# This file was auto-generated from JSDoc in lib/channel.js
|
||||
title: Channel manipulation
|
||||
---
|
||||
|
||||
|
@ -1,4 +1,5 @@
|
||||
---
|
||||
# This file was auto-generated from JSDoc in lib/colour.js
|
||||
title: Colour manipulation
|
||||
---
|
||||
|
||||
|
@ -1,4 +1,5 @@
|
||||
---
|
||||
# This file was auto-generated from JSDoc in lib/composite.js
|
||||
title: Compositing images
|
||||
---
|
||||
|
||||
|
@ -1,4 +1,5 @@
|
||||
---
|
||||
# This file was auto-generated from JSDoc in lib/constructor.js
|
||||
title: Constructor
|
||||
---
|
||||
|
||||
|
@ -1,4 +1,5 @@
|
||||
---
|
||||
# This file was auto-generated from JSDoc in lib/input.js
|
||||
title: Input metadata
|
||||
---
|
||||
|
||||
|
@ -1,4 +1,5 @@
|
||||
---
|
||||
# This file was auto-generated from JSDoc in lib/operation.js
|
||||
title: Image operations
|
||||
---
|
||||
|
||||
|
@ -1,4 +1,5 @@
|
||||
---
|
||||
# This file was auto-generated from JSDoc in lib/output.js
|
||||
title: Output options
|
||||
---
|
||||
|
||||
|
@ -1,4 +1,5 @@
|
||||
---
|
||||
# This file was auto-generated from JSDoc in lib/resize.js
|
||||
title: Resizing images
|
||||
---
|
||||
|
||||
|
@ -1,4 +1,5 @@
|
||||
---
|
||||
# This file was auto-generated from JSDoc in lib/utility.js
|
||||
title: Global properties
|
||||
---
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user