diff --git a/actions/transform.js b/actions/transform.js index 84d4a76..5913a14 100644 --- a/actions/transform.js +++ b/actions/transform.js @@ -32,7 +32,7 @@ const transformLinks = (dom, crate) => { Array.from(dom.window.document.querySelectorAll("a")).forEach((anchor) => { if (isRelativeLink(anchor.href)) { // TO REFINE - anchor.href = `/docs/api/rust/${crate}/` + anchor.href; + anchor.href = `/docs/api/rust/${crate}/` + anchor.href.replace(".html", ""); } }); }; diff --git a/github-action/dist/index.js b/github-action/dist/index.js index 58b5208..deed913 100644 --- a/github-action/dist/index.js +++ b/github-action/dist/index.js @@ -164607,7 +164607,7 @@ const transformLinks = (dom, crate) => { Array.from(dom.window.document.querySelectorAll("a")).forEach((anchor) => { if (isRelativeLink(anchor.href)) { // TO REFINE - anchor.href = `/docs/api/rust/${crate}/` + anchor.href; + anchor.href = `/docs/api/rust/${crate}/` + anchor.href.replace(".html", ""); } }); };