Skip to content

Commit

Permalink
add research links redirects (#2953)
Browse files Browse the repository at this point in the history
Co-authored-by: Yuan-Ting Hsieh (謝沅廷) <[email protected]>
  • Loading branch information
SYangster and YuanTingHsieh authored Sep 25, 2024
1 parent 3b26109 commit 75ba33a
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 139 deletions.
16 changes: 0 additions & 16 deletions research/auto-fed-rl/index.html

This file was deleted.

16 changes: 0 additions & 16 deletions research/condist-fl/index.html

This file was deleted.

16 changes: 0 additions & 16 deletions research/fed-bpt/index.html

This file was deleted.

16 changes: 0 additions & 16 deletions research/fed-ce/index.html

This file was deleted.

16 changes: 0 additions & 16 deletions research/fed-sm/index.html

This file was deleted.

16 changes: 0 additions & 16 deletions research/one-shot-vfl/index.html

This file was deleted.

16 changes: 0 additions & 16 deletions research/quantifying-data-leakage/index.html

This file was deleted.

49 changes: 22 additions & 27 deletions web/src/pages/404.astro
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,20 @@ import Layout from "@layouts/Layout.astro";
<Layout title="404 Not Found">
<div class="mx-auto mt-20 max-w-2xl text-center sm:mt-24">
<p class="text-base font-semibold leading-8 text-nvidia">404</p>
<h1
class="mt-4 text-3xl font-bold tracking-tight text-gray-900 sm:text-5xl">
<h1 id="404-message" class="mt-4 text-3xl font-bold tracking-tight text-gray-900 sm:text-5xl">
This page does not exist
</h1>
<p
class="mt-4 text-base leading-7 text-gray-600 sm:mt-6 sm:text-lg sm:leading-8">
<p class="mt-4 text-base leading-7 text-gray-600 sm:mt-6 sm:text-lg sm:leading-8">
Sorry, we couldn’t find the page you’re looking for.
</p>
</div>
<div class="mx-auto mt-16 flow-root max-w-lg sm:mt-20">
<h2 class="sr-only">Popular pages</h2>
<ul
role="list"
class="-mt-6 divide-y divide-gray-900/5 border-b border-gray-900/5">
<ul role="list" class="-mt-6 divide-y divide-gray-900/5 border-b border-gray-900/5">
<li class="relative flex gap-x-6 py-6">
<div class="flex-auto">
<h3 class="text-sm font-semibold leading-6 text-gray-900">
<a href="#">
<a href="https://nvflare.readthedocs.io/en/main/index.html">
<span class="absolute inset-0" aria-hidden="true"></span>
Documentation
</a>
Expand All @@ -32,22 +28,15 @@ import Layout from "@layouts/Layout.astro";
</p>
</div>
<div class="flex-none self-center">
<svg
class="h-5 w-5 text-gray-400"
viewBox="0 0 20 20"
fill="currentColor"
aria-hidden="true">
<path
fill-rule="evenodd"
d="M7.21 14.77a.75.75 0 01.02-1.06L11.168 10 7.23 6.29a.75.75 0 111.04-1.08l4.5 4.25a.75.75 0 010 1.08l-4.5 4.25a.75.75 0 01-1.06-.02z"
clip-rule="evenodd"></path>
<svg class="h-5 w-5 text-gray-400" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true">
<path fill-rule="evenodd" d="M7.21 14.77a.75.75 0 01.02-1.06L11.168 10 7.23 6.29a.75.75 0 111.04-1.08l4.5 4.25a.75.75 0 010 1.08l-4.5 4.25a.75.75 0 01-1.06-.02z" clip-rule="evenodd"></path>
</svg>
</div>
</li>
<li class="relative flex gap-x-6 py-6">
<div class="flex-auto">
<h3 class="text-sm font-semibold leading-6 text-gray-900">
<a href="#">
<a href="https://github.com/NVIDIA/NVFlare">
<span class="absolute inset-0" aria-hidden="true"></span>
GitHub
</a>
Expand All @@ -57,15 +46,8 @@ import Layout from "@layouts/Layout.astro";
</p>
</div>
<div class="flex-none self-center">
<svg
class="h-5 w-5 text-gray-400"
viewBox="0 0 20 20"
fill="currentColor"
aria-hidden="true">
<path
fill-rule="evenodd"
d="M7.21 14.77a.75.75 0 01.02-1.06L11.168 10 7.23 6.29a.75.75 0 111.04-1.08l4.5 4.25a.75.75 0 010 1.08l-4.5 4.25a.75.75 0 01-1.06-.02z"
clip-rule="evenodd"></path>
<svg class="h-5 w-5 text-gray-400" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true">
<path fill-rule="evenodd" d="M7.21 14.77a.75.75 0 01.02-1.06L11.168 10 7.23 6.29a.75.75 0 111.04-1.08l4.5 4.25a.75.75 0 010 1.08l-4.5 4.25a.75.75 0 01-1.06-.02z" clip-rule="evenodd"></path>
</svg>
</div>
</li>
Expand All @@ -77,4 +59,17 @@ import Layout from "@layouts/Layout.astro";
</a>
</div>
</div>

<script>
document.addEventListener("DOMContentLoaded", function() {
const originalPath = window.location.pathname;

// redirect to github research folder to support code citation links
if (originalPath.startsWith('/NVFlare/research')) {
document.getElementById('404-message').innerText = "Redirecting to NVFlare GitHub research folder..."
const redirectPath = originalPath.replace('/NVFlare/research', '');
window.location.href = `https://github.com/NVIDIA/NVFlare/tree/main/research${redirectPath}`;
}
});
</script>
</Layout>

0 comments on commit 75ba33a

Please sign in to comment.