mirror of
https://github.com/tauri-apps/rustdocusaurus.git
synced 2026-02-04 02:31:18 +01:00
fix: Relative links
This commit is contained in:
@@ -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", "");
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
2
github-action/dist/index.js
vendored
2
github-action/dist/index.js
vendored
@@ -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", "");
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user