-
Notifications
You must be signed in to change notification settings - Fork 33
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:
-
profile
using Specberus#lib/rules/metadata/profile.js -
delivererIDs
using Specberus#lib/rules/metadata/deliverers.js
validate
will emits an event metadata
for each of the following data:
-
docDate
from Specberus#lib/validator.js#L215 -
title
from the rule Specberus#lib/rules/headers/h1-title.js -
previousVersion
from the rule Specberus#lib/rules/headers/dl.js -
latestVersion
from the rule Specberus#lib/rules/headers/dl.js -
thisVersion
from the rule Specberus#lib/rules/headers/dl.js -
editorIDs
from the rule Specberus#lib/rules/echidna/editor-ids.js -
process
from the rule Specberus#lib/rules/sotd/process.js -
shortname
from the rule Specberus#lib/rules/heuristic/shortname.js -
editorsDraft
from the rule Specberus#lib/rules/headers/dl.js