Members
(constant) router
- Source:
Methods
extract(sourceDocument) → {Promise.<string>}
Extract content from source document and convert it to Markdown
Parameters:
Name | Type | Description |
---|---|---|
sourceDocument |
string | Source document from which to extract content, see ./src/archivist/services/sourceDocument.js |
- Source:
Returns:
Promise which is fulfilled once the content is extracted and converted in Markdown. The promise will resolve into a string containing the extracted content in Markdown format
- Type
- Promise.<string>
fetch(params) → {Promise}
Fetch a resource from the network, returning a promise which is fulfilled once the response is available
Parameters:
Name | Type | Description | ||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
params |
Object | Fetcher parameters
Properties
|
- Source:
Returns:
@returns {Promise
- Type
- Promise
normalizeConfig()
Support for legacy config format where reporter configuration was nested under `githubIssues`
Example:
```json
{
"githubIssues": {
"repositories": {
"declarations": "OpenTermsArchive/sandbox-declarations"
}
}
}
```
- Deprecated:
- Yes
- Source: