mirror of
https://github.com/n8n-io/n8n.git
synced 2026-08-28 17:22:01 +08:00
docs: Correct various broken documentation links (#20934)
This commit is contained in:
@@ -80,6 +80,6 @@ const TemplateWithYoutubeEmbed: StoryFn = (args, { argTypes }) => ({
|
||||
export const WithYoutubeEmbed = TemplateWithYoutubeEmbed.bind({});
|
||||
WithYoutubeEmbed.args = {
|
||||
content:
|
||||
"## I'm markdown \n**Please check** this out. [Guide](https://docs.n8n.io/workflows/sticky-notes/)\n@[youtube](ZCuL2e4zC_4)\n",
|
||||
"## I'm markdown \n**Please check** this out. [Guide](https://docs.n8n.io/workflows/components/sticky-notes/)\n@[youtube](ZCuL2e4zC_4)\n",
|
||||
loading: false,
|
||||
};
|
||||
|
||||
@@ -47,11 +47,11 @@ describe('markdownYoutubeEmbed', () => {
|
||||
const md = new Markdown().use(markdownYoutubeEmbed, options);
|
||||
|
||||
const result = md.render(
|
||||
"## I'm a note \n**Double click** to edit me. [Guide](https://docs.n8n.io/workflows/sticky-notes/)\n@[youtube](ZCuL2e4zC_4)",
|
||||
"## I'm a note \n**Double click** to edit me. [Guide](https://docs.n8n.io/workflows/components/sticky-notes/)\n@[youtube](ZCuL2e4zC_4)",
|
||||
);
|
||||
expect(result).toContain(
|
||||
"<h2>I'm a note</h2>\n" +
|
||||
'<p><strong>Double click</strong> to edit me. <a href="https://docs.n8n.io/workflows/sticky-notes/">Guide</a>\n' +
|
||||
'<p><strong>Double click</strong> to edit me. <a href="https://docs.n8n.io/workflows/components/sticky-notes/">Guide</a>\n' +
|
||||
'<iframe width="100%" src="https://www.youtube-nocookie.com/embed/ZCuL2e4zC_4" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe></p>',
|
||||
);
|
||||
});
|
||||
|
||||
+1
-1
@@ -63,7 +63,7 @@ ResizeableSticky.args = {
|
||||
height: 160,
|
||||
width: 150,
|
||||
modelValue:
|
||||
"## I'm a note \n**Double click** to edit me. [Guide](https://docs.n8n.io/workflows/sticky-notes/)",
|
||||
"## I'm a note \n**Double click** to edit me. [Guide](https://docs.n8n.io/workflows/components/sticky-notes/)",
|
||||
minHeight: 80,
|
||||
minWidth: 150,
|
||||
readOnly: false,
|
||||
|
||||
@@ -63,7 +63,7 @@ Sticky.args = {
|
||||
height: 160,
|
||||
width: 150,
|
||||
modelValue:
|
||||
"## I'm a note \n**Double click** to edit me. [Guide](https://docs.n8n.io/workflows/sticky-notes/)",
|
||||
"## I'm a note \n**Double click** to edit me. [Guide](https://docs.n8n.io/workflows/components/sticky-notes/)",
|
||||
minHeight: 80,
|
||||
minWidth: 150,
|
||||
readOnly: false,
|
||||
|
||||
@@ -25,7 +25,7 @@ export default {
|
||||
'formInput.validator.defaultPasswordRequirements':
|
||||
'8+ characters, at least 1 number and 1 capital letter',
|
||||
'sticky.markdownHint':
|
||||
'You can style with <a href="https://docs.n8n.io/workflows/sticky-notes/" target="_blank">Markdown</a>',
|
||||
'You can style with <a href="https://docs.n8n.io/workflows/components/sticky-notes/" target="_blank">Markdown</a>',
|
||||
'tags.showMore': (count: number) => `+${count} more`,
|
||||
'datatable.pageSize': 'Page size',
|
||||
'codeDiff.couldNotReplace': 'Could not replace code',
|
||||
|
||||
@@ -606,7 +606,7 @@ function handleChangeCollapsingColumn(columnName: string | null) {
|
||||
<I18nT tag="span" keypath="ndv.input.notConnected.v2.description" scope="global">
|
||||
<template #link>
|
||||
<a
|
||||
href="https://docs.n8n.io/workflows/connections/"
|
||||
href="https://docs.n8n.io/workflows/components/connections/"
|
||||
target="_blank"
|
||||
@click="onConnectionHelpClick"
|
||||
>
|
||||
@@ -627,7 +627,7 @@ function handleChangeCollapsingColumn(columnName: string | null) {
|
||||
<N8nText tag="div">
|
||||
{{ i18n.baseText('ndv.input.notConnected.message') }}
|
||||
<a
|
||||
href="https://docs.n8n.io/workflows/connections/"
|
||||
href="https://docs.n8n.io/workflows/components/connections/"
|
||||
target="_blank"
|
||||
@click="onConnectionHelpClick"
|
||||
>
|
||||
|
||||
+1
-1
@@ -28,7 +28,7 @@ const assertHintsAreShown = ({ isSwaggerUIEnabled }: { isSwaggerUIEnabled: boole
|
||||
expect(webhookDocsLink).toBeInTheDocument();
|
||||
expect(webhookDocsLink).toHaveAttribute(
|
||||
'href',
|
||||
'https://docs.n8n.io/integrations/core-nodes/n8n-nodes-base.webhook/',
|
||||
'https://docs.n8n.io/integrations/builtin/core-nodes/n8n-nodes-base.webhook/',
|
||||
);
|
||||
expect(webhookDocsLink).toHaveAttribute('target', '_blank');
|
||||
|
||||
|
||||
@@ -136,7 +136,7 @@ function onEdit(id: string) {
|
||||
<template #webhookAction>
|
||||
<a
|
||||
data-test-id="webhook-docs-link"
|
||||
href="https://docs.n8n.io/integrations/core-nodes/n8n-nodes-base.webhook/"
|
||||
href="https://docs.n8n.io/integrations/builtin/core-nodes/n8n-nodes-base.webhook/"
|
||||
target="_blank"
|
||||
v-text="i18n.baseText('settings.api.view.info.webhook')"
|
||||
/>
|
||||
|
||||
@@ -27,7 +27,7 @@ export class StickyNote implements INodeType {
|
||||
name: 'content',
|
||||
type: 'string',
|
||||
default:
|
||||
"## I'm a note \n**Double click** to edit me. [Guide](https://docs.n8n.io/workflows/sticky-notes/)",
|
||||
"## I'm a note \n**Double click** to edit me. [Guide](https://docs.n8n.io/workflows/components/sticky-notes/)",
|
||||
},
|
||||
{
|
||||
displayName: 'Height',
|
||||
|
||||
@@ -30,7 +30,7 @@ const stickyNode: LoadedClass<INodeType> = {
|
||||
type: 'string',
|
||||
required: true,
|
||||
default:
|
||||
"## I'm a note \n**Double click** to edit me. [Guide](https://docs.n8n.io/workflows/sticky-notes/)",
|
||||
"## I'm a note \n**Double click** to edit me. [Guide](https://docs.n8n.io/workflows/components/sticky-notes/)",
|
||||
},
|
||||
{ displayName: 'Height', name: 'height', type: 'number', required: true, default: 160 },
|
||||
{ displayName: 'Width', name: 'width', type: 'number', required: true, default: 240 },
|
||||
|
||||
@@ -304,7 +304,7 @@ describe('generateNodesGraph', () => {
|
||||
{
|
||||
parameters: {
|
||||
content:
|
||||
"test\n\n## I'm a note \n**Double click** to edit me. [Guide](https://docs.n8n.io/workflows/sticky-notes/)",
|
||||
"test\n\n## I'm a note \n**Double click** to edit me. [Guide](https://docs.n8n.io/workflows/components/sticky-notes/)",
|
||||
},
|
||||
id: '03e85c3e-4303-4f93-8d62-e05d457e8f70',
|
||||
name: 'Sticky Note',
|
||||
@@ -760,7 +760,7 @@ describe('generateNodesGraph', () => {
|
||||
{
|
||||
parameters: {
|
||||
content:
|
||||
"test\n\n## I'm a note \n**Double click** to edit me. [Guide](https://docs.n8n.io/workflows/sticky-notes/)",
|
||||
"test\n\n## I'm a note \n**Double click** to edit me. [Guide](https://docs.n8n.io/workflows/components/sticky-notes/)",
|
||||
height: 488,
|
||||
width: 645,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user