Skip to content

Commit 50fb1dd

Browse files
authored
Merge pull request #7 from jordalgo/redirects
add static page latest
2 parents 08592fd + b11095c commit 50fb1dd

File tree

2 files changed

+10
-11
lines changed

2 files changed

+10
-11
lines changed

docusaurus.config.js

-11
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,9 @@
55
// See: https://docusaurus.io/docs/api/docusaurus-config
66

77
import {themes as prismThemes} from 'prism-react-renderer';
8-
import versions from './versions.json';
98

109
// This runs in Node.js - Don't use client-side code here (browser APIs, JSX...)
1110

12-
function getLatestVersion() {
13-
// versions[0] is "latest", versions[1] will contain the actual version number
14-
// of the latest version
15-
return versions[1];
16-
}
17-
const latestVersion = getLatestVersion();
18-
1911
/** @type {import('@docusaurus/types').Config} */
2012
const config = {
2113
title: 'bpftrace',
@@ -55,9 +47,6 @@ const config = {
5547
}),
5648
],
5749
],
58-
customFields: {
59-
latestVersion,
60-
},
6150

6251
themeConfig:
6352
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */

static/latest.html

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="UTF-8">
5+
<link rel="canonical" href="https://bpftrace.org/docs/0.22.html" />
6+
</head>
7+
<script>
8+
window.location.href = 'https://bpftrace.org/docs/0.22.html';
9+
</script>
10+
</html>

0 commit comments

Comments
 (0)