docs-links.js
Where each editor tool is documented: the map behind the ? help buttons in the inspector and panels.
Responsibility#
Maps each editor tool to its page of this guide, for the ? help buttons beside settings group titles, the selected thing's name and the editor's other panels. KindlyDocs.group(title) returns the page for a group title (matched in the editor's language), KindlyDocs.selection(el, kind) the page for a selected element or kind of thing, and KindlyDocs.panel(name) the page for Structure, History, Search & sharing, Elements or the add pickers. KindlyDocs.paths() lists every page the map can open; the plugin's tests/docs-help-browser.mjs confirms each one exists in the built guide.
Since 0.12.3, a selected Global element opens Global elements, a box laid out as a grid or a row without the plugin's classes (named Grid or Row in the editor) opens Grid layout or Flex layout by its computed display, and the Group settings title opens Move, duplicate, and delete instead of Containers.
The guide's root comes from CantataEdit.docsUrl (see help). When it is empty the editor shows no help buttons.
File characteristics#
- Source:
assets/docs-links.js - Lines in this release: 132
- Type: browser JavaScript
Integration and verification#
Loaded before editor.js, only for people editing. When a guide page is added, renamed or removed, update this map and run the plugin's docs help browser test with DOCS_SITE pointed at the built site/docs. Editor-only UI should not become authored page content. See The visual inspector for where the buttons appear.