File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -523,15 +523,15 @@ jobs:
523523 return;
524524 }
525525
526- const toLink = (file) => {
526+ const toMarkdownLink = (file) => {
527527 const path = file
528- .replace(' docs/' , '')
529- .replace('/ index.md' , '')
530- .replace(' .md' , '');
528+ .replace(/^ docs\// , '')
529+ .replace(/\/ index.md$/ , '')
530+ .replace(/\ .md$/ , '');
531531 return `[${file}](https://docs-v3-preview.elastic.dev${process.env.PATH_PREFIX}/${path})`;
532532 }
533533
534- const links = changedMdFiles.map(toLink )
534+ const links = changedMdFiles.map(toMarkdownLink )
535535
536536 const body = [
537537 title,
Original file line number Diff line number Diff line change 22
33The files in this directory are used for testing purposes. Do not edit these files unless you are working on tests.
44
5+ test
56
67###### [ #synthetics-config-file]
78
You can’t perform that action at this time.
0 commit comments