fix(nodes-base): fix and harmonize all primaryDocumentation links (#4191)

* fix(nodes-base): fix and harmonize all primaryDocumentation links

* feat(workflow, cli): expose documentation links to UI via node codex

* fix(editor-ui): link to correct node and credential documentation URLs

* config(nodes-base): update 'format' script to also format node descriptor json

* chore: fix outdated links to node reference documentation
This commit is contained in:
Mike Arvela
2022-09-29 13:33:16 +03:00
committed by GitHub
parent 23bd71b82a
commit 6e8e4f5937
390 changed files with 1384 additions and 2496 deletions

View File

@@ -2,14 +2,11 @@
"node": "n8n-nodes-base.functionItem",
"nodeVersion": "1.0",
"codexVersion": "1.0",
"categories": [
"Development",
"Core Nodes"
],
"categories": ["Development", "Core Nodes"],
"resources": {
"primaryDocumentation": [
{
"url": "https://docs.n8n.io/nodes/n8n-nodes-base.functionItem/"
"url": "https://docs.n8n.io/integrations/builtin/core-nodes/n8n-nodes-base.functionitem/"
}
],
"generic": [
@@ -24,15 +21,8 @@
}
]
},
"alias": [
"Javascript",
"Code",
"Custom Code",
"JS"
],
"alias": ["Javascript", "Code", "Custom Code", "JS"],
"subcategories": {
"Core Nodes": [
"Data Transformation"
]
"Core Nodes": ["Data Transformation"]
}
}

View File

@@ -36,7 +36,7 @@ export class FunctionItem implements INodeType {
},
type: 'string',
default: `// Code here will run once per input item.
// More info and help: https://docs.n8n.io/nodes/n8n-nodes-base.functionItem
// More info and help: https://docs.n8n.io/integrations/builtin/core-nodes/n8n-nodes-base.functionitem/
// Tip: You can use luxon for dates and $jmespath for querying JSON structures
// Add a new field called 'myNewField' to the JSON of the item