@curvenote/check-definitions
Advanced tools
Comparing version 0.0.15 to 0.0.16
@@ -106,2 +106,74 @@ import { TemplateOptionType } from 'myst-common'; | ||
}, | ||
{ | ||
id: 'word-count', | ||
title: 'Word Count', | ||
purpose: 'ensure the document word count is acceptable', | ||
options: [ | ||
{ | ||
id: 'max', | ||
type: TemplateOptionType.number, | ||
integer: true, | ||
min: 0, | ||
description: 'Maximum number of words allowed', | ||
default: 3500, | ||
}, | ||
{ | ||
id: 'min', | ||
type: TemplateOptionType.number, | ||
integer: true, | ||
min: 0, | ||
description: 'Minimum number of words required', | ||
default: 0, | ||
}, | ||
{ | ||
id: 'figures', | ||
type: TemplateOptionType.boolean, | ||
description: 'Include figure/table contents and captions in word count', | ||
default: false, | ||
}, | ||
{ | ||
id: 'footnotes', | ||
type: TemplateOptionType.boolean, | ||
description: 'Include footnotes in word count', | ||
default: false, | ||
}, | ||
{ | ||
id: 'part', | ||
type: TemplateOptionType.string, | ||
description: 'Part of document to count; if not provided, main body content will be counted', | ||
required: false, | ||
}, | ||
], | ||
tags: [CheckTags.content], | ||
}, | ||
{ | ||
id: 'figure-count', | ||
title: 'Figure Count', | ||
purpose: 'ensure the document figure/table/etc count is acceptable', | ||
options: [ | ||
{ | ||
id: 'max', | ||
type: TemplateOptionType.number, | ||
integer: true, | ||
min: 0, | ||
description: 'Maximum number of figures/tables/etc allowed', | ||
default: 100, | ||
}, | ||
{ | ||
id: 'min', | ||
type: TemplateOptionType.number, | ||
integer: true, | ||
min: 0, | ||
description: 'Minimum number of figures/tables/etc required', | ||
default: 0, | ||
}, | ||
{ | ||
id: 'kind', | ||
type: TemplateOptionType.string, | ||
description: 'Specific figure kind to count, e.g. figure (for only counting explicit "Figures"), table, code', | ||
required: false, | ||
}, | ||
], | ||
tags: [CheckTags.content], | ||
}, | ||
]; |
@@ -5,3 +5,3 @@ { | ||
"author": "Franklin Koch <franklin@curvenote.com>", | ||
"version": "0.0.15", | ||
"version": "0.0.16", | ||
"type": "module", | ||
@@ -8,0 +8,0 @@ "exports": "./dist/index.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
36031
863