Documentation path mapper
: shell
: documentation
: id-to-path-map
: /modules/core/documentation/services/documentation-path-mapper.js
DocumentationPathMapper
Kind: global class
- DocumentationPathMapper
- new DocumentationPathMapper()
- .mapIdToPath(root, id) ⇒
Array.<string>
new DocumentationPathMapper()
Maps documentation topic ids onto the relevant file, in the right module.
documentationPathMapper.mapIdToPath(root, id) ⇒ Array.<string>
Maps documentation topic ids onto the relevant file, in the right module.
Kind: instance method of DocumentationPathMapper
Returns: Array.<string> - The list of possible paths for a file describing the topic.
| Param | Type | Description |
|---|---|---|
| root | string |
The content root for documentation (anything other than 'doc' will be ignored). |
| id | string |
The topic's id. If top-level, that is the name of the documentation file, without extension. If it's a module top-level documentation topic, it's [module-technical-name]/[topic-filename-without-extension]. If it's in a top-level section, it's [section-folder-name]/[topic-filename-without-extension]. If it's in a section under a module, it's [module-technical-name]/[section-folder-name]/[topic-filename-without-extension]. |