Skip to content

Commit 6c9ab75

Browse files
committed
make the raw file directory a sitewide variable
Signed-off-by: Grace Grimwood <ggrimwoo@redhat.com>
1 parent b589d41 commit 6c9ab75

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

_data/kroxylicious.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
# The version number of the latest release
22
latestRelease: 0.18.0
3-
3+
# The sub-path at which the raw Javadoc files can be found.
4+
javadocRawSubdir: raw

_layouts/javadoc-wrapper.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
// Construct the new URL by removing the '.raw' part of the path
2929
const currentUrl = new URL(window.location.href);
3030
const newUrl = new URL(href, iframe.src);
31-
window.top.location.href = newUrl.href.replace('/raw/', '/');
31+
window.top.location.href = newUrl.href.replace('/{{ site.data.kroxylicious.javadocRawSubdir }}/', '/');
3232
};
3333
}
3434
}

0 commit comments

Comments
 (0)