diff --git a/.github/workflows/preview-build.yml b/.github/workflows/preview-build.yml index 675c959b0..ea006e89a 100644 --- a/.github/workflows/preview-build.yml +++ b/.github/workflows/preview-build.yml @@ -523,15 +523,15 @@ jobs: return; } - const toLink = (file) => { + const toMarkdownLink = (file) => { const path = file - .replace('docs/', '') - .replace('/index.md', '') - .replace('.md', ''); + .replace(/^docs\//, '') + .replace(/\/index.md$/, '') + .replace(/\.md$/, ''); return `[${file}](https://docs-v3-preview.elastic.dev${process.env.PATH_PREFIX}/${path})`; } - const links = changedMdFiles.map(toLink) + const links = changedMdFiles.map(toMarkdownLink) const body = [ title, diff --git a/docs/testing/index.md b/docs/testing/index.md index 0319fce2d..4d2cebf71 100644 --- a/docs/testing/index.md +++ b/docs/testing/index.md @@ -2,6 +2,7 @@ The files in this directory are used for testing purposes. Do not edit these files unless you are working on tests. +test ###### [#synthetics-config-file]