We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 796d659 commit f62fce9Copy full SHA for f62fce9
.github/workflows/docs-preview-comment.yml
@@ -35,8 +35,8 @@ jobs:
35
!/(^|\/)_snippets\//i.test(f.filename)
36
)
37
.map(f => {
38
- let p = f.filename.replace(/\/index\.md$/i, '/');
39
- if (p === f.filename) p = p.replace(/\.md$/i, '');
+ let p = f.filename.replace(/^docs\//, '').replace(/\/index\.md$/i, '/');
+ if (p === f.filename.replace(/^docs\//, '')) p = p.replace(/\.md$/i, '');
40
return `- [\`${f.filename}\`](${base}/${p})`;
41
});
42
if (!links.length) return; // nothing to do
@@ -68,4 +68,4 @@ jobs:
68
issue_number: prNum,
69
body
70
71
- }
+ }
0 commit comments