Skip to content

Commit

Permalink
Try out two ways to add doc redirects for Linen links
Browse files Browse the repository at this point in the history
  • Loading branch information
IvyZX committed Oct 1, 2024
1 parent e0dafb9 commit 3095f4d
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs_nnx/.readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,8 @@ python:
- all
- testing
- docs

Type: Exact Redirect
From URL: https://flax-nnx.readthedocs.io/en/latest/quick_start.html
To URL: https://flax-linen.readthedocs.io/en/latest/quick_start.html
Force Redirect: True
18 changes: 18 additions & 0 deletions docs_nnx/guides/flax_fundamentals/flax_basics.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
.. raw:: html

<!-- This is a dummy page for re-directing existing Linen guides' old links to the Linen site. -->
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<meta http-equiv="refresh" content="0; url=https://flax-linen.readthedocs.io/en/latest/guides/flax_fundamentals/flax_basics.html">
<script type="text/javascript">
window.location.href = "https://flax-linen.readthedocs.io/en/latest/guides/flax_fundamentals/flax_basics.html"
</script>
<title>Page Redirection</title>
</head>
<body>
<!-- Note: don't tell people to `click` the link, just tell them that it is a link. -->
The old Flax Linen API and guides has been moved to another domain. Follow this <a href='https://flax-linen.readthedocs.io/en/latest/guides/flax_fundamentals/flax_basics.html'>link to the page.</a>.
</body>
</html>

0 comments on commit 3095f4d

Please sign in to comment.