Skip to content

Commit 08592fd

Browse files
authored
Merge pull request #6 from jordalgo/redirects
turn site into redirect (take 2)
2 parents 960bee0 + 340889d commit 08592fd

File tree

3 files changed

+12
-135
lines changed

3 files changed

+12
-135
lines changed

docusaurus.config.js

+2-97
Original file line numberDiff line numberDiff line change
@@ -48,22 +48,6 @@ const config = {
4848
'classic',
4949
/** @type {import('@docusaurus/preset-classic').Options} */
5050
({
51-
docs: {
52-
routeBasePath: '/',
53-
editUrl: 'https://github.com/bpftrace/bpftrace',
54-
versions: {
55-
current: {
56-
label: 'pre-release',
57-
},
58-
'latest': {
59-
path: 'latest',
60-
label: `latest (${getLatestVersion()})`,
61-
},
62-
'0.22': {
63-
banner: 'none',
64-
},
65-
},
66-
},
6751
blog: false,
6852
theme: {
6953
customCss: './src/css/custom.css',
@@ -87,90 +71,11 @@ const config = {
8771
href: 'https://bpftrace.org',
8872
target: '_self',
8973
},
90-
items: [
91-
{
92-
to: 'https://bpftrace.org/learn',
93-
label: 'Learn',
94-
target: '_self',
95-
position: 'left',
96-
},
97-
{
98-
to: `${getLatestVersion()}`,
99-
label: 'Docs',
100-
target: '_self', // open external link in current window
101-
position: 'left',
102-
className: 'navbar__link--active',
103-
},
104-
{
105-
to: 'https://bpftrace.org/blog',
106-
label: 'Blog',
107-
target: '_self',
108-
position: 'left',
109-
},
110-
{
111-
href: 'https://github.com/bpftrace/bpftrace/discussions',
112-
label: 'Discussions',
113-
target: '_self',
114-
position: 'left',
115-
},
116-
{
117-
type: 'docsVersionDropdown',
118-
position: 'right',
119-
},
120-
{
121-
href: 'https://github.com/bpftrace/bpftrace',
122-
label: 'GitHub',
123-
position: 'right',
124-
},
125-
],
74+
items: [],
12675
},
12776
footer: {
12877
style: 'dark',
129-
links: [
130-
{
131-
title: 'Docs + Tutorials',
132-
items: [
133-
{
134-
label: 'Documentation',
135-
to: `${getLatestVersion()}`,
136-
target: '_self',
137-
},
138-
{
139-
label: 'One-Liner Introduction Tutorial',
140-
to: 'https://bpftrace.org/tutorial-one-liners',
141-
target: '_self',
142-
},
143-
],
144-
},
145-
{
146-
title: 'Community',
147-
items: [
148-
{
149-
label: 'IRC',
150-
href: 'https://webchat.oftc.net/?nick=&channels=%23bpftrace',
151-
},
152-
{
153-
label: 'Talks',
154-
href: 'https://bpftrace.org/videos',
155-
target: '_self',
156-
},
157-
],
158-
},
159-
{
160-
title: 'More',
161-
items: [
162-
{
163-
label: 'Blog',
164-
to: 'https://bpftrace.org/blog',
165-
target: '_self',
166-
},
167-
{
168-
label: 'GitHub',
169-
href: 'https://github.com/bpftrace/bpftrace',
170-
},
171-
],
172-
},
173-
],
78+
links: [],
17479
copyright: `Copyright © 2019 Alastair Robertson.`,
17580
},
17681
prism: {

src/pages/index.js

-38
This file was deleted.

static/index.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)