Skip to content

Commit

Permalink
Merge pull request bpftrace#18 from jordalgo/docs_link
Browse files Browse the repository at this point in the history
create redirect links for old docs website take 2
  • Loading branch information
jordalgo authored Jan 22, 2025
2 parents 550d96c + 016807f commit b92422b
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 8 deletions.
8 changes: 0 additions & 8 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,6 @@ const config = {
to: 'https://docs.bpftrace.org/latest',
from: '/docs',
},
{
to: 'https://docs.bpftrace.org/next',
from: '/docs/master',
},
{
to: 'https://docs.bpftrace.org/',
from: '/docs/v0.21.x',
},
],
},
],
Expand Down
12 changes: 12 additions & 0 deletions static/docs/master.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<!DOCTYPE html>
<html>
<!-- This is used as a redirect for the old docs website. We can probably remove at some point -->
<head>
<meta charset="UTF-8">
<meta http-equiv="refresh" content="0; url=https://docs.bpftrace.org/latest">
<link rel="canonical" href="https://docs.bpftrace.org/latest" />
</head>
<script>
window.location.href = 'https://docs.bpftrace.org/next' + window.location.search + window.location.hash;
</script>
</html>
12 changes: 12 additions & 0 deletions static/docs/v0.21.x.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<!DOCTYPE html>
<html>
<!-- This is used as a redirect for the old docs website. We can probably remove at some point -->
<head>
<meta charset="UTF-8">
<meta http-equiv="refresh" content="0; url=https://docs.bpftrace.org/latest">
<link rel="canonical" href="https://docs.bpftrace.org/latest" />
</head>
<script>
window.location.href = 'https://docs.bpftrace.org/' + window.location.search + window.location.hash;
</script>
</html>

0 comments on commit b92422b

Please sign in to comment.