-
Notifications
You must be signed in to change notification settings - Fork 36
Metadata extracted from the document
Denis Ah-Kang edited this page Mar 31, 2016
·
2 revisions
Echidna relies on Specberus to parse the document. To get the complete set of metadata, two methods are available and are complementary: extractMetadata and validate. The short term goal is to have only extractMetadata in charge of metadata extraction.
extractMetata will extract:
-
profileusing Specberus#lib/rules/metadata/profile.js -
delivererIDsusing Specberus#lib/rules/metadata/deliverers.js
validate will emits an event metadata for each of the following data:
-
docDatefrom Specberus#lib/validator.js#L215 -
titlefrom the rule Specberus#lib/rules/headers/h1-title.js -
previousVersionfrom the rule Specberus#lib/rules/headers/dl.js -
latestVersionfrom the rule Specberus#lib/rules/headers/dl.js -
thisVersionfrom the rule Specberus#lib/rules/headers/dl.js -
editorIDsfrom the rule Specberus#lib/rules/echidna/editor-ids.js -
processfrom the rule Specberus#lib/rules/sotd/process.js -
shortnamefrom the rule Specberus#lib/rules/heuristic/shortname.js -
editorsDraftfrom the rule Specberus#lib/rules/headers/dl.js